1# 2# Copyright 2005 Sun Microsystems, Inc. All rights reserved. 3# Use is subject to license terms. 4# 5#ident "%Z%%M% %I% %E% SMI" 6# 7# This makefile drives the production of the ACPI CA services 8# kernel module. 9# 10# i86pc implementation architecture dependent 11# 12 13# 14# Path to the base of the uts directory tree (usually /usr/src/uts). 15# 16UTSBASE = ../.. 17 18# 19# Define the module and object file sets. 20# 21MODULE = acpica 22OBJECTS = $(ACPICA_OBJS:%=$(OBJS_DIR)/%) 23LINTS = $(ACPICA_OBJS:%.o=$(LINTS_DIR)/%.ln) 24ROOTMODULE = $(ROOT_MISC_DIR)/$(MODULE) 25INC_PATH += -I$(UTSBASE)/intel/sys/acpi 26 27# 28# Include common rules. 29# 30include $(UTSBASE)/i86pc/Makefile.i86pc 31 32# 33# Define targets 34# 35ALL_TARGET = $(BINARY) $(CONFMOD) $(ITUMOD) 36LINT_TARGET = $(MODULE).lint 37INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_ITUFILE) 38 39# 40# Overrides. 41# 42DEBUG_FLGS = 43DEBUG_DEFS += $(DEBUG_FLGS) 44 45# 46# depends on low-level PCI functions 47# 48LDFLAGS += -dy -Nmisc/pci_autoconfig 49 50# 51# lint pass one non-enforcement 52# 53CFLAGS += $(CCVERBOSE) -DPWRDMN 54 55LINTFLAGS += -errchk=%none 56LINTFLAGS += -errhdr=%none 57LINTFLAGS += -erroff=%all 58LINTFLAGS += -errwarn=%none 59 60# 61# Default build targets. 62# 63.KEEP_STATE: 64 65def: $(DEF_DEPS) 66 67all: $(ALL_DEPS) 68 69clean: $(CLEAN_DEPS) 70 71clobber: $(CLOBBER_DEPS) 72 73lint: $(LINT_DEPS) 74 75modlintlib: $(MODLINTLIB_DEPS) 76 77clean.lint: $(CLEAN_LINT_DEPS) 78 79install: $(INSTALL_DEPS) 80 81# 82# Include common targets. 83# 84include $(UTSBASE)/i86pc/Makefile.targ 85