17c478bd9Sstevel@tonic-gate# 2aa2aa9a6SDana Myers# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 37c478bd9Sstevel@tonic-gate# Use is subject to license terms. 47c478bd9Sstevel@tonic-gate# 5b6b206fcSJohn Levon# Copyright (c) 2018, Joyent, Inc. 67b1019a6SJerry Jelinek# 77c478bd9Sstevel@tonic-gate# 87c478bd9Sstevel@tonic-gate# This makefile drives the production of the ACPI CA services 97c478bd9Sstevel@tonic-gate# kernel module. 107c478bd9Sstevel@tonic-gate# 11ae115bc7Smrj# intel architecture dependent 127c478bd9Sstevel@tonic-gate# 137c478bd9Sstevel@tonic-gate 147c478bd9Sstevel@tonic-gate# 157c478bd9Sstevel@tonic-gate# Path to the base of the uts directory tree (usually /usr/src/uts). 167c478bd9Sstevel@tonic-gate# 177c478bd9Sstevel@tonic-gateUTSBASE = ../.. 187c478bd9Sstevel@tonic-gate 197c478bd9Sstevel@tonic-gate# 207c478bd9Sstevel@tonic-gate# Define the module and object file sets. 217c478bd9Sstevel@tonic-gate# 227c478bd9Sstevel@tonic-gateMODULE = acpica 237c478bd9Sstevel@tonic-gateOBJECTS = $(ACPICA_OBJS:%=$(OBJS_DIR)/%) 247c478bd9Sstevel@tonic-gateROOTMODULE = $(ROOT_MISC_DIR)/$(MODULE) 257c478bd9Sstevel@tonic-gateINC_PATH += -I$(UTSBASE)/intel/sys/acpi 26ae115bc7SmrjINC_PATH += -I$(UTSBASE)/i86pc 27aa2aa9a6SDana MyersINC_PATH += -I$(SRC)/common 287c478bd9Sstevel@tonic-gate 297c478bd9Sstevel@tonic-gate# 307c478bd9Sstevel@tonic-gate# Include common rules. 317c478bd9Sstevel@tonic-gate# 32ae115bc7Smrjinclude $(UTSBASE)/intel/Makefile.intel 337c478bd9Sstevel@tonic-gate 347c478bd9Sstevel@tonic-gate# 357c478bd9Sstevel@tonic-gate# Define targets 367c478bd9Sstevel@tonic-gate# 37c8343062SmeemALL_TARGET = $(BINARY) $(CONFMOD) 38c8343062SmeemINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 397c478bd9Sstevel@tonic-gate 407c478bd9Sstevel@tonic-gate# 417c478bd9Sstevel@tonic-gate# Overrides. 427c478bd9Sstevel@tonic-gate# 437c478bd9Sstevel@tonic-gateDEBUG_DEFS += $(DEBUG_FLGS) 447c478bd9Sstevel@tonic-gate 457c478bd9Sstevel@tonic-gate# 46*0aaef2f5SRichard Lowe# For now, disable these warnings; maintainers should endeavor 47*0aaef2f5SRichard Lowe# to investigate and remove these for maximum coverage. 48*0aaef2f5SRichard Lowe# Please do not carry these forward to new Makefiles. 49f56c1286Srobinson# 50*0aaef2f5SRichard LoweCFLAGS += $(CCVERBOSE) 51f56c1286SrobinsonCERRWARN += -erroff=E_STATEMENT_NOT_REACHED 52*0aaef2f5SRichard LoweCERRWARN += -_gcc=-Wno-unused-variable 53*0aaef2f5SRichard LoweCERRWARN += -_gcc=-Wno-parentheses 54*0aaef2f5SRichard LoweCERRWARN += $(CNOWARN_UNINIT) 55*0aaef2f5SRichard LoweCERRWARN += -_gcc=-Wno-unused-function 56b6b206fcSJohn LevonSMOFF += all_func_returns 57b6b206fcSJohn Levon 58*0aaef2f5SRichard LoweCFLAGS += -DPWRDMN -DACPI_USE_LOCAL_CACHE -DACPI_DEBUG_OUTPUT 597014882cSRichard Lowe 607c478bd9Sstevel@tonic-gate# 617c478bd9Sstevel@tonic-gate# Default build targets. 627c478bd9Sstevel@tonic-gate# 637c478bd9Sstevel@tonic-gate.KEEP_STATE: 647c478bd9Sstevel@tonic-gate 657c478bd9Sstevel@tonic-gatedef: $(DEF_DEPS) 667c478bd9Sstevel@tonic-gate 677c478bd9Sstevel@tonic-gateall: $(ALL_DEPS) 687c478bd9Sstevel@tonic-gate 697c478bd9Sstevel@tonic-gateclean: $(CLEAN_DEPS) 707c478bd9Sstevel@tonic-gate 717c478bd9Sstevel@tonic-gateclobber: $(CLOBBER_DEPS) 727c478bd9Sstevel@tonic-gate 737c478bd9Sstevel@tonic-gateinstall: $(INSTALL_DEPS) 747c478bd9Sstevel@tonic-gate 757c478bd9Sstevel@tonic-gate# 767c478bd9Sstevel@tonic-gate# Include common targets. 777c478bd9Sstevel@tonic-gate# 78ae115bc7Smrjinclude $(UTSBASE)/intel/Makefile.targ 79