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# We are using stack pointer value there 60$(OBJS_DIR)/utdebug.o := CERRWARN += -_gcc=-Wno-dangling-pointer 61 62# 63# Default build targets. 64# 65.KEEP_STATE: 66 67def: $(DEF_DEPS) 68 69all: $(ALL_DEPS) 70 71clean: $(CLEAN_DEPS) 72 73clobber: $(CLOBBER_DEPS) 74 75install: $(INSTALL_DEPS) 76 77# 78# Include common targets. 79# 80include $(UTSBASE)/intel/Makefile.targ 81