xref: /illumos-gate/usr/src/uts/intel/emul64/Makefile (revision 82d0151a507442720a3aea34c8925041894ab173)
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.
24b6b206fcSJohn Levon# Copyright (c) 2018, Joyent, Inc.
25b1dd958fScth#
26b1dd958fScth#	This makefile drives the production of the emul64 kernel
27b1dd958fScth#	driver to testing hotplugging operations
28b1dd958fScth#
29b1dd958fScth
30b1dd958fScth#
31b1dd958fScth#	Path to the base of the uts directory tree (usually /usr/src/uts).
32b1dd958fScth#
33b1dd958fScthUTSBASE	= ../..
34b1dd958fScth
35b1dd958fScth#
36b1dd958fScth#	Define the module and object file sets.
37b1dd958fScth#
38b1dd958fScthMODULE		= emul64
39b1dd958fScthOBJECTS		= $(EMUL64_OBJS:%=$(OBJS_DIR)/%)
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)
55b1dd958fScthINSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
56b1dd958fScth
57b1dd958fScth#
580aaef2f5SRichard Lowe# For now, disable these warnings; maintainers should endeavor
590aaef2f5SRichard Lowe# to investigate and remove these for maximum coverage.
60bb25c06cSjg# Please do not carry these forward to new Makefiles.
61bb25c06cSjg#
620aaef2f5SRichard LoweCFLAGS		+= $(CCVERBOSE)
637014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-unused-label
64d3b5f563SJohn LevonCERRWARN	+= $(CNOWARN_UNINIT)
657014882cSRichard Lowe
66b6b206fcSJohn Levon# needs work
67b6b206fcSJohn LevonSMOFF += indenting,shift_to_zero
68b6b206fcSJohn Levon
69bb25c06cSjg#
7089b43686SBayard Bell# Depends on scsi
7189b43686SBayard Bell#
72*82d0151aSRichard LoweLDFLAGS += -N misc/scsi
7389b43686SBayard Bell
7489b43686SBayard Bell#
75b1dd958fScth#	Default build targets.
76b1dd958fScth#
77b1dd958fScth.KEEP_STATE:
78b1dd958fScth
79b1dd958fScthdef:		$(DEF_DEPS)
80b1dd958fScth
81b1dd958fScthall:		$(ALL_DEPS)
82b1dd958fScth
83b1dd958fScthclean:		$(CLEAN_DEPS)
84b1dd958fScth
85b1dd958fScthclobber:	$(CLOBBER_DEPS)
86b1dd958fScth
87b1dd958fScthinstall:	$(INSTALL_DEPS)
88b1dd958fScth
89b1dd958fScth#
90b1dd958fScth#	Include common targets.
91b1dd958fScth#
92b1dd958fScthinclude $(UTSBASE)/intel/Makefile.targ
93