xref: /titanic_50/usr/src/uts/intel/emul64/Makefile (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
1b1dd958fScth#
2b1dd958fScth# CDDL HEADER START
3b1dd958fScth#
4b1dd958fScth# The contents of this file are subject to the terms of the
5bb25c06cSjg# Common Development and Distribution License (the "License").
6bb25c06cSjg# You may not use this file except in compliance with the License.
7b1dd958fScth#
8b1dd958fScth# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9b1dd958fScth# or http://www.opensolaris.org/os/licensing.
10b1dd958fScth# See the License for the specific language governing permissions
11b1dd958fScth# and limitations under the License.
12b1dd958fScth#
13b1dd958fScth# When distributing Covered Code, include this CDDL HEADER in each
14b1dd958fScth# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15b1dd958fScth# If applicable, add the following below this CDDL HEADER, with the
16b1dd958fScth# fields enclosed by brackets "[]" replaced with your own identifying
17b1dd958fScth# information: Portions Copyright [yyyy] [name of copyright owner]
18b1dd958fScth#
19b1dd958fScth# CDDL HEADER END
20b1dd958fScth#
21bb25c06cSjg# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
22b1dd958fScth# Use is subject to license terms.
2389b43686SBayard Bell# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
24b1dd958fScth#
25b1dd958fScth#	This makefile drives the production of the emul64 kernel
26b1dd958fScth#	driver to testing hotplugging operations
27b1dd958fScth#
28b1dd958fScth
29b1dd958fScth#
30b1dd958fScth#	Path to the base of the uts directory tree (usually /usr/src/uts).
31b1dd958fScth#
32b1dd958fScthUTSBASE	= ../..
33b1dd958fScth
34b1dd958fScth#
35b1dd958fScth#	Define the module and object file sets.
36b1dd958fScth#
37b1dd958fScthMODULE		= emul64
38b1dd958fScthOBJECTS		= $(EMUL64_OBJS:%=$(OBJS_DIR)/%)
39b1dd958fScthLINTS		= $(EMUL64_OBJS:%.o=$(LINTS_DIR)/%.ln)
40b1dd958fScthROOTMODULE	= $(USR_DRV_DIR)/$(MODULE)
41b1dd958fScthCONF_SRCDIR	= $(UTSBASE)/common/io
42b1dd958fScth
43b1dd958fScth#
44b1dd958fScth#	Include common rules.
45b1dd958fScth#
46b1dd958fScthinclude $(UTSBASE)/intel/Makefile.intel
47b1dd958fScth
48b1dd958fScthCLOBBERFILES	+= $(MODULE)
49b1dd958fScthCFLAGS		+= $(CCVERBOSE)
50b1dd958fScth
51b1dd958fScth#
52b1dd958fScth#	Define targets
53b1dd958fScth#
54b1dd958fScthALL_TARGET	= $(BINARY) $(SRC_CONFFILE)
55b1dd958fScthLINT_TARGET	= $(MODULE).lint
56b1dd958fScthINSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
57b1dd958fScth
58b1dd958fScth#
59b1dd958fScth# lint pass one enforcement
60b1dd958fScth#
61b1dd958fScthCFLAGS += $(CCVERBOSE)
62b1dd958fScth
63b1dd958fScth#
64bb25c06cSjg# For now, disable these lint checks; maintainers should endeavor
65bb25c06cSjg# to investigate and remove these for maximum lint coverage.
66bb25c06cSjg# Please do not carry these forward to new Makefiles.
67bb25c06cSjg#
68bb25c06cSjgLINTTAGS	+= -erroff=E_BAD_PTR_CAST_ALIGN
69bb25c06cSjg
70*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-unused-label
71*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-uninitialized
72*7014882cSRichard Lowe
73bb25c06cSjg#
7489b43686SBayard Bell# Depends on scsi
7589b43686SBayard Bell#
7689b43686SBayard BellLDFLAGS += -dy -N misc/scsi
7789b43686SBayard Bell
7889b43686SBayard Bell#
79b1dd958fScth#	Default build targets.
80b1dd958fScth#
81b1dd958fScth.KEEP_STATE:
82b1dd958fScth
83b1dd958fScthdef:		$(DEF_DEPS)
84b1dd958fScth
85b1dd958fScthall:		$(ALL_DEPS)
86b1dd958fScth
87b1dd958fScthclean:		$(CLEAN_DEPS)
88b1dd958fScth
89b1dd958fScthclobber:	$(CLOBBER_DEPS)
90b1dd958fScth
91b1dd958fScthlint:		$(LINT_DEPS)
92b1dd958fScth
93b1dd958fScthmodlintlib:	$(MODLINTLIB_DEPS)
94b1dd958fScth
95b1dd958fScthclean.lint:	$(CLEAN_LINT_DEPS)
96b1dd958fScth
97b1dd958fScthinstall:	$(INSTALL_DEPS)
98b1dd958fScth
99b1dd958fScth#
100b1dd958fScth#	Include common targets.
101b1dd958fScth#
102b1dd958fScthinclude $(UTSBASE)/intel/Makefile.targ
103