xref: /illumos-gate/usr/src/uts/intel/acpica/Makefile (revision b6b206fc)
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#
5*b6b206fcSJohn Levon# Copyright (c) 2018, Joyent, Inc.
67b1019a6SJerry Jelinek#
77c478bd9Sstevel@tonic-gate#
87c478bd9Sstevel@tonic-gate#	This makefile drives the production of the ACPI CA services
97c478bd9Sstevel@tonic-gate#	kernel module.
107c478bd9Sstevel@tonic-gate#
11ae115bc7Smrj#	intel architecture dependent
127c478bd9Sstevel@tonic-gate#
137c478bd9Sstevel@tonic-gate
147c478bd9Sstevel@tonic-gate#
157c478bd9Sstevel@tonic-gate#	Path to the base of the uts directory tree (usually /usr/src/uts).
167c478bd9Sstevel@tonic-gate#
177c478bd9Sstevel@tonic-gateUTSBASE		= ../..
187c478bd9Sstevel@tonic-gate
197c478bd9Sstevel@tonic-gate#
207c478bd9Sstevel@tonic-gate#	Define the module and object file sets.
217c478bd9Sstevel@tonic-gate#
227c478bd9Sstevel@tonic-gateMODULE		= acpica
237c478bd9Sstevel@tonic-gateOBJECTS		= $(ACPICA_OBJS:%=$(OBJS_DIR)/%)
247c478bd9Sstevel@tonic-gateLINTS		= $(ACPICA_OBJS:%.o=$(LINTS_DIR)/%.ln)
257c478bd9Sstevel@tonic-gateROOTMODULE	= $(ROOT_MISC_DIR)/$(MODULE)
267c478bd9Sstevel@tonic-gateINC_PATH        += -I$(UTSBASE)/intel/sys/acpi
27ae115bc7SmrjINC_PATH	+= -I$(UTSBASE)/i86pc
28aa2aa9a6SDana MyersINC_PATH	+= -I$(SRC)/common
297c478bd9Sstevel@tonic-gate
307c478bd9Sstevel@tonic-gate#
317c478bd9Sstevel@tonic-gate#	Include common rules.
327c478bd9Sstevel@tonic-gate#
33ae115bc7Smrjinclude $(UTSBASE)/intel/Makefile.intel
347c478bd9Sstevel@tonic-gate
357c478bd9Sstevel@tonic-gate#
367c478bd9Sstevel@tonic-gate#	Define targets
377c478bd9Sstevel@tonic-gate#
38c8343062SmeemALL_TARGET	= $(BINARY) $(CONFMOD)
397c478bd9Sstevel@tonic-gateLINT_TARGET	= $(MODULE).lint
40c8343062SmeemINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
417c478bd9Sstevel@tonic-gate
427c478bd9Sstevel@tonic-gate#
437c478bd9Sstevel@tonic-gate#	Overrides.
447c478bd9Sstevel@tonic-gate#
457c478bd9Sstevel@tonic-gateDEBUG_DEFS	+= $(DEBUG_FLGS)
467c478bd9Sstevel@tonic-gate
477c478bd9Sstevel@tonic-gate#
487c478bd9Sstevel@tonic-gate# lint pass one non-enforcement
497c478bd9Sstevel@tonic-gate#
5030082d0cSmyersCFLAGS += $(CCVERBOSE) -DPWRDMN -DACPI_USE_LOCAL_CACHE -DACPI_DEBUG_OUTPUT
517c478bd9Sstevel@tonic-gate
52f56c1286Srobinson#
53f56c1286Srobinson# 3rd party code is not lint clean
54f56c1286Srobinson#
55f56c1286SrobinsonCERRWARN += -erroff=E_STATEMENT_NOT_REACHED
56f56c1286Srobinson
57*b6b206fcSJohn LevonSMOFF += all_func_returns
58*b6b206fcSJohn Levon
597c478bd9Sstevel@tonic-gateLINTFLAGS += -errchk=%none
607c478bd9Sstevel@tonic-gateLINTFLAGS += -errhdr=%none
617c478bd9Sstevel@tonic-gateLINTFLAGS += -erroff=%all
627c478bd9Sstevel@tonic-gateLINTFLAGS += -errwarn=%none
637c478bd9Sstevel@tonic-gate
647014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-unused-variable
657014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-parentheses
667014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-uninitialized
677b1019a6SJerry JelinekCERRWARN	+= -_gcc=-Wno-unused-function
687014882cSRichard Lowe
697c478bd9Sstevel@tonic-gate#
707c478bd9Sstevel@tonic-gate#	Default build targets.
717c478bd9Sstevel@tonic-gate#
727c478bd9Sstevel@tonic-gate.KEEP_STATE:
737c478bd9Sstevel@tonic-gate
747c478bd9Sstevel@tonic-gatedef:		$(DEF_DEPS)
757c478bd9Sstevel@tonic-gate
767c478bd9Sstevel@tonic-gateall:		$(ALL_DEPS)
777c478bd9Sstevel@tonic-gate
787c478bd9Sstevel@tonic-gateclean:		$(CLEAN_DEPS)
797c478bd9Sstevel@tonic-gate
807c478bd9Sstevel@tonic-gateclobber:	$(CLOBBER_DEPS)
817c478bd9Sstevel@tonic-gate
827c478bd9Sstevel@tonic-gatelint:		$(LINT_DEPS)
837c478bd9Sstevel@tonic-gate
847c478bd9Sstevel@tonic-gatemodlintlib:	$(MODLINTLIB_DEPS)
857c478bd9Sstevel@tonic-gate
867c478bd9Sstevel@tonic-gateclean.lint:	$(CLEAN_LINT_DEPS)
877c478bd9Sstevel@tonic-gate
887c478bd9Sstevel@tonic-gateinstall:	$(INSTALL_DEPS)
897c478bd9Sstevel@tonic-gate
907c478bd9Sstevel@tonic-gate#
917c478bd9Sstevel@tonic-gate#	Include common targets.
927c478bd9Sstevel@tonic-gate#
93ae115bc7Smrjinclude $(UTSBASE)/intel/Makefile.targ
94