xref: /illumos-gate/usr/src/uts/intel/emul64/Makefile (revision b1dd958f54f8bfa984d306bb8ca8264855761d7b)
1*b1dd958fScth#
2*b1dd958fScth# CDDL HEADER START
3*b1dd958fScth#
4*b1dd958fScth# The contents of this file are subject to the terms of the
5*b1dd958fScth# Common Development and Distribution License, Version 1.0 only
6*b1dd958fScth# (the "License").  You may not use this file except in compliance
7*b1dd958fScth# with the License.
8*b1dd958fScth#
9*b1dd958fScth# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10*b1dd958fScth# or http://www.opensolaris.org/os/licensing.
11*b1dd958fScth# See the License for the specific language governing permissions
12*b1dd958fScth# and limitations under the License.
13*b1dd958fScth#
14*b1dd958fScth# When distributing Covered Code, include this CDDL HEADER in each
15*b1dd958fScth# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16*b1dd958fScth# If applicable, add the following below this CDDL HEADER, with the
17*b1dd958fScth# fields enclosed by brackets "[]" replaced with your own identifying
18*b1dd958fScth# information: Portions Copyright [yyyy] [name of copyright owner]
19*b1dd958fScth#
20*b1dd958fScth# CDDL HEADER END
21*b1dd958fScth#
22*b1dd958fScth# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
23*b1dd958fScth# Use is subject to license terms.
24*b1dd958fScth#
25*b1dd958fScth#ident	"%Z%%M%	%I%	%E% SMI"
26*b1dd958fScth#
27*b1dd958fScth#	This makefile drives the production of the emul64 kernel
28*b1dd958fScth#	driver to testing hotplugging operations
29*b1dd958fScth#
30*b1dd958fScth
31*b1dd958fScth#
32*b1dd958fScth#	Path to the base of the uts directory tree (usually /usr/src/uts).
33*b1dd958fScth#
34*b1dd958fScthUTSBASE	= ../..
35*b1dd958fScth
36*b1dd958fScth#
37*b1dd958fScth#	Define the module and object file sets.
38*b1dd958fScth#
39*b1dd958fScthMODULE		= emul64
40*b1dd958fScthOBJECTS		= $(EMUL64_OBJS:%=$(OBJS_DIR)/%)
41*b1dd958fScthLINTS		= $(EMUL64_OBJS:%.o=$(LINTS_DIR)/%.ln)
42*b1dd958fScthROOTMODULE	= $(USR_DRV_DIR)/$(MODULE)
43*b1dd958fScthCONF_SRCDIR	= $(UTSBASE)/common/io
44*b1dd958fScth
45*b1dd958fScth#
46*b1dd958fScth#	Include common rules.
47*b1dd958fScth#
48*b1dd958fScthinclude $(UTSBASE)/intel/Makefile.intel
49*b1dd958fScth
50*b1dd958fScthCLOBBERFILES	+= $(MODULE)
51*b1dd958fScthCFLAGS		+= $(CCVERBOSE)
52*b1dd958fScth
53*b1dd958fScth#
54*b1dd958fScth#	Define targets
55*b1dd958fScth#
56*b1dd958fScthALL_TARGET	= $(BINARY) $(SRC_CONFFILE)
57*b1dd958fScthLINT_TARGET	= $(MODULE).lint
58*b1dd958fScthINSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
59*b1dd958fScth
60*b1dd958fScth#
61*b1dd958fScth# lint pass one enforcement
62*b1dd958fScth#
63*b1dd958fScthCFLAGS += $(CCVERBOSE)
64*b1dd958fScth
65*b1dd958fScth#
66*b1dd958fScth#	Default build targets.
67*b1dd958fScth#
68*b1dd958fScth.KEEP_STATE:
69*b1dd958fScth
70*b1dd958fScthdef:		$(DEF_DEPS)
71*b1dd958fScth
72*b1dd958fScthall:		$(ALL_DEPS)
73*b1dd958fScth
74*b1dd958fScthclean:		$(CLEAN_DEPS)
75*b1dd958fScth
76*b1dd958fScthclobber:	$(CLOBBER_DEPS)
77*b1dd958fScth
78*b1dd958fScthlint:		$(LINT_DEPS)
79*b1dd958fScth
80*b1dd958fScthmodlintlib:	$(MODLINTLIB_DEPS)
81*b1dd958fScth
82*b1dd958fScthclean.lint:	$(CLEAN_LINT_DEPS)
83*b1dd958fScth
84*b1dd958fScthinstall:	$(INSTALL_DEPS)
85*b1dd958fScth
86*b1dd958fScth#
87*b1dd958fScth#	Include common targets.
88*b1dd958fScth#
89*b1dd958fScthinclude $(UTSBASE)/intel/Makefile.targ
90