xref: /illumos-gate/usr/src/uts/intel/acpica/Makefile (revision ef150c2b133e57069ae0f58d5d80cef8980ac9c3)
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 += -_gcc=-Wno-unused-variable
52CERRWARN += -_gcc=-Wno-parentheses
53CERRWARN += $(CNOWARN_UNINIT)
54CERRWARN += -_gcc=-Wno-unused-function
55SMOFF += all_func_returns
56
57CFLAGS += -DPWRDMN -DACPI_USE_LOCAL_CACHE -DACPI_DEBUG_OUTPUT
58
59$(OBJS_DIR)/utdebug.o := CERRWARN += -_gcc12=-Wno-dangling-pointer
60
61#
62#	Default build targets.
63#
64.KEEP_STATE:
65
66def:		$(DEF_DEPS)
67
68all:		$(ALL_DEPS)
69
70clean:		$(CLEAN_DEPS)
71
72clobber:	$(CLOBBER_DEPS)
73
74install:	$(INSTALL_DEPS)
75
76#
77#	Include common targets.
78#
79include $(UTSBASE)/intel/Makefile.targ
80