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