xref: /illumos-gate/usr/src/uts/i86pc/tzmon/Makefile (revision 82d0151a)
12bda830bSap#
22bda830bSap# CDDL HEADER START
32bda830bSap#
42bda830bSap# The contents of this file are subject to the terms of the
52bda830bSap# Common Development and Distribution License (the "License").
62bda830bSap# You may not use this file except in compliance with the License.
72bda830bSap#
82bda830bSap# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
92bda830bSap# or http://www.opensolaris.org/os/licensing.
102bda830bSap# See the License for the specific language governing permissions
112bda830bSap# and limitations under the License.
122bda830bSap#
132bda830bSap# When distributing Covered Code, include this CDDL HEADER in each
142bda830bSap# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
152bda830bSap# If applicable, add the following below this CDDL HEADER, with the
162bda830bSap# fields enclosed by brackets "[]" replaced with your own identifying
172bda830bSap# information: Portions Copyright [yyyy] [name of copyright owner]
182bda830bSap#
192bda830bSap# CDDL HEADER END
202bda830bSap#
212bda830bSap
222bda830bSap#
232bda830bSap# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
242bda830bSap# Use is subject to license terms.
252bda830bSap#
267b1019a6SJerry Jelinek# Copyright 2016 Joyent, Inc.
27fe7a23c8SAndy Fiddaman# Copyright 2019 OmniOS Community Edition (OmniOSce) Association.
287b1019a6SJerry Jelinek#
292bda830bSap
302bda830bSap#	This makefile drives the production of the tzmon
312bda830bSap#	ThermalZone Monitor driver kernel module.
322bda830bSap#
332bda830bSap#	i86pc architecture dependent
342bda830bSap#
352bda830bSap
362bda830bSap#
372bda830bSap#	Path to the base of the uts directory tree (usually /usr/src/uts).
382bda830bSap#
392bda830bSapUTSBASE	= ../..
402bda830bSap
412bda830bSap#
422bda830bSap#	Define the module and object file sets.
432bda830bSap#
442bda830bSapMODULE		= tzmon
452bda830bSapOBJECTS		= $(TZMON_OBJS:%=$(OBJS_DIR)/%)
462bda830bSapROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
472bda830bSapCONF_SRCDIR	= $(UTSBASE)/i86pc/io/tzmon
482bda830bSap
492bda830bSap#
502bda830bSap#	Include common rules.
512bda830bSap#
522bda830bSapinclude $(UTSBASE)/i86pc/Makefile.i86pc
532bda830bSap
542bda830bSap#
552bda830bSap#	Define targets
562bda830bSap#
572bda830bSapALL_TARGET	= $(BINARY) $(CONFMOD)
582bda830bSapINSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
592bda830bSap
602bda830bSapDEBUG_FLGS      =
612bda830bSap$(NOT_RELEASE_BUILD)DEBUG_DEFS	+= $(DEBUG_FLGS)
622bda830bSap
632bda830bSapCPPFLAGS	+= -DSUNDDI
647b1019a6SJerry JelinekCERRWARN	+= -_gcc=-Wno-unused-function
652bda830bSap
66*82d0151aSRichard LoweLDFLAGS		+= -N misc/acpica
672bda830bSap
68bb25c06cSjg#
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
752bda830bSap#
762bda830bSap#	Default build targets.
772bda830bSap#
782bda830bSap.KEEP_STATE:
792bda830bSap
802bda830bSapdef:		$(DEF_DEPS)
812bda830bSap
822bda830bSapall:		$(ALL_DEPS)
832bda830bSap
842bda830bSapclean:		$(CLEAN_DEPS)
852bda830bSap
862bda830bSapclobber:	$(CLOBBER_DEPS)
872bda830bSap
882bda830bSapinstall:	$(INSTALL_DEPS)
892bda830bSap
902bda830bSap#
912bda830bSap#	Include common targets.
922bda830bSap#
932bda830bSapinclude $(UTSBASE)/i86pc/Makefile.targ
94