1ae115bc7Smrj# 2aa2aa9a6SDana Myers# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 3ae115bc7Smrj# Use is subject to license terms. 4ae115bc7Smrj# 5*de5d74c2SJerry Jelinek# Copyright 2016 Joyent, Inc. 6*de5d74c2SJerry 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)/%) 24ae115bc7SmrjLINTS = $(ACPICA_OBJS:%.o=$(LINTS_DIR)/%.ln) 25ae115bc7SmrjROOTMODULE = $(ROOT_MISC_DIR)/$(MODULE) 26ae115bc7SmrjINC_PATH += -I$(UTSBASE)/intel/sys/acpi 27ae115bc7SmrjINC_PATH += -I$(UTSBASE)/i86pc 28aa2aa9a6SDana MyersINC_PATH += -I$(SRC)/common 29ae115bc7Smrj 30ae115bc7Smrj# 31ae115bc7Smrj# Include common rules. 32ae115bc7Smrj# 33ae115bc7Smrjinclude $(UTSBASE)/intel/Makefile.intel 34ae115bc7Smrj 35ae115bc7Smrj# 36ae115bc7Smrj# Define targets 37ae115bc7Smrj# 38ae115bc7SmrjALL_TARGET = $(BINARY) $(CONFMOD) 39ae115bc7SmrjLINT_TARGET = $(MODULE).lint 40ae115bc7SmrjINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 41ae115bc7Smrj 42ae115bc7Smrj# 43ae115bc7Smrj# Overrides. 44ae115bc7Smrj# 45ae115bc7SmrjDEBUG_DEFS += $(DEBUG_FLGS) 46ae115bc7Smrj 47ae115bc7Smrj# 48ae115bc7Smrj# lint pass one non-enforcement 49ae115bc7Smrj# 50ae115bc7SmrjCFLAGS += $(CCVERBOSE) -DPWRDMN -DACPI_USE_LOCAL_CACHE -DACPI_DEBUG_OUTPUT 51ae115bc7Smrj 52ae115bc7Smrj# 53ae115bc7Smrj# 3rd party code is not lint clean 54ae115bc7Smrj# 55ae115bc7SmrjCERRWARN += -erroff=E_STATEMENT_NOT_REACHED 56ae115bc7Smrj 57ae115bc7SmrjLINTFLAGS += -errchk=%none 58ae115bc7SmrjLINTFLAGS += -errhdr=%none 59ae115bc7SmrjLINTFLAGS += -erroff=%all 60ae115bc7SmrjLINTFLAGS += -errwarn=%none 61ae115bc7Smrj 627014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-variable 637014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses 647014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized 65*de5d74c2SJerry JelinekCERRWARN += -_gcc=-Wno-unused-function 667014882cSRichard Lowe 67ae115bc7Smrj# 68ae115bc7Smrj# Default build targets. 69ae115bc7Smrj# 70ae115bc7Smrj.KEEP_STATE: 71ae115bc7Smrj 72ae115bc7Smrjdef: $(DEF_DEPS) 73ae115bc7Smrj 74ae115bc7Smrjall: $(ALL_DEPS) 75ae115bc7Smrj 76ae115bc7Smrjclean: $(CLEAN_DEPS) 77ae115bc7Smrj 78ae115bc7Smrjclobber: $(CLOBBER_DEPS) 79ae115bc7Smrj 80ae115bc7Smrjlint: $(LINT_DEPS) 81ae115bc7Smrj 82ae115bc7Smrjmodlintlib: $(MODLINTLIB_DEPS) 83ae115bc7Smrj 84ae115bc7Smrjclean.lint: $(CLEAN_LINT_DEPS) 85ae115bc7Smrj 86ae115bc7Smrjinstall: $(INSTALL_DEPS) 87ae115bc7Smrj 88ae115bc7Smrj# 89ae115bc7Smrj# Include common targets. 90ae115bc7Smrj# 91ae115bc7Smrjinclude $(UTSBASE)/intel/Makefile.targ 92