xref: /illumos-gate/usr/src/uts/intel/acpica/Makefile (revision 50136d7917495eac054df8fd1a3d680969df9aee)
1ae115bc7Smrj#
2aa2aa9a6SDana Myers# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
3ae115bc7Smrj# Use is subject to license terms.
4ae115bc7Smrj#
5b6b206fcSJohn Levon# Copyright (c) 2018, Joyent, Inc.
67b1019a6SJerry Jelinek#
7ae115bc7Smrj#
8ae115bc7Smrj#	This makefile drives the production of the ACPI CA services
9ae115bc7Smrj#	kernel module.
10ae115bc7Smrj#
11ae115bc7Smrj#	intel architecture dependent
12ae115bc7Smrj#
13ae115bc7Smrj
14ae115bc7Smrj#
15ae115bc7Smrj#	Path to the base of the uts directory tree (usually /usr/src/uts).
16ae115bc7Smrj#
17ae115bc7SmrjUTSBASE		= ../..
18ae115bc7Smrj
19ae115bc7Smrj#
20ae115bc7Smrj#	Define the module and object file sets.
21ae115bc7Smrj#
22ae115bc7SmrjMODULE		= acpica
23ae115bc7SmrjOBJECTS		= $(ACPICA_OBJS:%=$(OBJS_DIR)/%)
24ae115bc7SmrjROOTMODULE	= $(ROOT_MISC_DIR)/$(MODULE)
25ae115bc7SmrjINC_PATH        += -I$(UTSBASE)/intel/sys/acpi
26ae115bc7SmrjINC_PATH	+= -I$(UTSBASE)/i86pc
27aa2aa9a6SDana MyersINC_PATH	+= -I$(SRC)/common
28ae115bc7Smrj
29ae115bc7Smrj#
30ae115bc7Smrj#	Include common rules.
31ae115bc7Smrj#
32ae115bc7Smrjinclude $(UTSBASE)/intel/Makefile.intel
33ae115bc7Smrj
34ae115bc7Smrj#
35ae115bc7Smrj#	Define targets
36ae115bc7Smrj#
37ae115bc7SmrjALL_TARGET	= $(BINARY) $(CONFMOD)
38ae115bc7SmrjINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
39ae115bc7Smrj
40ae115bc7Smrj#
41ae115bc7Smrj#	Overrides.
42ae115bc7Smrj#
43ae115bc7SmrjDEBUG_DEFS	+= $(DEBUG_FLGS)
44ae115bc7Smrj
45ae115bc7Smrj#
460aaef2f5SRichard Lowe# For now, disable these warnings; maintainers should endeavor
470aaef2f5SRichard Lowe# to investigate and remove these for maximum coverage.
480aaef2f5SRichard Lowe# Please do not carry these forward to new Makefiles.
49ae115bc7Smrj#
500aaef2f5SRichard LoweCFLAGS += $(CCVERBOSE)
517014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-variable
527014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses
53d3b5f563SJohn LevonCERRWARN += $(CNOWARN_UNINIT)
547b1019a6SJerry JelinekCERRWARN += -_gcc=-Wno-unused-function
550aaef2f5SRichard LoweSMOFF += all_func_returns
560aaef2f5SRichard Lowe
570aaef2f5SRichard LoweCFLAGS += -DPWRDMN -DACPI_USE_LOCAL_CACHE -DACPI_DEBUG_OUTPUT
587014882cSRichard Lowe
59*50136d79SToomas Soome# We are using stack pointer value there
60*50136d79SToomas Soome$(OBJS_DIR)/utdebug.o := CERRWARN += -_gcc=-Wno-dangling-pointer
616a083b2fSToomas Soome
62ae115bc7Smrj#
63ae115bc7Smrj#	Default build targets.
64ae115bc7Smrj#
65ae115bc7Smrj.KEEP_STATE:
66ae115bc7Smrj
67ae115bc7Smrjdef:		$(DEF_DEPS)
68ae115bc7Smrj
69ae115bc7Smrjall:		$(ALL_DEPS)
70ae115bc7Smrj
71ae115bc7Smrjclean:		$(CLEAN_DEPS)
72ae115bc7Smrj
73ae115bc7Smrjclobber:	$(CLOBBER_DEPS)
74ae115bc7Smrj
75ae115bc7Smrjinstall:	$(INSTALL_DEPS)
76ae115bc7Smrj
77ae115bc7Smrj#
78ae115bc7Smrj#	Include common targets.
79ae115bc7Smrj#
80ae115bc7Smrjinclude $(UTSBASE)/intel/Makefile.targ
81