Makefile revision 7c478bd95313f5f23a4c958a745db2134aa03244
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews#
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# Use is subject to license terms.
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews#
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews#ident "%Z%%M% %I% %E% SMI"
7e9d7c58afaa1f10705de3697f9885b68a74a994Automatic Updater#
7e9d7c58afaa1f10705de3697f9885b68a74a994Automatic Updater# This makefile drives the production of the ACPI CA services
b9abd7863696ec53c12b9620d02c52b5683cbcc0Mark Andrews# kernel module.
b9abd7863696ec53c12b9620d02c52b5683cbcc0Mark Andrews#
b9abd7863696ec53c12b9620d02c52b5683cbcc0Mark Andrews# i86pc implementation architecture dependent
b9abd7863696ec53c12b9620d02c52b5683cbcc0Mark Andrews#
b9abd7863696ec53c12b9620d02c52b5683cbcc0Mark Andrews
b9abd7863696ec53c12b9620d02c52b5683cbcc0Mark Andrews#
b9abd7863696ec53c12b9620d02c52b5683cbcc0Mark Andrews# Path to the base of the uts directory tree (usually /usr/src/uts).
b9abd7863696ec53c12b9620d02c52b5683cbcc0Mark Andrews#
b9abd7863696ec53c12b9620d02c52b5683cbcc0Mark AndrewsUTSBASE = ../..
b9abd7863696ec53c12b9620d02c52b5683cbcc0Mark Andrews
b9abd7863696ec53c12b9620d02c52b5683cbcc0Mark Andrews#
b9abd7863696ec53c12b9620d02c52b5683cbcc0Mark Andrews# Define the module and object file sets.
b9abd7863696ec53c12b9620d02c52b5683cbcc0Mark Andrews#
b9abd7863696ec53c12b9620d02c52b5683cbcc0Mark AndrewsMODULE = acpica
b9abd7863696ec53c12b9620d02c52b5683cbcc0Mark AndrewsOBJECTS = $(ACPICA_OBJS:%=$(OBJS_DIR)/%)
b9abd7863696ec53c12b9620d02c52b5683cbcc0Mark AndrewsLINTS = $(ACPICA_OBJS:%.o=$(LINTS_DIR)/%.ln)
b9abd7863696ec53c12b9620d02c52b5683cbcc0Mark AndrewsROOTMODULE = $(ROOT_MISC_DIR)/$(MODULE)
b9abd7863696ec53c12b9620d02c52b5683cbcc0Mark AndrewsINC_PATH += -I$(UTSBASE)/intel/sys/acpi
b9abd7863696ec53c12b9620d02c52b5683cbcc0Mark Andrews
b9abd7863696ec53c12b9620d02c52b5683cbcc0Mark Andrews#
b9abd7863696ec53c12b9620d02c52b5683cbcc0Mark Andrews# Include common rules.
b9abd7863696ec53c12b9620d02c52b5683cbcc0Mark Andrews#
b9abd7863696ec53c12b9620d02c52b5683cbcc0Mark Andrewsinclude $(UTSBASE)/i86pc/Makefile.i86pc
b9abd7863696ec53c12b9620d02c52b5683cbcc0Mark Andrews
b9abd7863696ec53c12b9620d02c52b5683cbcc0Mark Andrews#
b9abd7863696ec53c12b9620d02c52b5683cbcc0Mark Andrews# Define targets
b9abd7863696ec53c12b9620d02c52b5683cbcc0Mark Andrews#
b9abd7863696ec53c12b9620d02c52b5683cbcc0Mark AndrewsALL_TARGET = $(BINARY) $(CONFMOD) $(ITUMOD)
b9abd7863696ec53c12b9620d02c52b5683cbcc0Mark AndrewsLINT_TARGET = $(MODULE).lint
INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_ITUFILE)
#
# Overrides.
#
DEBUG_FLGS =
DEBUG_DEFS += $(DEBUG_FLGS)
#
# depends on low-level PCI functions
#
LDFLAGS += -dy -Nmisc/pci_autoconfig
#
# lint pass one non-enforcement
#
CFLAGS += $(CCVERBOSE) -DPWRDMN
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)/i86pc/Makefile.targ