xref: /titanic_52/usr/src/uts/intel/aac/Makefile (revision 1cb6af97c6f66f456d4f726ef056e1ebc0f73305)
1#
2# Copyright 2004 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
25ITU_SRCDIR      = $(UTSBASE)/intel/io/aac
26
27#
28#	Include common rules.
29#
30include $(UTSBASE)/intel/Makefile.intel
31
32#
33#	Define targets
34#
35ALL_TARGET	= $(BINARY) $(CONFMOD) $(ITUMOD)
36LINT_TARGET	= $(MODULE).lint
37INSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) $(ROOT_ITUFILE)
38
39#
40# 	Overrides
41#
42CFLAGS_CPP_COMMENTS = -xCC
43$(__GNUC)CFLAGS_CPP_COMMENTS =
44
45CFLAGS += $(CFLAGS_CPP_COMMENTS)
46
47#
48#	Default build targets.
49#
50#.KEEP_STATE:
51
52def:		$(DEF_DEPS)
53
54all:		$(ALL_DEPS)
55
56clean:		$(CLEAN_DEPS)
57
58clobber:	$(CLOBBER_DEPS)
59
60lint:		$(LINT_DEPS)
61
62modlintlib:	$(MODLINTLIB_DEPS)
63
64clean.lint:	$(CLEAN_LINT_DEPS)
65
66install:	$(INSTALL_DEPS)
67
68#
69#	Include common targets.
70#
71include $(UTSBASE)/intel/Makefile.targ
72