xref: /titanic_50/usr/src/uts/intel/agpgart/Makefile (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
1ae115bc7Smrj#
2b5d3ab78Shh224818# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
3ae115bc7Smrj# Use is subject to license terms.
4ae115bc7Smrj#
5ae115bc7Smrj# uts/intel/agpgart/Makefile
6ae115bc7Smrj#
7*7014882cSRichard Lowe
8ae115bc7Smrj#
9ae115bc7Smrj#	This makefile drives the framework of agp protocol
10ae115bc7Smrj#	(agpgart) kernel module.
11ae115bc7Smrj#
12ae115bc7Smrj#
13ae115bc7Smrj#	Path to the base of the uts directory tree (usually /usr/src/uts).
14ae115bc7Smrj#
15ae115bc7SmrjUTSBASE = ../..
16ae115bc7Smrj
17ae115bc7Smrj#
18ae115bc7Smrj#	Define the module and object file sets.
19ae115bc7Smrj#
20ae115bc7SmrjMODULE		= agpgart
21ae115bc7SmrjOBJECTS		= $(AGPGART_OBJS:%=$(OBJS_DIR)/%)
22ae115bc7SmrjLINTS		= $(AGPGART_OBJS:%.o=$(LINTS_DIR)/%.ln)
23ae115bc7SmrjROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
24ae115bc7SmrjCONF_SRCDIR	= $(UTSBASE)/intel/io/agpgart
25ae115bc7Smrj
26ae115bc7Smrj#
27ae115bc7Smrj#	Include common rules.
28ae115bc7Smrj#
29ae115bc7Smrjinclude $(UTSBASE)/intel/Makefile.intel
30ae115bc7Smrj
31ae115bc7Smrj#
32ae115bc7Smrj#	Define targets
33ae115bc7Smrj#
34ae115bc7SmrjALL_TARGET	= $(BINARY) $(SRC_CONFILE)
35ae115bc7SmrjLINT_TARGET	= $(MODULE).lint
36ae115bc7SmrjINSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
37ae115bc7Smrj
38*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-switch
39*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-parentheses
40*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-uninitialized
41*7014882cSRichard Lowe
42ae115bc7Smrj#
43ae115bc7Smrj# For now, disable these lint checks; maintainers should endeavor
44ae115bc7Smrj# to investigate and remove these for maximum lint coverage.
45ae115bc7Smrj# Please do not carry these forward to new Makefiles.
46ae115bc7Smrj#
47ae115bc7SmrjLINTTAGS	+= -erroff=E_BAD_PTR_CAST_ALIGN
48ae115bc7Smrj
49ae115bc7Smrj#
50ae115bc7Smrj#	Default build targets.
51ae115bc7Smrj#
52ae115bc7Smrj.KEEP_STATE:
53ae115bc7Smrj
54ae115bc7Smrjdef:		$(DEF_DEPS)
55ae115bc7Smrj
56ae115bc7Smrjall:		$(ALL_DEPS)
57ae115bc7Smrj
58ae115bc7Smrjclean:		$(CLEAN_DEPS)
59ae115bc7Smrj
60ae115bc7Smrjclobber:	$(CLOBBER_DEPS)
61ae115bc7Smrj
62ae115bc7Smrjlint:		$(LINT_DEPS)
63ae115bc7Smrj
64ae115bc7Smrjmodlintlib:	$(MODLINTLIB_DEPS)
65ae115bc7Smrj
66ae115bc7Smrjclean.lint:	$(CLEAN_LINT_DEPS)
67ae115bc7Smrj
68ae115bc7Smrjinstall:	$(INSTALL_DEPS)
69ae115bc7Smrj
70ae115bc7Smrj#
71ae115bc7Smrj#	Include common targets.
72ae115bc7Smrj#
73ae115bc7Smrjinclude $(UTSBASE)/intel/Makefile.targ
74