xref: /illumos-gate/usr/src/uts/intel/emul64/Makefile (revision d3b5f56344d8bfcdd6cfb82446af0e5e55ad9ebe)
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)/%)
40b1dd958fScthLINTS		= $(EMUL64_OBJS:%.o=$(LINTS_DIR)/%.ln)
41b1dd958fScthROOTMODULE	= $(USR_DRV_DIR)/$(MODULE)
42b1dd958fScthCONF_SRCDIR	= $(UTSBASE)/common/io
43b1dd958fScth
44b1dd958fScth#
45b1dd958fScth#	Include common rules.
46b1dd958fScth#
47b1dd958fScthinclude $(UTSBASE)/intel/Makefile.intel
48b1dd958fScth
49b1dd958fScthCLOBBERFILES	+= $(MODULE)
50b1dd958fScthCFLAGS		+= $(CCVERBOSE)
51b1dd958fScth
52b1dd958fScth#
53b1dd958fScth#	Define targets
54b1dd958fScth#
55b1dd958fScthALL_TARGET	= $(BINARY) $(SRC_CONFFILE)
56b1dd958fScthLINT_TARGET	= $(MODULE).lint
57b1dd958fScthINSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
58b1dd958fScth
59b1dd958fScth#
60b1dd958fScth# lint pass one enforcement
61b1dd958fScth#
62b1dd958fScthCFLAGS += $(CCVERBOSE)
63b1dd958fScth
64b1dd958fScth#
65bb25c06cSjg# For now, disable these lint checks; maintainers should endeavor
66bb25c06cSjg# to investigate and remove these for maximum lint coverage.
67bb25c06cSjg# Please do not carry these forward to new Makefiles.
68bb25c06cSjg#
69bb25c06cSjgLINTTAGS	+= -erroff=E_BAD_PTR_CAST_ALIGN
70bb25c06cSjg
717014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-unused-label
72*d3b5f563SJohn LevonCERRWARN	+= $(CNOWARN_UNINIT)
737014882cSRichard Lowe
74b6b206fcSJohn Levon# needs work
75b6b206fcSJohn LevonSMOFF += indenting,shift_to_zero
76b6b206fcSJohn Levon
77bb25c06cSjg#
7889b43686SBayard Bell# Depends on scsi
7989b43686SBayard Bell#
8089b43686SBayard BellLDFLAGS += -dy -N misc/scsi
8189b43686SBayard Bell
8289b43686SBayard Bell#
83b1dd958fScth#	Default build targets.
84b1dd958fScth#
85b1dd958fScth.KEEP_STATE:
86b1dd958fScth
87b1dd958fScthdef:		$(DEF_DEPS)
88b1dd958fScth
89b1dd958fScthall:		$(ALL_DEPS)
90b1dd958fScth
91b1dd958fScthclean:		$(CLEAN_DEPS)
92b1dd958fScth
93b1dd958fScthclobber:	$(CLOBBER_DEPS)
94b1dd958fScth
95b1dd958fScthlint:		$(LINT_DEPS)
96b1dd958fScth
97b1dd958fScthmodlintlib:	$(MODLINTLIB_DEPS)
98b1dd958fScth
99b1dd958fScthclean.lint:	$(CLEAN_LINT_DEPS)
100b1dd958fScth
101b1dd958fScthinstall:	$(INSTALL_DEPS)
102b1dd958fScth
103b1dd958fScth#
104b1dd958fScth#	Include common targets.
105b1dd958fScth#
106b1dd958fScthinclude $(UTSBASE)/intel/Makefile.targ
107