Makefile revision bb25c06cca41ca78e5fb87fbb8e81d55beb18c95
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# CDDL HEADER START
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# The contents of this file are subject to the terms of the
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# Common Development and Distribution License (the "License").
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# You may not use this file except in compliance with the License.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# or http://www.opensolaris.org/os/licensing.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# See the License for the specific language governing permissions
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# and limitations under the License.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# When distributing Covered Code, include this CDDL HEADER in each
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# If applicable, add the following below this CDDL HEADER, with the
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# fields enclosed by brackets "[]" replaced with your own identifying
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# information: Portions Copyright [yyyy] [name of copyright owner]
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# CDDL HEADER END
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# Use is subject to license terms.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# ident "%Z%%M% %I% %E% SMI"
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# This makefile drives the production of the tzmon
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# ThermalZone Monitor driver kernel module.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# i86pc architecture dependent
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# Path to the base of the uts directory tree (usually /usr/src/uts).
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncUTSBASE = ../..
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# Define the module and object file sets.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncMODULE = tzmon
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncOBJECTS = $(TZMON_OBJS:%=$(OBJS_DIR)/%)
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncLINTS = $(TZMON_OBJS:%.o=$(LINTS_DIR)/%.ln)
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncCONF_SRCDIR = $(UTSBASE)/i86pc/io/tzmon
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# Include common rules.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncinclude $(UTSBASE)/i86pc/Makefile.i86pc
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# Define targets
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncALL_TARGET = $(BINARY) $(CONFMOD)
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncLINT_TARGET = $(MODULE).lint
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncDEBUG_FLGS =
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync$(NOT_RELEASE_BUILD)DEBUG_DEFS += $(DEBUG_FLGS)
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncCPPFLAGS += -DSUNDDI
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncLDFLAGS += -dy -N misc/acpica
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# For now, disable these lint checks; maintainers should endeavor
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# to investigate and remove these for maximum lint coverage.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# Please do not carry these forward to new Makefiles.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# Default build targets.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync.KEEP_STATE:
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncdef: $(DEF_DEPS)
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncall: $(ALL_DEPS)
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncclean: $(CLEAN_DEPS)
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncclobber: $(CLOBBER_DEPS)
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsynclint: $(LINT_DEPS)
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncmodlintlib: $(MODLINTLIB_DEPS)
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncclean.lint: $(CLEAN_LINT_DEPS)
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncinstall: $(INSTALL_DEPS)
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# Include common targets.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
include $(UTSBASE)/i86pc/Makefile.targ