xref: /illumos-gate/usr/src/uts/intel/aac/Makefile (revision c8343062f6e25afd9c2a31b65df357030e69fa55)
17c478bd9Sstevel@tonic-gate#
2*c8343062Smeem# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
37c478bd9Sstevel@tonic-gate# Use is subject to license terms.
47c478bd9Sstevel@tonic-gate#
57c478bd9Sstevel@tonic-gate# ident	"%Z%%M%	%I%	%E% SMI"
67c478bd9Sstevel@tonic-gate#
77c478bd9Sstevel@tonic-gate#	This makefile drives the production of the aac driver kernel module.
87c478bd9Sstevel@tonic-gate#
97c478bd9Sstevel@tonic-gate#	intel implementation architecture dependent
107c478bd9Sstevel@tonic-gate#
117c478bd9Sstevel@tonic-gate
127c478bd9Sstevel@tonic-gate#
137c478bd9Sstevel@tonic-gate#	Path to the base of the uts directory tree (usually /usr/src/uts).
147c478bd9Sstevel@tonic-gate#
157c478bd9Sstevel@tonic-gateUTSBASE	= ../..
167c478bd9Sstevel@tonic-gate
177c478bd9Sstevel@tonic-gate#
187c478bd9Sstevel@tonic-gate#	Define the module and object file sets.
197c478bd9Sstevel@tonic-gate#
207c478bd9Sstevel@tonic-gateMODULE		= aac
217c478bd9Sstevel@tonic-gateOBJECTS		= $(AAC_OBJS:%=$(OBJS_DIR)/%)
227c478bd9Sstevel@tonic-gateLINTS		= $(AAC_OBJS:%.o=$(LINTS_DIR)/%.ln)
237c478bd9Sstevel@tonic-gateROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
247c478bd9Sstevel@tonic-gateCONF_SRCDIR     = $(UTSBASE)/intel/io/aac
257c478bd9Sstevel@tonic-gate
267c478bd9Sstevel@tonic-gate#
277c478bd9Sstevel@tonic-gate#	Include common rules.
287c478bd9Sstevel@tonic-gate#
297c478bd9Sstevel@tonic-gateinclude $(UTSBASE)/intel/Makefile.intel
307c478bd9Sstevel@tonic-gate
317c478bd9Sstevel@tonic-gate#
327c478bd9Sstevel@tonic-gate#	Define targets
337c478bd9Sstevel@tonic-gate#
34*c8343062SmeemALL_TARGET	= $(BINARY) $(CONFMOD)
357c478bd9Sstevel@tonic-gateLINT_TARGET	= $(MODULE).lint
36*c8343062SmeemINSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
377c478bd9Sstevel@tonic-gate
387c478bd9Sstevel@tonic-gate#
397c478bd9Sstevel@tonic-gate# 	Overrides
407c478bd9Sstevel@tonic-gate#
417c478bd9Sstevel@tonic-gateCFLAGS_CPP_COMMENTS = -xCC
427c478bd9Sstevel@tonic-gate$(__GNUC)CFLAGS_CPP_COMMENTS =
437c478bd9Sstevel@tonic-gate
447c478bd9Sstevel@tonic-gateCFLAGS += $(CFLAGS_CPP_COMMENTS)
457c478bd9Sstevel@tonic-gate
467c478bd9Sstevel@tonic-gate#
477c478bd9Sstevel@tonic-gate#	Default build targets.
487c478bd9Sstevel@tonic-gate#
497c478bd9Sstevel@tonic-gate#.KEEP_STATE:
507c478bd9Sstevel@tonic-gate
517c478bd9Sstevel@tonic-gatedef:		$(DEF_DEPS)
527c478bd9Sstevel@tonic-gate
537c478bd9Sstevel@tonic-gateall:		$(ALL_DEPS)
547c478bd9Sstevel@tonic-gate
557c478bd9Sstevel@tonic-gateclean:		$(CLEAN_DEPS)
567c478bd9Sstevel@tonic-gate
577c478bd9Sstevel@tonic-gateclobber:	$(CLOBBER_DEPS)
587c478bd9Sstevel@tonic-gate
597c478bd9Sstevel@tonic-gatelint:		$(LINT_DEPS)
607c478bd9Sstevel@tonic-gate
617c478bd9Sstevel@tonic-gatemodlintlib:	$(MODLINTLIB_DEPS)
627c478bd9Sstevel@tonic-gate
637c478bd9Sstevel@tonic-gateclean.lint:	$(CLEAN_LINT_DEPS)
647c478bd9Sstevel@tonic-gate
657c478bd9Sstevel@tonic-gateinstall:	$(INSTALL_DEPS)
667c478bd9Sstevel@tonic-gate
677c478bd9Sstevel@tonic-gate#
687c478bd9Sstevel@tonic-gate#	Include common targets.
697c478bd9Sstevel@tonic-gate#
707c478bd9Sstevel@tonic-gateinclude $(UTSBASE)/intel/Makefile.targ
71