xref: /illumos-gate/usr/src/uts/i86xpv/Makefile (revision 79fb40ac)
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# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
23843e1988Sjohnlev# Use is subject to license terms.
24843e1988Sjohnlev#
25a0900badSGarrett D'Amore# Copyright 2013 Nexenta Systems, Inc.  All rights reserved.
26843e1988Sjohnlev#
27843e1988Sjohnlev#	This makefile drives the production of all implementation architecture
28843e1988Sjohnlev#	dependent modules for the i86xpv architecture.
29843e1988Sjohnlev#
30843e1988Sjohnlev
31843e1988SjohnlevUTSBASE = ..
32843e1988Sjohnlev
33843e1988Sjohnlevinclude Makefile.i86xpv
34843e1988Sjohnlev
35843e1988Sjohnlevdef		:=	TARGET= def
36843e1988Sjohnlevall		:=	TARGET= all
37843e1988Sjohnlevinstall		:=	TARGET= install
38843e1988Sjohnlevclean		:=	TARGET= clean
39843e1988Sjohnlevclobber		:=	TARGET= clobber
40843e1988Sjohnlevcheck		:=	TARGET= check
41843e1988Sjohnlev
42843e1988Sjohnlev.KEEP_STATE:
43843e1988Sjohnlev
44*79fb40acSRichard Lowe.PARALLEL:	$(PARALLEL_KMODS) $(XMODS)
45843e1988Sjohnlev
46843e1988SjohnlevINITIAL_TARGETS = \
47843e1988Sjohnlev	genassym \
48a0900badSGarrett D'Amore	unix \
49a0900badSGarrett D'Amore	cpu/scripts
50843e1988Sjohnlev
510aaef2f5SRichard Lowedef all clean clobber: setup genassym unix .WAIT \
52c0e7977aSJosef 'Jeff' Sipek	$(KMODS) $(XMODS)
53843e1988Sjohnlev
54843e1988Sjohnlevinstall: install_platforms setup genassym unix .WAIT \
55c0e7977aSJosef 'Jeff' Sipek	$(KMODS) $(XMODS)
56843e1988Sjohnlev
570aaef2f5SRichard Loweclean:
58b6805bf7SGordon Ross
59843e1988Sjohnlevgenassym unix $(KMODS):	FRC
60843e1988Sjohnlev	@cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
61843e1988Sjohnlev
62843e1988Sjohnlevsetup: FRC
63a0900badSGarrett D'Amore	@cd cpu/scripts; pwd; $(MAKE) $(TARGET)
64843e1988Sjohnlev
65843e1988Sjohnlev$(XMODS):	FRC
663aa6c130SRichard Lowe	cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
67843e1988Sjohnlev
68843e1988Sjohnlevinstall_h check:	FRC
69843e1988Sjohnlev	@cd sys; pwd; $(MAKE) $(TARGET)
70843e1988Sjohnlev
71843e1988Sjohnlev#
72843e1988Sjohnlev# Definitions for the /platform directory aliases.
73843e1988Sjohnlev# Currently none for i86xpv.
74843e1988Sjohnlev#
75843e1988SjohnlevPLAT_LINKS	=
76843e1988Sjohnlev
77843e1988Sjohnlev#
78843e1988Sjohnlev# Make the /platform directories.  This is hardwired here because
79843e1988Sjohnlev# the first stage of the project (KBI) only implements the userland
80843e1988Sjohnlev# changes, but the only reasonable place to record the aliases is
81843e1988Sjohnlev# here in kernel land.
82843e1988Sjohnlev#
83843e1988Sjohnlevinstall_platforms:	$(ROOT_PSM_DIR) $(USR_PSM_DIR) \
84843e1988Sjohnlev			$(ROOT_PLAT_LINKS) $(USR_PLAT_LINKS) \
85843e1988Sjohnlev			$(OEM_USR_PLAT_LINKS)
86843e1988Sjohnlev
87843e1988SjohnlevFRC:
88843e1988Sjohnlev
89843e1988Sjohnlevinclude ../Makefile.targ
90843e1988Sjohnlev
91843e1988Sjohnlev#
92843e1988Sjohnlev# Cross-reference customization: build a cross-reference over all of the
93843e1988Sjohnlev# i86pc-related directories.
94843e1988Sjohnlev#
95c0e7977aSJosef 'Jeff' SipekXRDIRS	= ../i86xpv ../i86pc ../intel ../common
96843e1988SjohnlevXRPRUNE	= sun4v sun4u sun4 sfmmu sparc
97843e1988Sjohnlev
980fb96ba1SBill Sommerfeldinclude ../../Makefile.xref
99