xref: /illumos-gate/usr/src/uts/intel/amr/Makefile (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
17c478bd9Sstevel@tonic-gate#
27adeeb5aSmike_s# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
37c478bd9Sstevel@tonic-gate# Use is subject to license terms.
489b43686SBayard Bell# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
57c478bd9Sstevel@tonic-gate#
67c478bd9Sstevel@tonic-gate#	This makefile drives the production of the amr driver kernel module.
77c478bd9Sstevel@tonic-gate#
87c478bd9Sstevel@tonic-gate#	intel implementation architecture dependent
97c478bd9Sstevel@tonic-gate#
107c478bd9Sstevel@tonic-gate
117c478bd9Sstevel@tonic-gate#
127c478bd9Sstevel@tonic-gate#	Path to the base of the uts directory tree (usually /usr/src/uts).
137c478bd9Sstevel@tonic-gate#
147c478bd9Sstevel@tonic-gateUTSBASE	= ../..
157c478bd9Sstevel@tonic-gate
167c478bd9Sstevel@tonic-gate#
177c478bd9Sstevel@tonic-gate#	Define the module and object file sets.
187c478bd9Sstevel@tonic-gate#
197c478bd9Sstevel@tonic-gateMODULE		= amr
207c478bd9Sstevel@tonic-gateOBJECTS		= $(AMR_OBJS:%=$(OBJS_DIR)/%)
217c478bd9Sstevel@tonic-gateLINTS		= $(AMR_OBJS:%.o=$(LINTS_DIR)/%.ln)
227c478bd9Sstevel@tonic-gateROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
237c478bd9Sstevel@tonic-gateCONF_SRCDIR     = $(UTSBASE)/intel/io/amr
247c478bd9Sstevel@tonic-gate
257c478bd9Sstevel@tonic-gate#
267c478bd9Sstevel@tonic-gate#	Include common rules.
277c478bd9Sstevel@tonic-gate#
287c478bd9Sstevel@tonic-gateinclude $(UTSBASE)/intel/Makefile.intel
297c478bd9Sstevel@tonic-gate
307c478bd9Sstevel@tonic-gate#
317c478bd9Sstevel@tonic-gate#	Define targets
327c478bd9Sstevel@tonic-gate#
33c8343062SmeemALL_TARGET	= $(BINARY) $(CONFMOD)
347c478bd9Sstevel@tonic-gateLINT_TARGET	= $(MODULE).lint
35c8343062SmeemINSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
367c478bd9Sstevel@tonic-gate
377c478bd9Sstevel@tonic-gate#
387c478bd9Sstevel@tonic-gate#	Overrides
397c478bd9Sstevel@tonic-gate#
40bb25c06cSjg#
41bb25c06cSjg# For now, disable these lint checks; maintainers should endeavor
42bb25c06cSjg# to investigate and remove these for maximum lint coverage.
43bb25c06cSjg# Please do not carry these forward to new Makefiles.
44bb25c06cSjg#
45bb25c06cSjgLINTTAGS	+= -erroff=E_BAD_PTR_CAST_ALIGN
46bb25c06cSjgLINTTAGS	+= -erroff=E_ASSIGN_NARROW_CONV
477c478bd9Sstevel@tonic-gate
48*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-parentheses
49*7014882cSRichard Lowe
507c478bd9Sstevel@tonic-gate#
5189b43686SBayard Bell# Depends on scsi
5289b43686SBayard Bell#
5389b43686SBayard BellLDFLAGS         += -dy -N misc/scsi
5489b43686SBayard Bell
5589b43686SBayard Bell#
567c478bd9Sstevel@tonic-gate#	Default build targets.
577c478bd9Sstevel@tonic-gate#
587adeeb5aSmike_s.KEEP_STATE:
597c478bd9Sstevel@tonic-gate
607c478bd9Sstevel@tonic-gatedef:		$(DEF_DEPS)
617c478bd9Sstevel@tonic-gate
627c478bd9Sstevel@tonic-gateall:		$(ALL_DEPS)
637c478bd9Sstevel@tonic-gate
647c478bd9Sstevel@tonic-gateclean:		$(CLEAN_DEPS)
657c478bd9Sstevel@tonic-gate
667c478bd9Sstevel@tonic-gateclobber:	$(CLOBBER_DEPS)
677c478bd9Sstevel@tonic-gate
687c478bd9Sstevel@tonic-gatelint:		$(LINT_DEPS)
697c478bd9Sstevel@tonic-gate
707c478bd9Sstevel@tonic-gatemodlintlib:	$(MODLINTLIB_DEPS)
717c478bd9Sstevel@tonic-gate
727c478bd9Sstevel@tonic-gateclean.lint:	$(CLEAN_LINT_DEPS)
737c478bd9Sstevel@tonic-gate
747c478bd9Sstevel@tonic-gateinstall:	$(INSTALL_DEPS)
757c478bd9Sstevel@tonic-gate
767c478bd9Sstevel@tonic-gate#
777c478bd9Sstevel@tonic-gate#	Include common targets.
787c478bd9Sstevel@tonic-gate#
797c478bd9Sstevel@tonic-gateinclude $(UTSBASE)/intel/Makefile.targ
80