xref: /titanic_41/usr/src/uts/i86pc/tzmon/Makefile (revision 2bda830b1b393f809c54b105ec8ab418c3e505a1)
1*2bda830bSap25164#
2*2bda830bSap25164# CDDL HEADER START
3*2bda830bSap25164#
4*2bda830bSap25164# The contents of this file are subject to the terms of the
5*2bda830bSap25164# Common Development and Distribution License (the "License").
6*2bda830bSap25164# You may not use this file except in compliance with the License.
7*2bda830bSap25164#
8*2bda830bSap25164# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*2bda830bSap25164# or http://www.opensolaris.org/os/licensing.
10*2bda830bSap25164# See the License for the specific language governing permissions
11*2bda830bSap25164# and limitations under the License.
12*2bda830bSap25164#
13*2bda830bSap25164# When distributing Covered Code, include this CDDL HEADER in each
14*2bda830bSap25164# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*2bda830bSap25164# If applicable, add the following below this CDDL HEADER, with the
16*2bda830bSap25164# fields enclosed by brackets "[]" replaced with your own identifying
17*2bda830bSap25164# information: Portions Copyright [yyyy] [name of copyright owner]
18*2bda830bSap25164#
19*2bda830bSap25164# CDDL HEADER END
20*2bda830bSap25164#
21*2bda830bSap25164
22*2bda830bSap25164#
23*2bda830bSap25164# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
24*2bda830bSap25164# Use is subject to license terms.
25*2bda830bSap25164#
26*2bda830bSap25164# ident	"%Z%%M%	%I%	%E% SMI"
27*2bda830bSap25164#
28*2bda830bSap25164
29*2bda830bSap25164#	This makefile drives the production of the tzmon
30*2bda830bSap25164#	ThermalZone Monitor driver kernel module.
31*2bda830bSap25164#
32*2bda830bSap25164#	i86pc architecture dependent
33*2bda830bSap25164#
34*2bda830bSap25164
35*2bda830bSap25164#
36*2bda830bSap25164#	Path to the base of the uts directory tree (usually /usr/src/uts).
37*2bda830bSap25164#
38*2bda830bSap25164UTSBASE	= ../..
39*2bda830bSap25164
40*2bda830bSap25164#
41*2bda830bSap25164#	Define the module and object file sets.
42*2bda830bSap25164#
43*2bda830bSap25164MODULE		= tzmon
44*2bda830bSap25164OBJECTS		= $(TZMON_OBJS:%=$(OBJS_DIR)/%)
45*2bda830bSap25164LINTS		= $(TZMON_OBJS:%.o=$(LINTS_DIR)/%.ln)
46*2bda830bSap25164ROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
47*2bda830bSap25164CONF_SRCDIR	= $(UTSBASE)/i86pc/io/tzmon
48*2bda830bSap25164
49*2bda830bSap25164#
50*2bda830bSap25164#	Include common rules.
51*2bda830bSap25164#
52*2bda830bSap25164include $(UTSBASE)/i86pc/Makefile.i86pc
53*2bda830bSap25164
54*2bda830bSap25164#
55*2bda830bSap25164#	Define targets
56*2bda830bSap25164#
57*2bda830bSap25164ALL_TARGET	= $(BINARY) $(CONFMOD)
58*2bda830bSap25164LINT_TARGET	= $(MODULE).lint
59*2bda830bSap25164INSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
60*2bda830bSap25164
61*2bda830bSap25164DEBUG_FLGS      =
62*2bda830bSap25164$(NOT_RELEASE_BUILD)DEBUG_DEFS	+= $(DEBUG_FLGS)
63*2bda830bSap25164
64*2bda830bSap25164CPPFLAGS	+= -DSUNDDI
65*2bda830bSap25164
66*2bda830bSap25164LDFLAGS		+= -dy -N misc/acpica
67*2bda830bSap25164
68*2bda830bSap25164#
69*2bda830bSap25164#	Default build targets.
70*2bda830bSap25164#
71*2bda830bSap25164.KEEP_STATE:
72*2bda830bSap25164
73*2bda830bSap25164def:		$(DEF_DEPS)
74*2bda830bSap25164
75*2bda830bSap25164all:		$(ALL_DEPS)
76*2bda830bSap25164
77*2bda830bSap25164clean:		$(CLEAN_DEPS)
78*2bda830bSap25164
79*2bda830bSap25164clobber:	$(CLOBBER_DEPS)
80*2bda830bSap25164
81*2bda830bSap25164lint:		$(LINT_DEPS)
82*2bda830bSap25164
83*2bda830bSap25164modlintlib:	$(MODLINTLIB_DEPS)
84*2bda830bSap25164
85*2bda830bSap25164clean.lint:	$(CLEAN_LINT_DEPS)
86*2bda830bSap25164
87*2bda830bSap25164install:	$(INSTALL_DEPS)
88*2bda830bSap25164
89*2bda830bSap25164#
90*2bda830bSap25164#	Include common targets.
91*2bda830bSap25164#
92*2bda830bSap25164include $(UTSBASE)/i86pc/Makefile.targ
93