xref: /onnv-gate/usr/src/uts/i86xpv/privcmd/Makefile (revision 5084:7d838c5c0eed)
1*5084Sjohnlev#
2*5084Sjohnlev# CDDL HEADER START
3*5084Sjohnlev#
4*5084Sjohnlev# The contents of this file are subject to the terms of the
5*5084Sjohnlev# Common Development and Distribution License (the "License").
6*5084Sjohnlev# You may not use this file except in compliance with the License.
7*5084Sjohnlev#
8*5084Sjohnlev# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*5084Sjohnlev# or http://www.opensolaris.org/os/licensing.
10*5084Sjohnlev# See the License for the specific language governing permissions
11*5084Sjohnlev# and limitations under the License.
12*5084Sjohnlev#
13*5084Sjohnlev# When distributing Covered Code, include this CDDL HEADER in each
14*5084Sjohnlev# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*5084Sjohnlev# If applicable, add the following below this CDDL HEADER, with the
16*5084Sjohnlev# fields enclosed by brackets "[]" replaced with your own identifying
17*5084Sjohnlev# information: Portions Copyright [yyyy] [name of copyright owner]
18*5084Sjohnlev#
19*5084Sjohnlev# CDDL HEADER END
20*5084Sjohnlev#
21*5084Sjohnlev
22*5084Sjohnlev#
23*5084Sjohnlev# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
24*5084Sjohnlev# Use is subject to license terms.
25*5084Sjohnlev#
26*5084Sjohnlev# ident	"%Z%%M%	%I%	%E% SMI"
27*5084Sjohnlev#
28*5084Sjohnlev#	This makefile drives the production of the privcmd
29*5084Sjohnlev#	driver kernel module.
30*5084Sjohnlev#
31*5084Sjohnlev#	i86xpv architecture dependent
32*5084Sjohnlev#
33*5084Sjohnlev
34*5084Sjohnlev#
35*5084Sjohnlev#	Path to the base of the uts directory tree (usually /usr/src/uts).
36*5084Sjohnlev#
37*5084SjohnlevUTSBASE	= ../..
38*5084Sjohnlev
39*5084Sjohnlev#
40*5084Sjohnlev#	Define the module and object file sets.
41*5084Sjohnlev#
42*5084SjohnlevMODULE		= privcmd
43*5084SjohnlevOBJECTS		= $(PRIVCMD_OBJS:%=$(OBJS_DIR)/%)
44*5084SjohnlevLINTS		= $(PRIVCMD_OBJS:%.o=$(LINTS_DIR)/%.ln)
45*5084SjohnlevROOTMODULE	= $(ROOT_PSM_DRV_DIR)/$(MODULE)
46*5084Sjohnlev
47*5084Sjohnlev#
48*5084Sjohnlev#	Include common rules.
49*5084Sjohnlev#
50*5084Sjohnlevinclude $(UTSBASE)/i86xpv/Makefile.i86xpv
51*5084Sjohnlev
52*5084Sjohnlev#
53*5084Sjohnlev#	Define targets
54*5084Sjohnlev#
55*5084SjohnlevALL_TARGET	= $(BINARY)
56*5084SjohnlevLINT_TARGET	= $(MODULE).lint
57*5084SjohnlevINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
58*5084Sjohnlev
59*5084SjohnlevLINTTAGS	+= -erroff=E_PTRDIFF_OVERFLOW
60*5084Sjohnlev
61*5084Sjohnlev#
62*5084Sjohnlev#	Default build targets.
63*5084Sjohnlev#
64*5084Sjohnlev.KEEP_STATE:
65*5084Sjohnlev
66*5084Sjohnlevdef:		$(DEF_DEPS)
67*5084Sjohnlev
68*5084Sjohnlevall:		$(ALL_DEPS)
69*5084Sjohnlev
70*5084Sjohnlevclean:		$(CLEAN_DEPS)
71*5084Sjohnlev
72*5084Sjohnlevclobber:	$(CLOBBER_DEPS)
73*5084Sjohnlev
74*5084Sjohnlevlint:		$(LINT_DEPS)
75*5084Sjohnlev
76*5084Sjohnlevmodlintlib:	$(MODLINTLIB_DEPS)
77*5084Sjohnlev
78*5084Sjohnlevclean.lint:	$(CLEAN_LINT_DEPS)
79*5084Sjohnlev
80*5084Sjohnlevinstall:	$(INSTALL_DEPS)
81*5084Sjohnlev
82*5084Sjohnlev#
83*5084Sjohnlev#	Include common targets.
84*5084Sjohnlev#
85*5084Sjohnlevinclude $(UTSBASE)/i86xpv/Makefile.targ
86