xref: /illumos-gate/usr/src/uts/i86xpv/xnb/Makefile (revision 82d0151a507442720a3aea34c8925041894ab173)
1843e1988Sjohnlev#
2843e1988Sjohnlev# CDDL HEADER START
3843e1988Sjohnlev#
4843e1988Sjohnlev# The contents of this file are subject to the terms of the
5843e1988Sjohnlev# Common Development and Distribution License (the "License").
6843e1988Sjohnlev# You may not use this file except in compliance with the License.
7843e1988Sjohnlev#
8843e1988Sjohnlev# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9843e1988Sjohnlev# or http://www.opensolaris.org/os/licensing.
10843e1988Sjohnlev# See the License for the specific language governing permissions
11843e1988Sjohnlev# and limitations under the License.
12843e1988Sjohnlev#
13843e1988Sjohnlev# When distributing Covered Code, include this CDDL HEADER in each
14843e1988Sjohnlev# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15843e1988Sjohnlev# If applicable, add the following below this CDDL HEADER, with the
16843e1988Sjohnlev# fields enclosed by brackets "[]" replaced with your own identifying
17843e1988Sjohnlev# information: Portions Copyright [yyyy] [name of copyright owner]
18843e1988Sjohnlev#
19843e1988Sjohnlev# CDDL HEADER END
20843e1988Sjohnlev#
21843e1988Sjohnlev
22843e1988Sjohnlev#
23fd0939efSDavid Edmondson# Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
24843e1988Sjohnlev# Use is subject to license terms.
25843e1988Sjohnlev#
26b6b206fcSJohn Levon# Copyright (c) 2018, Joyent, Inc.
27843e1988Sjohnlev
28843e1988Sjohnlev#
29843e1988Sjohnlev#	Path to the base of the uts directory tree (usually /usr/src/uts).
30843e1988Sjohnlev#
31843e1988SjohnlevUTSBASE	= ../..
32843e1988Sjohnlev
33843e1988Sjohnlev#
34843e1988Sjohnlev#	Define the module and object file sets.
35843e1988Sjohnlev#
36843e1988SjohnlevMODULE		= xnb
37843e1988SjohnlevOBJECTS		= $(XNB_OBJS:%=$(OBJS_DIR)/%)
38843e1988SjohnlevROOTMODULE	= $(ROOT_PSM_MISC_DIR)/$(MODULE)
39843e1988Sjohnlev
40843e1988Sjohnlev#
41843e1988Sjohnlev#	Include common rules.
42843e1988Sjohnlev#
43843e1988Sjohnlevinclude $(UTSBASE)/i86xpv/Makefile.i86xpv
44843e1988Sjohnlev
45843e1988Sjohnlev#
46843e1988Sjohnlev#	Define targets
47843e1988Sjohnlev#
48843e1988SjohnlevALL_TARGET	= $(BINARY)
49843e1988SjohnlevINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
50843e1988Sjohnlev
51843e1988Sjohnlev#
5260471b7bSTim Foster#	Overrides
5360471b7bSTim Foster#
5460471b7bSTim FosterDEF_BUILDS	= $(DEF_BUILDS64)
5560471b7bSTim FosterALL_BUILDS	= $(ALL_BUILDS64)
5660471b7bSTim Foster
5760471b7bSTim Foster#
58fd0939efSDavid Edmondson# Module depends on mac.
59843e1988Sjohnlev#
60*82d0151aSRichard LoweLDFLAGS		+= -N misc/mac
61843e1988Sjohnlev
62843e1988Sjohnlev#
63843e1988Sjohnlev# use Solaris specific code in xen public header files
64843e1988Sjohnlev#
65843e1988SjohnlevCFLAGS		+= -D_SOLARIS
66843e1988Sjohnlev
67843e1988Sjohnlev
68d3b5f563SJohn LevonCERRWARN	+= $(CNOWARN_UNINIT)
697014882cSRichard Lowe
70b6b206fcSJohn Levon# needs work
71b6b206fcSJohn LevonSMOFF += signed
72b6b206fcSJohn Levon
73843e1988Sjohnlev#
74843e1988Sjohnlev#	Default build targets.
75843e1988Sjohnlev#
76843e1988Sjohnlev.KEEP_STATE:
77843e1988Sjohnlev
78843e1988Sjohnlevdef:		$(DEF_DEPS)
79843e1988Sjohnlev
80843e1988Sjohnlevall:		$(ALL_DEPS)
81843e1988Sjohnlev
8295cb2e31SToomas Soomeclean:		$(CLEAN_DEPS)
83843e1988Sjohnlev
8495cb2e31SToomas Soomeclobber:	$(CLOBBER_DEPS)
85843e1988Sjohnlev
86843e1988Sjohnlevinstall:	$(INSTALL_DEPS)
87843e1988Sjohnlev
88843e1988Sjohnlev#
89843e1988Sjohnlev#	Include common targets.
90843e1988Sjohnlev#
91843e1988Sjohnlevinclude $(UTSBASE)/i86xpv/Makefile.targ
92