Makefile revision 9f43a0a2daf56ad3ad8d54fcd9a38e8f649bf99b
473ca0bf8c73e5fc3132df074b2d4e14be5eaa1eAndreas Gustafsson#
473ca0bf8c73e5fc3132df074b2d4e14be5eaa1eAndreas Gustafsson# CDDL HEADER START
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews#
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# The contents of this file are subject to the terms of the
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# Common Development and Distribution License, Version 1.0 only
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# (the "License"). You may not use this file except in compliance
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# with the License.
473ca0bf8c73e5fc3132df074b2d4e14be5eaa1eAndreas Gustafsson#
473ca0bf8c73e5fc3132df074b2d4e14be5eaa1eAndreas Gustafsson# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
473ca0bf8c73e5fc3132df074b2d4e14be5eaa1eAndreas Gustafsson# or http://www.opensolaris.org/os/licensing.
473ca0bf8c73e5fc3132df074b2d4e14be5eaa1eAndreas Gustafsson# See the License for the specific language governing permissions
473ca0bf8c73e5fc3132df074b2d4e14be5eaa1eAndreas Gustafsson# and limitations under the License.
473ca0bf8c73e5fc3132df074b2d4e14be5eaa1eAndreas Gustafsson#
473ca0bf8c73e5fc3132df074b2d4e14be5eaa1eAndreas Gustafsson# When distributing Covered Code, include this CDDL HEADER in each
473ca0bf8c73e5fc3132df074b2d4e14be5eaa1eAndreas Gustafsson# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
473ca0bf8c73e5fc3132df074b2d4e14be5eaa1eAndreas Gustafsson# If applicable, add the following below this CDDL HEADER, with the
473ca0bf8c73e5fc3132df074b2d4e14be5eaa1eAndreas Gustafsson# fields enclosed by brackets "[]" replaced with your own identifying
473ca0bf8c73e5fc3132df074b2d4e14be5eaa1eAndreas Gustafsson# information: Portions Copyright [yyyy] [name of copyright owner]
473ca0bf8c73e5fc3132df074b2d4e14be5eaa1eAndreas Gustafsson#
473ca0bf8c73e5fc3132df074b2d4e14be5eaa1eAndreas Gustafsson# CDDL HEADER END
473ca0bf8c73e5fc3132df074b2d4e14be5eaa1eAndreas Gustafsson#
473ca0bf8c73e5fc3132df074b2d4e14be5eaa1eAndreas Gustafsson#
473ca0bf8c73e5fc3132df074b2d4e14be5eaa1eAndreas Gustafsson# uts/i86pc/power/Makefile
473ca0bf8c73e5fc3132df074b2d4e14be5eaa1eAndreas Gustafsson# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
473ca0bf8c73e5fc3132df074b2d4e14be5eaa1eAndreas Gustafsson# Use is subject to license terms.
2b43d1d8c508d7e7be388d85e8bf83ff0aed1e11Automatic Updater#
473ca0bf8c73e5fc3132df074b2d4e14be5eaa1eAndreas Gustafsson#ident "%Z%%M% %I% %E% SMI"
473ca0bf8c73e5fc3132df074b2d4e14be5eaa1eAndreas Gustafsson#
473ca0bf8c73e5fc3132df074b2d4e14be5eaa1eAndreas Gustafsson# This makefile drives the production of the power driver
473ca0bf8c73e5fc3132df074b2d4e14be5eaa1eAndreas Gustafsson#
473ca0bf8c73e5fc3132df074b2d4e14be5eaa1eAndreas Gustafsson# sun4u implementation architecture dependent
473ca0bf8c73e5fc3132df074b2d4e14be5eaa1eAndreas Gustafsson#
473ca0bf8c73e5fc3132df074b2d4e14be5eaa1eAndreas Gustafsson
473ca0bf8c73e5fc3132df074b2d4e14be5eaa1eAndreas Gustafsson#
473ca0bf8c73e5fc3132df074b2d4e14be5eaa1eAndreas Gustafsson# Path to the base of the uts directory tree (usually /usr/src/uts).
473ca0bf8c73e5fc3132df074b2d4e14be5eaa1eAndreas Gustafsson#
473ca0bf8c73e5fc3132df074b2d4e14be5eaa1eAndreas GustafssonUTSBASE = ../..
473ca0bf8c73e5fc3132df074b2d4e14be5eaa1eAndreas Gustafsson
473ca0bf8c73e5fc3132df074b2d4e14be5eaa1eAndreas Gustafsson#
473ca0bf8c73e5fc3132df074b2d4e14be5eaa1eAndreas Gustafsson# Define the module and object file sets.
473ca0bf8c73e5fc3132df074b2d4e14be5eaa1eAndreas Gustafsson#
473ca0bf8c73e5fc3132df074b2d4e14be5eaa1eAndreas GustafssonMODULE = power
473ca0bf8c73e5fc3132df074b2d4e14be5eaa1eAndreas GustafssonOBJECTS = $(POWER_OBJS:%=$(OBJS_DIR)/%)
473ca0bf8c73e5fc3132df074b2d4e14be5eaa1eAndreas GustafssonLINTS = $(POWER_OBJS:%.o=$(LINTS_DIR)/%.ln)
473ca0bf8c73e5fc3132df074b2d4e14be5eaa1eAndreas GustafssonROOTMODULE = $(ROOT_PSM_DRV_DIR)/$(MODULE)
473ca0bf8c73e5fc3132df074b2d4e14be5eaa1eAndreas GustafssonCONF_SRCDIR = $(UTSBASE)/common/io
473ca0bf8c73e5fc3132df074b2d4e14be5eaa1eAndreas Gustafsson
473ca0bf8c73e5fc3132df074b2d4e14be5eaa1eAndreas Gustafsson#
473ca0bf8c73e5fc3132df074b2d4e14be5eaa1eAndreas Gustafsson# Include common rules.
473ca0bf8c73e5fc3132df074b2d4e14be5eaa1eAndreas Gustafsson#
473ca0bf8c73e5fc3132df074b2d4e14be5eaa1eAndreas Gustafssoninclude $(UTSBASE)/i86pc/Makefile.i86pc
473ca0bf8c73e5fc3132df074b2d4e14be5eaa1eAndreas Gustafsson
473ca0bf8c73e5fc3132df074b2d4e14be5eaa1eAndreas Gustafsson#
473ca0bf8c73e5fc3132df074b2d4e14be5eaa1eAndreas Gustafsson# Define targets
473ca0bf8c73e5fc3132df074b2d4e14be5eaa1eAndreas Gustafsson#
473ca0bf8c73e5fc3132df074b2d4e14be5eaa1eAndreas GustafssonALL_TARGET = $(BINARY) $(CONFMOD)
473ca0bf8c73e5fc3132df074b2d4e14be5eaa1eAndreas GustafssonLINT_TARGET = $(MODULE).lint
473ca0bf8c73e5fc3132df074b2d4e14be5eaa1eAndreas GustafssonINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
473ca0bf8c73e5fc3132df074b2d4e14be5eaa1eAndreas Gustafsson
473ca0bf8c73e5fc3132df074b2d4e14be5eaa1eAndreas Gustafsson#
473ca0bf8c73e5fc3132df074b2d4e14be5eaa1eAndreas Gustafsson# lint pass one enforcement
473ca0bf8c73e5fc3132df074b2d4e14be5eaa1eAndreas Gustafsson#
473ca0bf8c73e5fc3132df074b2d4e14be5eaa1eAndreas GustafssonCFLAGS += $(CCVERBOSE)
473ca0bf8c73e5fc3132df074b2d4e14be5eaa1eAndreas Gustafsson
473ca0bf8c73e5fc3132df074b2d4e14be5eaa1eAndreas Gustafsson#
473ca0bf8c73e5fc3132df074b2d4e14be5eaa1eAndreas Gustafsson# ACPI power button
473ca0bf8c73e5fc3132df074b2d4e14be5eaa1eAndreas Gustafsson#
473ca0bf8c73e5fc3132df074b2d4e14be5eaa1eAndreas GustafssonCFLAGS += -DACPI_POWER_BUTTON
473ca0bf8c73e5fc3132df074b2d4e14be5eaa1eAndreas GustafssonLINTFLAGS += -DACPI_POWER_BUTTON
473ca0bf8c73e5fc3132df074b2d4e14be5eaa1eAndreas Gustafsson
473ca0bf8c73e5fc3132df074b2d4e14be5eaa1eAndreas GustafssonLDFLAGS += -dy -N misc/acpica
473ca0bf8c73e5fc3132df074b2d4e14be5eaa1eAndreas Gustafsson
473ca0bf8c73e5fc3132df074b2d4e14be5eaa1eAndreas Gustafsson#
473ca0bf8c73e5fc3132df074b2d4e14be5eaa1eAndreas Gustafsson# Default build targets.
473ca0bf8c73e5fc3132df074b2d4e14be5eaa1eAndreas Gustafsson#
473ca0bf8c73e5fc3132df074b2d4e14be5eaa1eAndreas Gustafsson.KEEP_STATE:
473ca0bf8c73e5fc3132df074b2d4e14be5eaa1eAndreas Gustafsson
473ca0bf8c73e5fc3132df074b2d4e14be5eaa1eAndreas Gustafssondef: $(DEF_DEPS)
473ca0bf8c73e5fc3132df074b2d4e14be5eaa1eAndreas Gustafsson
473ca0bf8c73e5fc3132df074b2d4e14be5eaa1eAndreas Gustafssonall: $(ALL_DEPS)
473ca0bf8c73e5fc3132df074b2d4e14be5eaa1eAndreas Gustafsson
473ca0bf8c73e5fc3132df074b2d4e14be5eaa1eAndreas Gustafssonclean: $(CLEAN_DEPS)
473ca0bf8c73e5fc3132df074b2d4e14be5eaa1eAndreas Gustafsson
473ca0bf8c73e5fc3132df074b2d4e14be5eaa1eAndreas Gustafssonclobber: $(CLOBBER_DEPS)
473ca0bf8c73e5fc3132df074b2d4e14be5eaa1eAndreas Gustafsson
473ca0bf8c73e5fc3132df074b2d4e14be5eaa1eAndreas Gustafssonlint: $(LINT_DEPS)
473ca0bf8c73e5fc3132df074b2d4e14be5eaa1eAndreas Gustafsson
473ca0bf8c73e5fc3132df074b2d4e14be5eaa1eAndreas Gustafssonmodlintlib: $(MODLINTLIB_DEPS)
473ca0bf8c73e5fc3132df074b2d4e14be5eaa1eAndreas Gustafsson
473ca0bf8c73e5fc3132df074b2d4e14be5eaa1eAndreas Gustafssonclean.lint: $(CLEAN_LINT_DEPS)
c73d8c1b72ddc3330cfc21e2070dffabca324bf7Mark Andrews
473ca0bf8c73e5fc3132df074b2d4e14be5eaa1eAndreas Gustafssoninstall: $(INSTALL_DEPS)
c73d8c1b72ddc3330cfc21e2070dffabca324bf7Mark Andrews
473ca0bf8c73e5fc3132df074b2d4e14be5eaa1eAndreas Gustafsson#
473ca0bf8c73e5fc3132df074b2d4e14be5eaa1eAndreas Gustafsson# Include common targets.
473ca0bf8c73e5fc3132df074b2d4e14be5eaa1eAndreas Gustafsson#
include $(UTSBASE)/i86pc/Makefile.targ