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# 267b1019a6SJerry Jelinek# Copyright 2016 Joyent, Inc. 27fe7a23c8SAndy Fiddaman# Copyright 2019 OmniOS Community Edition (OmniOSce) Association. 287b1019a6SJerry Jelinek# 292bda830bSap25164 302bda830bSap25164# This makefile drives the production of the tzmon 312bda830bSap25164# ThermalZone Monitor driver kernel module. 322bda830bSap25164# 332bda830bSap25164# i86pc architecture dependent 342bda830bSap25164# 352bda830bSap25164 362bda830bSap25164# 372bda830bSap25164# Path to the base of the uts directory tree (usually /usr/src/uts). 382bda830bSap25164# 392bda830bSap25164UTSBASE = ../.. 402bda830bSap25164 412bda830bSap25164# 422bda830bSap25164# Define the module and object file sets. 432bda830bSap25164# 442bda830bSap25164MODULE = tzmon 452bda830bSap25164OBJECTS = $(TZMON_OBJS:%=$(OBJS_DIR)/%) 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) 582bda830bSap25164INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) 592bda830bSap25164 602bda830bSap25164DEBUG_FLGS = 612bda830bSap25164$(NOT_RELEASE_BUILD)DEBUG_DEFS += $(DEBUG_FLGS) 622bda830bSap25164 632bda830bSap25164CPPFLAGS += -DSUNDDI 647b1019a6SJerry JelinekCERRWARN += -_gcc=-Wno-unused-function 652bda830bSap25164 66*82d0151aSRichard LoweLDFLAGS += -N misc/acpica 672bda830bSap25164 682bda830bSap25164# 69fe7a23c8SAndy Fiddaman# For now, disable these checks; maintainers should endeavor 70fe7a23c8SAndy Fiddaman# to investigate and remove these for maximum coverage. 71bb25c06cSjg# Please do not carry these forward to new Makefiles. 72bb25c06cSjg# 73d3b5f563SJohn LevonCERRWARN += $(CNOWARN_UNINIT) 747014882cSRichard Lowe 75bb25c06cSjg# 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 882bda830bSap25164install: $(INSTALL_DEPS) 892bda830bSap25164 902bda830bSap25164# 912bda830bSap25164# Include common targets. 922bda830bSap25164# 932bda830bSap25164include $(UTSBASE)/i86pc/Makefile.targ 94