xref: /illumos-gate/usr/src/uts/i86xpv/Makefile (revision 9164a50bf932130cbb5097a16f6986873ce0e6e5)
1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License (the "License").
6# You may not use this file except in compliance with the License.
7#
8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9# or http://www.opensolaris.org/os/licensing.
10# See the License for the specific language governing permissions
11# and limitations under the License.
12#
13# When distributing Covered Code, include this CDDL HEADER in each
14# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15# If applicable, add the following below this CDDL HEADER, with the
16# fields enclosed by brackets "[]" replaced with your own identifying
17# information: Portions Copyright [yyyy] [name of copyright owner]
18#
19# CDDL HEADER END
20#
21#
22# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
23# Use is subject to license terms.
24#
25# Copyright 2013 Nexenta Systems, Inc.  All rights reserved.
26#
27#	This makefile drives the production of all implementation architecture
28#	dependent modules for the i86xpv architecture.
29#
30
31UTSBASE = ..
32
33include Makefile.i86xpv
34
35def		:=	TARGET= def
36all		:=	TARGET= all
37install		:=	TARGET= install
38clean		:=	TARGET= clean
39clobber		:=	TARGET= clobber
40check		:=	TARGET= check
41
42.KEEP_STATE:
43
44.PARALLEL:	$(PARALLEL_KMODS) $(XMODS)
45
46INITIAL_TARGETS = \
47	genassym \
48	unix \
49	cpu/scripts
50
51def all clean clobber: setup genassym unix .WAIT \
52	$(KMODS) $(XMODS)
53
54install: install_platforms setup genassym unix .WAIT \
55	$(KMODS) $(XMODS)
56
57clean:
58
59genassym unix $(KMODS):	FRC
60	@cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
61
62setup: FRC
63	@cd cpu/scripts; pwd; $(MAKE) $(TARGET)
64
65$(XMODS):	FRC
66	cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
67
68install_h check:	FRC
69	@cd sys; pwd; $(MAKE) $(TARGET)
70
71#
72# Definitions for the /platform directory aliases.
73# Currently none for i86xpv.
74#
75PLAT_LINKS	=
76
77#
78# Make the /platform directories.  This is hardwired here because
79# the first stage of the project (KBI) only implements the userland
80# changes, but the only reasonable place to record the aliases is
81# here in kernel land.
82#
83install_platforms:	$(ROOT_PSM_DIR) $(USR_PSM_DIR) \
84			$(ROOT_PLAT_LINKS) $(USR_PLAT_LINKS) \
85			$(OEM_USR_PLAT_LINKS)
86
87FRC:
88
89include ../Makefile.targ
90
91#
92# Cross-reference customization: build a cross-reference over all of the
93# i86pc-related directories.
94#
95XRDIRS	= ../i86xpv ../i86pc ../intel ../common
96XRPRUNE	= sun4v sun4u sun4 sfmmu sparc
97
98include ../../Makefile.xref
99