xref: /titanic_41/usr/src/uts/i86pc/tzmon/Makefile (revision de5d74c22760a6d2cefd94d0e7f0fd87214fb71f)
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#
26*de5d74c2SJerry Jelinek# Copyright 2016 Joyent, Inc.
27*de5d74c2SJerry Jelinek#
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
65*de5d74c2SJerry JelinekCERRWARN	+= -_gcc=-Wno-unused-function
662bda830bSap25164
672bda830bSap25164LDFLAGS		+= -dy -N misc/acpica
682bda830bSap25164
692bda830bSap25164#
70bb25c06cSjg# For now, disable these lint checks; maintainers should endeavor
71bb25c06cSjg# to investigate and remove these for maximum lint coverage.
72bb25c06cSjg# Please do not carry these forward to new Makefiles.
73bb25c06cSjg#
74bb25c06cSjgLINTTAGS	+= -erroff=E_BAD_PTR_CAST_ALIGN
75bb25c06cSjg
767014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-uninitialized
777014882cSRichard Lowe
78bb25c06cSjg#
792bda830bSap25164#	Default build targets.
802bda830bSap25164#
812bda830bSap25164.KEEP_STATE:
822bda830bSap25164
832bda830bSap25164def:		$(DEF_DEPS)
842bda830bSap25164
852bda830bSap25164all:		$(ALL_DEPS)
862bda830bSap25164
872bda830bSap25164clean:		$(CLEAN_DEPS)
882bda830bSap25164
892bda830bSap25164clobber:	$(CLOBBER_DEPS)
902bda830bSap25164
912bda830bSap25164lint:		$(LINT_DEPS)
922bda830bSap25164
932bda830bSap25164modlintlib:	$(MODLINTLIB_DEPS)
942bda830bSap25164
952bda830bSap25164clean.lint:	$(CLEAN_LINT_DEPS)
962bda830bSap25164
972bda830bSap25164install:	$(INSTALL_DEPS)
982bda830bSap25164
992bda830bSap25164#
1002bda830bSap25164#	Include common targets.
1012bda830bSap25164#
1022bda830bSap25164include $(UTSBASE)/i86pc/Makefile.targ
103