xref: /illumos-gate/usr/src/uts/intel/acpica/Makefile (revision 7014882c)
17c478bd9Sstevel@tonic-gate#
2aa2aa9a6SDana Myers# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
37c478bd9Sstevel@tonic-gate# Use is subject to license terms.
47c478bd9Sstevel@tonic-gate#
57c478bd9Sstevel@tonic-gate#
67c478bd9Sstevel@tonic-gate#	This makefile drives the production of the ACPI CA services
77c478bd9Sstevel@tonic-gate#	kernel module.
87c478bd9Sstevel@tonic-gate#
9ae115bc7Smrj#	intel 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		= acpica
217c478bd9Sstevel@tonic-gateOBJECTS		= $(ACPICA_OBJS:%=$(OBJS_DIR)/%)
227c478bd9Sstevel@tonic-gateLINTS		= $(ACPICA_OBJS:%.o=$(LINTS_DIR)/%.ln)
237c478bd9Sstevel@tonic-gateROOTMODULE	= $(ROOT_MISC_DIR)/$(MODULE)
247c478bd9Sstevel@tonic-gateINC_PATH        += -I$(UTSBASE)/intel/sys/acpi
25ae115bc7SmrjINC_PATH	+= -I$(UTSBASE)/i86pc
26aa2aa9a6SDana MyersINC_PATH	+= -I$(SRC)/common
277c478bd9Sstevel@tonic-gate
287c478bd9Sstevel@tonic-gate#
297c478bd9Sstevel@tonic-gate#	Include common rules.
307c478bd9Sstevel@tonic-gate#
31ae115bc7Smrjinclude $(UTSBASE)/intel/Makefile.intel
327c478bd9Sstevel@tonic-gate
337c478bd9Sstevel@tonic-gate#
347c478bd9Sstevel@tonic-gate#	Define targets
357c478bd9Sstevel@tonic-gate#
36c8343062SmeemALL_TARGET	= $(BINARY) $(CONFMOD)
377c478bd9Sstevel@tonic-gateLINT_TARGET	= $(MODULE).lint
38c8343062SmeemINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
397c478bd9Sstevel@tonic-gate
407c478bd9Sstevel@tonic-gate#
417c478bd9Sstevel@tonic-gate#	Overrides.
427c478bd9Sstevel@tonic-gate#
437c478bd9Sstevel@tonic-gateDEBUG_DEFS	+= $(DEBUG_FLGS)
447c478bd9Sstevel@tonic-gate
457c478bd9Sstevel@tonic-gate#
467c478bd9Sstevel@tonic-gate# lint pass one non-enforcement
477c478bd9Sstevel@tonic-gate#
4830082d0cSmyersCFLAGS += $(CCVERBOSE) -DPWRDMN -DACPI_USE_LOCAL_CACHE -DACPI_DEBUG_OUTPUT
497c478bd9Sstevel@tonic-gate
50f56c1286Srobinson#
51f56c1286Srobinson# 3rd party code is not lint clean
52f56c1286Srobinson#
53f56c1286SrobinsonCERRWARN += -erroff=E_STATEMENT_NOT_REACHED
54f56c1286Srobinson
557c478bd9Sstevel@tonic-gateLINTFLAGS += -errchk=%none
567c478bd9Sstevel@tonic-gateLINTFLAGS += -errhdr=%none
577c478bd9Sstevel@tonic-gateLINTFLAGS += -erroff=%all
587c478bd9Sstevel@tonic-gateLINTFLAGS += -errwarn=%none
597c478bd9Sstevel@tonic-gate
60*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-unused-variable
61*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-parentheses
62*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-uninitialized
63*7014882cSRichard Lowe
647c478bd9Sstevel@tonic-gate#
657c478bd9Sstevel@tonic-gate#	Default build targets.
667c478bd9Sstevel@tonic-gate#
677c478bd9Sstevel@tonic-gate.KEEP_STATE:
687c478bd9Sstevel@tonic-gate
697c478bd9Sstevel@tonic-gatedef:		$(DEF_DEPS)
707c478bd9Sstevel@tonic-gate
717c478bd9Sstevel@tonic-gateall:		$(ALL_DEPS)
727c478bd9Sstevel@tonic-gate
737c478bd9Sstevel@tonic-gateclean:		$(CLEAN_DEPS)
747c478bd9Sstevel@tonic-gate
757c478bd9Sstevel@tonic-gateclobber:	$(CLOBBER_DEPS)
767c478bd9Sstevel@tonic-gate
777c478bd9Sstevel@tonic-gatelint:		$(LINT_DEPS)
787c478bd9Sstevel@tonic-gate
797c478bd9Sstevel@tonic-gatemodlintlib:	$(MODLINTLIB_DEPS)
807c478bd9Sstevel@tonic-gate
817c478bd9Sstevel@tonic-gateclean.lint:	$(CLEAN_LINT_DEPS)
827c478bd9Sstevel@tonic-gate
837c478bd9Sstevel@tonic-gateinstall:	$(INSTALL_DEPS)
847c478bd9Sstevel@tonic-gate
857c478bd9Sstevel@tonic-gate#
867c478bd9Sstevel@tonic-gate#	Include common targets.
877c478bd9Sstevel@tonic-gate#
88ae115bc7Smrjinclude $(UTSBASE)/intel/Makefile.targ
89