2bda830b1b393f809c54b105ec8ab418c3e505a1ap#
2bda830b1b393f809c54b105ec8ab418c3e505a1ap# CDDL HEADER START
2bda830b1b393f809c54b105ec8ab418c3e505a1ap#
2bda830b1b393f809c54b105ec8ab418c3e505a1ap# The contents of this file are subject to the terms of the
2bda830b1b393f809c54b105ec8ab418c3e505a1ap# Common Development and Distribution License (the "License").
2bda830b1b393f809c54b105ec8ab418c3e505a1ap# You may not use this file except in compliance with the License.
2bda830b1b393f809c54b105ec8ab418c3e505a1ap#
2bda830b1b393f809c54b105ec8ab418c3e505a1ap# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2bda830b1b393f809c54b105ec8ab418c3e505a1ap# or http://www.opensolaris.org/os/licensing.
2bda830b1b393f809c54b105ec8ab418c3e505a1ap# See the License for the specific language governing permissions
2bda830b1b393f809c54b105ec8ab418c3e505a1ap# and limitations under the License.
2bda830b1b393f809c54b105ec8ab418c3e505a1ap#
2bda830b1b393f809c54b105ec8ab418c3e505a1ap# When distributing Covered Code, include this CDDL HEADER in each
2bda830b1b393f809c54b105ec8ab418c3e505a1ap# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2bda830b1b393f809c54b105ec8ab418c3e505a1ap# If applicable, add the following below this CDDL HEADER, with the
2bda830b1b393f809c54b105ec8ab418c3e505a1ap# fields enclosed by brackets "[]" replaced with your own identifying
2bda830b1b393f809c54b105ec8ab418c3e505a1ap# information: Portions Copyright [yyyy] [name of copyright owner]
2bda830b1b393f809c54b105ec8ab418c3e505a1ap#
2bda830b1b393f809c54b105ec8ab418c3e505a1ap# CDDL HEADER END
2bda830b1b393f809c54b105ec8ab418c3e505a1ap#
2bda830b1b393f809c54b105ec8ab418c3e505a1ap
2bda830b1b393f809c54b105ec8ab418c3e505a1ap#
2bda830b1b393f809c54b105ec8ab418c3e505a1ap# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
2bda830b1b393f809c54b105ec8ab418c3e505a1ap# Use is subject to license terms.
2bda830b1b393f809c54b105ec8ab418c3e505a1ap#
7b1019a6d29ccb7999dc76cba3dde1c627e8e609Jerry Jelinek# Copyright 2016 Joyent, Inc.
7b1019a6d29ccb7999dc76cba3dde1c627e8e609Jerry Jelinek#
2bda830b1b393f809c54b105ec8ab418c3e505a1ap
2bda830b1b393f809c54b105ec8ab418c3e505a1ap# This makefile drives the production of the tzmon
2bda830b1b393f809c54b105ec8ab418c3e505a1ap# ThermalZone Monitor driver kernel module.
2bda830b1b393f809c54b105ec8ab418c3e505a1ap#
2bda830b1b393f809c54b105ec8ab418c3e505a1ap# i86pc architecture dependent
2bda830b1b393f809c54b105ec8ab418c3e505a1ap#
2bda830b1b393f809c54b105ec8ab418c3e505a1ap
2bda830b1b393f809c54b105ec8ab418c3e505a1ap#
2bda830b1b393f809c54b105ec8ab418c3e505a1ap# Path to the base of the uts directory tree (usually /usr/src/uts).
2bda830b1b393f809c54b105ec8ab418c3e505a1ap#
2bda830b1b393f809c54b105ec8ab418c3e505a1apUTSBASE = ../..
2bda830b1b393f809c54b105ec8ab418c3e505a1ap
2bda830b1b393f809c54b105ec8ab418c3e505a1ap#
2bda830b1b393f809c54b105ec8ab418c3e505a1ap# Define the module and object file sets.
2bda830b1b393f809c54b105ec8ab418c3e505a1ap#
2bda830b1b393f809c54b105ec8ab418c3e505a1apMODULE = tzmon
2bda830b1b393f809c54b105ec8ab418c3e505a1apOBJECTS = $(TZMON_OBJS:%=$(OBJS_DIR)/%)
2bda830b1b393f809c54b105ec8ab418c3e505a1apLINTS = $(TZMON_OBJS:%.o=$(LINTS_DIR)/%.ln)
2bda830b1b393f809c54b105ec8ab418c3e505a1apROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
2bda830b1b393f809c54b105ec8ab418c3e505a1apCONF_SRCDIR = $(UTSBASE)/i86pc/io/tzmon
2bda830b1b393f809c54b105ec8ab418c3e505a1ap
2bda830b1b393f809c54b105ec8ab418c3e505a1ap#
2bda830b1b393f809c54b105ec8ab418c3e505a1ap# Include common rules.
2bda830b1b393f809c54b105ec8ab418c3e505a1ap#
2bda830b1b393f809c54b105ec8ab418c3e505a1apinclude $(UTSBASE)/i86pc/Makefile.i86pc
2bda830b1b393f809c54b105ec8ab418c3e505a1ap
2bda830b1b393f809c54b105ec8ab418c3e505a1ap#
2bda830b1b393f809c54b105ec8ab418c3e505a1ap# Define targets
2bda830b1b393f809c54b105ec8ab418c3e505a1ap#
2bda830b1b393f809c54b105ec8ab418c3e505a1apALL_TARGET = $(BINARY) $(CONFMOD)
2bda830b1b393f809c54b105ec8ab418c3e505a1apLINT_TARGET = $(MODULE).lint
2bda830b1b393f809c54b105ec8ab418c3e505a1apINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
2bda830b1b393f809c54b105ec8ab418c3e505a1ap
2bda830b1b393f809c54b105ec8ab418c3e505a1apDEBUG_FLGS =
2bda830b1b393f809c54b105ec8ab418c3e505a1ap$(NOT_RELEASE_BUILD)DEBUG_DEFS += $(DEBUG_FLGS)
2bda830b1b393f809c54b105ec8ab418c3e505a1ap
2bda830b1b393f809c54b105ec8ab418c3e505a1apCPPFLAGS += -DSUNDDI
7b1019a6d29ccb7999dc76cba3dde1c627e8e609Jerry JelinekCERRWARN += -_gcc=-Wno-unused-function
2bda830b1b393f809c54b105ec8ab418c3e505a1ap
2bda830b1b393f809c54b105ec8ab418c3e505a1apLDFLAGS += -dy -N misc/acpica
2bda830b1b393f809c54b105ec8ab418c3e505a1ap
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jg#
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jg# For now, disable these lint checks; maintainers should endeavor
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jg# to investigate and remove these for maximum lint coverage.
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jg# Please do not carry these forward to new Makefiles.
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jg#
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jgLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jg
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-uninitialized
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe
2bda830b1b393f809c54b105ec8ab418c3e505a1ap#
2bda830b1b393f809c54b105ec8ab418c3e505a1ap# Default build targets.
2bda830b1b393f809c54b105ec8ab418c3e505a1ap#
2bda830b1b393f809c54b105ec8ab418c3e505a1ap.KEEP_STATE:
2bda830b1b393f809c54b105ec8ab418c3e505a1ap
2bda830b1b393f809c54b105ec8ab418c3e505a1apdef: $(DEF_DEPS)
2bda830b1b393f809c54b105ec8ab418c3e505a1ap
2bda830b1b393f809c54b105ec8ab418c3e505a1apall: $(ALL_DEPS)
2bda830b1b393f809c54b105ec8ab418c3e505a1ap
2bda830b1b393f809c54b105ec8ab418c3e505a1apclean: $(CLEAN_DEPS)
2bda830b1b393f809c54b105ec8ab418c3e505a1ap
2bda830b1b393f809c54b105ec8ab418c3e505a1apclobber: $(CLOBBER_DEPS)
2bda830b1b393f809c54b105ec8ab418c3e505a1ap
2bda830b1b393f809c54b105ec8ab418c3e505a1aplint: $(LINT_DEPS)
2bda830b1b393f809c54b105ec8ab418c3e505a1ap
2bda830b1b393f809c54b105ec8ab418c3e505a1apmodlintlib: $(MODLINTLIB_DEPS)
2bda830b1b393f809c54b105ec8ab418c3e505a1ap
2bda830b1b393f809c54b105ec8ab418c3e505a1apclean.lint: $(CLEAN_LINT_DEPS)
2bda830b1b393f809c54b105ec8ab418c3e505a1ap
2bda830b1b393f809c54b105ec8ab418c3e505a1apinstall: $(INSTALL_DEPS)
2bda830b1b393f809c54b105ec8ab418c3e505a1ap
2bda830b1b393f809c54b105ec8ab418c3e505a1ap#
2bda830b1b393f809c54b105ec8ab418c3e505a1ap# Include common targets.
2bda830b1b393f809c54b105ec8ab418c3e505a1ap#
2bda830b1b393f809c54b105ec8ab418c3e505a1apinclude $(UTSBASE)/i86pc/Makefile.targ