Makefile revision d2ec54f7875f7e05edd56195adbeb593c947763f
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater#
11e9368a226272085c337e9e74b79808c16fbdbaTinderbox User# CDDL HEADER START
bef75d63d74f58abc0f834ed271526672777ba29Automatic Updater#
bef75d63d74f58abc0f834ed271526672777ba29Automatic Updater# The contents of this file are subject to the terms of the
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# Common Development and Distribution License (the "License").
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# You may not use this file except in compliance with the License.
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater#
bef75d63d74f58abc0f834ed271526672777ba29Automatic Updater# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# or http://www.opensolaris.org/os/licensing.
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# See the License for the specific language governing permissions
bef75d63d74f58abc0f834ed271526672777ba29Automatic Updater# and limitations under the License.
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater#
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# When distributing Covered Code, include this CDDL HEADER in each
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# If applicable, add the following below this CDDL HEADER, with the
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# fields enclosed by brackets "[]" replaced with your own identifying
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# information: Portions Copyright [yyyy] [name of copyright owner]
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater#
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# CDDL HEADER END
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater#
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
cd32f419a8a5432fbb139f56ee73cbf68b9350ccTinderbox User# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# Use is subject to license terms.
b6b8f8a0362da8c749021c4b6376cfb96047912bTinderbox User#
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# ident "%Z%%M% %I% %E% SMI"
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater#
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# This makefile drives the production of the acpi_drv
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# driver kernel module.
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater#
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# i86pc architecture dependent
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater
b6b8f8a0362da8c749021c4b6376cfb96047912bTinderbox User#
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# Path to the base of the uts directory tree (usually /usr/src/uts).
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater#
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic UpdaterUTSBASE = ../..
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater#
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# Define the module and object file sets.
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater#
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserMODULE = acpi_drv
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic UpdaterOBJECTS = $(ACPI_DRV_OBJS:%=$(OBJS_DIR)/%)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserLINTS = $(ACPI_DRV_OBJS:%.o=$(LINTS_DIR)/%.ln)
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic UpdaterROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserCONF_SRCDIR = $(UTSBASE)/i86pc/io/acpi_drv
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User#
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# Include common rules.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User#
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox Userinclude $(UTSBASE)/i86pc/Makefile.i86pc
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# Define targets
9d557856c2a19ec95ee73245f60a92f8675cf5baTinderbox User#
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic UpdaterALL_TARGET = $(BINARY) $(CONFMOD)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserLINT_TARGET = $(MODULE).lint
9d557856c2a19ec95ee73245f60a92f8675cf5baTinderbox UserINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntDEBUG_FLGS =
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater$(NOT_RELEASE_BUILD)DEBUG_DEFS += $(DEBUG_FLGS)
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic UpdaterCPPFLAGS += -DSUNDDI
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic UpdaterLDFLAGS += -dy -N misc/acpica
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater#
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# For now, disable these lint checks; maintainers should endeavor
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# to investigate and remove these for maximum lint coverage.
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# Please do not carry these forward to new Makefiles.
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater#
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic UpdaterLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater#
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# Overrides
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User#
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserC99LMODE= -Xc99=%all
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User#
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# Default build targets.
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater#
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater.KEEP_STATE:
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updaterdef: $(DEF_DEPS)
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updaterall: $(ALL_DEPS)
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updaterclean: $(CLEAN_DEPS)
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Huntclobber: $(CLOBBER_DEPS)
cd32f419a8a5432fbb139f56ee73cbf68b9350ccTinderbox User
b6b8f8a0362da8c749021c4b6376cfb96047912bTinderbox Userlint: $(LINT_DEPS)
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updatermodlintlib: $(MODLINTLIB_DEPS)
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updaterclean.lint: $(CLEAN_LINT_DEPS)
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updaterinstall: $(INSTALL_DEPS)
b6b8f8a0362da8c749021c4b6376cfb96047912bTinderbox User
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater#
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# Include common targets.
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater#
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updaterinclude $(UTSBASE)/i86pc/Makefile.targ
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt