12bda830bSap25164# 22bda830bSap25164# CDDL HEADER START 32bda830bSap25164# 42bda830bSap25164# The contents of this file are subject to the terms of the 52bda830bSap25164# Common Development and Distribution License (the "License"). 62bda830bSap25164# You may not use this file except in compliance with the License. 72bda830bSap25164# 82bda830bSap25164# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 92bda830bSap25164# or http://www.opensolaris.org/os/licensing. 102bda830bSap25164# See the License for the specific language governing permissions 112bda830bSap25164# and limitations under the License. 122bda830bSap25164# 132bda830bSap25164# When distributing Covered Code, include this CDDL HEADER in each 142bda830bSap25164# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 152bda830bSap25164# If applicable, add the following below this CDDL HEADER, with the 162bda830bSap25164# fields enclosed by brackets "[]" replaced with your own identifying 172bda830bSap25164# information: Portions Copyright [yyyy] [name of copyright owner] 182bda830bSap25164# 192bda830bSap25164# CDDL HEADER END 202bda830bSap25164# 212bda830bSap25164 222bda830bSap25164# 232bda830bSap25164# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 242bda830bSap25164# Use is subject to license terms. 252bda830bSap25164# 262bda830bSap25164# ident "%Z%%M% %I% %E% SMI" 272bda830bSap25164# 282bda830bSap25164 292bda830bSap25164# This makefile drives the production of the tzmon 302bda830bSap25164# ThermalZone Monitor driver kernel module. 312bda830bSap25164# 322bda830bSap25164# i86pc architecture dependent 332bda830bSap25164# 342bda830bSap25164 352bda830bSap25164# 362bda830bSap25164# Path to the base of the uts directory tree (usually /usr/src/uts). 372bda830bSap25164# 382bda830bSap25164UTSBASE = ../.. 392bda830bSap25164 402bda830bSap25164# 412bda830bSap25164# Define the module and object file sets. 422bda830bSap25164# 432bda830bSap25164MODULE = tzmon 442bda830bSap25164OBJECTS = $(TZMON_OBJS:%=$(OBJS_DIR)/%) 452bda830bSap25164LINTS = $(TZMON_OBJS:%.o=$(LINTS_DIR)/%.ln) 462bda830bSap25164ROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 472bda830bSap25164CONF_SRCDIR = $(UTSBASE)/i86pc/io/tzmon 482bda830bSap25164 492bda830bSap25164# 502bda830bSap25164# Include common rules. 512bda830bSap25164# 522bda830bSap25164include $(UTSBASE)/i86pc/Makefile.i86pc 532bda830bSap25164 542bda830bSap25164# 552bda830bSap25164# Define targets 562bda830bSap25164# 572bda830bSap25164ALL_TARGET = $(BINARY) $(CONFMOD) 582bda830bSap25164LINT_TARGET = $(MODULE).lint 592bda830bSap25164INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) 602bda830bSap25164 612bda830bSap25164DEBUG_FLGS = 622bda830bSap25164$(NOT_RELEASE_BUILD)DEBUG_DEFS += $(DEBUG_FLGS) 632bda830bSap25164 642bda830bSap25164CPPFLAGS += -DSUNDDI 652bda830bSap25164 662bda830bSap25164LDFLAGS += -dy -N misc/acpica 672bda830bSap25164 682bda830bSap25164# 69*bb25c06cSjg# For now, disable these lint checks; maintainers should endeavor 70*bb25c06cSjg# to investigate and remove these for maximum lint coverage. 71*bb25c06cSjg# Please do not carry these forward to new Makefiles. 72*bb25c06cSjg# 73*bb25c06cSjgLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN 74*bb25c06cSjg 75*bb25c06cSjg# 762bda830bSap25164# Default build targets. 772bda830bSap25164# 782bda830bSap25164.KEEP_STATE: 792bda830bSap25164 802bda830bSap25164def: $(DEF_DEPS) 812bda830bSap25164 822bda830bSap25164all: $(ALL_DEPS) 832bda830bSap25164 842bda830bSap25164clean: $(CLEAN_DEPS) 852bda830bSap25164 862bda830bSap25164clobber: $(CLOBBER_DEPS) 872bda830bSap25164 882bda830bSap25164lint: $(LINT_DEPS) 892bda830bSap25164 902bda830bSap25164modlintlib: $(MODLINTLIB_DEPS) 912bda830bSap25164 922bda830bSap25164clean.lint: $(CLEAN_LINT_DEPS) 932bda830bSap25164 942bda830bSap25164install: $(INSTALL_DEPS) 952bda830bSap25164 962bda830bSap25164# 972bda830bSap25164# Include common targets. 982bda830bSap25164# 992bda830bSap25164include $(UTSBASE)/i86pc/Makefile.targ 100