xref: /illumos-gate/usr/src/uts/i86pc/Makefile (revision cdd3e9a818787b4def17c9f707f435885ce0ed31)
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 2008 Sun Microsystems, Inc.  All rights reserved.
23# Use is subject to license terms.
24#
25# Copyright 2019 OmniOS Community Edition (OmniOSce) Association.
26#
27#	This makefile drives the production of all implementation architecture
28#	dependent modules for the i86pc architecture.
29#
30
31UTSBASE = ..
32
33include Makefile.i86pc
34
35#
36#
37#
38def		:=	TARGET= def
39all		:=	TARGET= all
40install		:=	TARGET= install
41install_h	:=	TARGET= install_h
42clean		:=	TARGET= clean
43clobber		:=	TARGET= clobber
44check		:=	TARGET= check
45
46.KEEP_STATE:
47
48.PARALLEL:	$(PARALLEL_KMODS) $(XMODS)
49
50INITIAL_TARGETS = \
51	genassym \
52	unix \
53	cpu/scripts
54
55def all clean clobber: setup genassym unix .WAIT \
56	$(KMODS) $(XMODS) $(IMPLEMENTATIONS)
57
58install: install_platforms setup genassym unix .WAIT \
59	$(KMODS) $(XMODS) $(IMPLEMENTATIONS)
60
61genassym unix $(KMODS):	FRC
62	@cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
63
64setup: FRC
65	@cd cpu/scripts; pwd; $(MAKE) $(TARGET)
66
67$(IMPLEMENTATIONS):     FRC
68	@cd $@; pwd; THISIMPL=$@ $(MAKE) $(NO_STATE) $(TARGET)
69
70$(XMODS):	FRC
71	cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
72
73install_h check:	$(IMPLEMENTATIONS) FRC
74	@cd sys; pwd; $(MAKE) $(TARGET)
75
76#
77# Definitions for the /platform directory aliases.
78# Currently none for i86pc.
79#
80PLAT_LINKS	=
81
82#
83# Make the /platform directories.  This is hardwired here because
84# the first stage of the project (KBI) only implements the userland
85# changes, but the only reasonable place to record the aliases is
86# here in kernel land.
87#
88install_platforms:	$(ROOT_PSM_DIR) $(USR_PSM_DIR) \
89			$(ROOT_PLAT_LINKS) $(USR_PLAT_LINKS) \
90			$(OEM_USR_PLAT_LINKS)
91
92include ../Makefile.targ
93
94#
95# Cross-reference customization: build a cross-reference over all of the
96# i86pc-related directories.
97#
98XRDIRS	= ../i86pc ../intel ../common
99
100XRPRUNE	= sun4u sun4
101
102include ../../Makefile.xref
103