Makefile revision aa2aa9a662539940ddbc8610da5a3a874ebd7503
9512fe850e98fdd448c638ca63fdd92a8a510255ahl#
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# Use is subject to license terms.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl#
9512fe850e98fdd448c638ca63fdd92a8a510255ahl#
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# This makefile drives the production of the ACPI CA services
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# kernel module.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl#
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# intel architecture dependent
9512fe850e98fdd448c638ca63fdd92a8a510255ahl#
9512fe850e98fdd448c638ca63fdd92a8a510255ahl
9512fe850e98fdd448c638ca63fdd92a8a510255ahl#
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# Path to the base of the uts directory tree (usually /usr/src/uts).
9512fe850e98fdd448c638ca63fdd92a8a510255ahl#
9512fe850e98fdd448c638ca63fdd92a8a510255ahlUTSBASE = ../..
9512fe850e98fdd448c638ca63fdd92a8a510255ahl
9512fe850e98fdd448c638ca63fdd92a8a510255ahl#
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# Define the module and object file sets.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl#
9512fe850e98fdd448c638ca63fdd92a8a510255ahlMODULE = acpica
9512fe850e98fdd448c638ca63fdd92a8a510255ahlOBJECTS = $(ACPICA_OBJS:%=$(OBJS_DIR)/%)
9512fe850e98fdd448c638ca63fdd92a8a510255ahlLINTS = $(ACPICA_OBJS:%.o=$(LINTS_DIR)/%.ln)
9512fe850e98fdd448c638ca63fdd92a8a510255ahlROOTMODULE = $(ROOT_MISC_DIR)/$(MODULE)
9512fe850e98fdd448c638ca63fdd92a8a510255ahlINC_PATH += -I$(UTSBASE)/intel/sys/acpi
9512fe850e98fdd448c638ca63fdd92a8a510255ahlINC_PATH += -I$(UTSBASE)/i86pc
9512fe850e98fdd448c638ca63fdd92a8a510255ahlINC_PATH += -I$(SRC)/common
9512fe850e98fdd448c638ca63fdd92a8a510255ahl
9512fe850e98fdd448c638ca63fdd92a8a510255ahl#
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# Include common rules.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl#
9512fe850e98fdd448c638ca63fdd92a8a510255ahlinclude $(UTSBASE)/intel/Makefile.intel
9512fe850e98fdd448c638ca63fdd92a8a510255ahl
9512fe850e98fdd448c638ca63fdd92a8a510255ahl#
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# Define targets
9512fe850e98fdd448c638ca63fdd92a8a510255ahl#
9512fe850e98fdd448c638ca63fdd92a8a510255ahlALL_TARGET = $(BINARY) $(CONFMOD)
9512fe850e98fdd448c638ca63fdd92a8a510255ahlLINT_TARGET = $(MODULE).lint
9512fe850e98fdd448c638ca63fdd92a8a510255ahlINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
9512fe850e98fdd448c638ca63fdd92a8a510255ahl
9512fe850e98fdd448c638ca63fdd92a8a510255ahl#
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# Overrides.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl#
9512fe850e98fdd448c638ca63fdd92a8a510255ahlDEBUG_DEFS += $(DEBUG_FLGS)
#
# lint pass one non-enforcement
#
CFLAGS += $(CCVERBOSE) -DPWRDMN -DACPI_USE_LOCAL_CACHE -DACPI_DEBUG_OUTPUT
#
# 3rd party code is not lint clean
#
CERRWARN += -erroff=E_STATEMENT_NOT_REACHED
LINTFLAGS += -errchk=%none
LINTFLAGS += -errhdr=%none
LINTFLAGS += -erroff=%all
LINTFLAGS += -errwarn=%none
#
# Default build targets.
#
.KEEP_STATE:
def: $(DEF_DEPS)
all: $(ALL_DEPS)
clean: $(CLEAN_DEPS)
clobber: $(CLOBBER_DEPS)
lint: $(LINT_DEPS)
modlintlib: $(MODLINTLIB_DEPS)
clean.lint: $(CLEAN_LINT_DEPS)
install: $(INSTALL_DEPS)
#
# Include common targets.
#
include $(UTSBASE)/intel/Makefile.targ