xref: /titanic_41/usr/src/uts/intel/agpgart/Makefile (revision 4e9cfc9a015e8ca7d41f7d018c74dc8a692305b3)
1#
2# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
3# Use is subject to license terms.
4#
5# uts/intel/agpgart/Makefile
6#
7#
8#ident	"%Z%%M%	%I%	%E% SMI"
9#
10#	This makefile drives the framework of agp protocol
11#	(agpgart) kernel module.
12#
13#
14#	Path to the base of the uts directory tree (usually /usr/src/uts).
15#
16UTSBASE = ../..
17
18#
19#	Define the module and object file sets.
20#
21MODULE		= agpgart
22OBJECTS		= $(AGPGART_OBJS:%=$(OBJS_DIR)/%)
23LINTS		= $(AGPGART_OBJS:%.o=$(LINTS_DIR)/%.ln)
24ROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
25CONF_SRCDIR	= $(UTSBASE)/intel/io/agpgart
26
27#
28#	Include common rules.
29#
30include $(UTSBASE)/intel/Makefile.intel
31
32#
33#	Define targets
34#
35ALL_TARGET	= $(BINARY) $(SRC_CONFILE)
36LINT_TARGET	= $(MODULE).lint
37INSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
38
39#
40# For now, disable these lint checks; maintainers should endeavor
41# to investigate and remove these for maximum lint coverage.
42# Please do not carry these forward to new Makefiles.
43#
44LINTTAGS	+= -erroff=E_SUSPICIOUS_COMPARISON
45LINTTAGS	+= -erroff=E_BAD_PTR_CAST_ALIGN
46LINTTAGS	+= -erroff=E_ASSIGN_NARROW_CONV
47
48#
49#	Default build targets.
50#
51.KEEP_STATE:
52
53def:		$(DEF_DEPS)
54
55all:		$(ALL_DEPS)
56
57clean:		$(CLEAN_DEPS)
58
59clobber:	$(CLOBBER_DEPS)
60
61lint:		$(LINT_DEPS)
62
63modlintlib:	$(MODLINTLIB_DEPS)
64
65clean.lint:	$(CLEAN_LINT_DEPS)
66
67install:	$(INSTALL_DEPS)
68
69#
70#	Include common targets.
71#
72include $(UTSBASE)/intel/Makefile.targ
73