xref: /illumos-gate/usr/src/uts/intel/acpica/Makefile (revision c21bd51d7acbaf77116c4cc3a23dfc6d16c637c2)
1#
2# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
3# Use is subject to license terms.
4#
5# Copyright (c) 2018, Joyent, Inc.
6#
7#
8#	This makefile drives the production of the ACPI CA services
9#	kernel module.
10#
11#	intel architecture dependent
12#
13
14#
15#	Path to the base of the uts directory tree (usually /usr/src/uts).
16#
17UTSBASE		= ../..
18
19#
20#	Define the module and object file sets.
21#
22MODULE		= acpica
23OBJECTS		= $(ACPICA_OBJS:%=$(OBJS_DIR)/%)
24ROOTMODULE	= $(ROOT_MISC_DIR)/$(MODULE)
25INC_PATH        += -I$(UTSBASE)/intel/sys/acpi
26INC_PATH	+= -I$(UTSBASE)/i86pc
27INC_PATH	+= -I$(SRC)/common
28
29#
30#	Include common rules.
31#
32include $(UTSBASE)/intel/Makefile.intel
33
34#
35#	Define targets
36#
37ALL_TARGET	= $(BINARY) $(CONFMOD)
38INSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
39
40#
41#	Overrides.
42#
43DEBUG_DEFS	+= $(DEBUG_FLGS)
44
45#
46# For now, disable these warnings; maintainers should endeavor
47# to investigate and remove these for maximum coverage.
48# Please do not carry these forward to new Makefiles.
49#
50CFLAGS += $(CCVERBOSE)
51CERRWARN += -erroff=E_STATEMENT_NOT_REACHED
52CERRWARN += -_gcc=-Wno-unused-variable
53CERRWARN += -_gcc=-Wno-parentheses
54CERRWARN += $(CNOWARN_UNINIT)
55CERRWARN += -_gcc=-Wno-unused-function
56SMOFF += all_func_returns
57
58CFLAGS += -DPWRDMN -DACPI_USE_LOCAL_CACHE -DACPI_DEBUG_OUTPUT
59
60#
61#	Default build targets.
62#
63.KEEP_STATE:
64
65def:		$(DEF_DEPS)
66
67all:		$(ALL_DEPS)
68
69clean:		$(CLEAN_DEPS)
70
71clobber:	$(CLOBBER_DEPS)
72
73install:	$(INSTALL_DEPS)
74
75#
76#	Include common targets.
77#
78include $(UTSBASE)/intel/Makefile.targ
79