xref: /illumos-gate/usr/src/psm/stand/boot/Makefile (revision d9c3e05c2d8261e3f133b5e96a300b4fa6c0f1b7)
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 2010 Sun Microsystems, Inc.  All rights reserved.
23# Use is subject to license terms.
24#
25
26include		../../../Makefile.master
27
28sparcv9_ARCHITECTURES = sparcv9
29sparc_ARCHITECTURES = $(sparcv9_ARCHITECTURES)
30
31SUBDIRS = $($(MACH)_ARCHITECTURES)
32
33all		:=	TARGET= all
34install		:=	TARGET= install
35clean		:=	TARGET= clean
36clobber		:=	TARGET= clobber
37
38.KEEP_STATE:
39
40all install clean: $(SUBDIRS)
41
42clobber: $(SUBDIRS)
43	$(RM) make.out
44
45$(SUBDIRS): FRC
46	@cd $@; pwd; $(MAKE) $(TARGET)
47
48#
49# Cross-reference customization: include all boot-related source files.
50#
51UTSDIR =	../../../uts
52STANDLIBDIR =	../../../stand/lib
53STANDSYSDIRS =	../../../stand/sys
54PROMDIRS =	../../promif
55NAMESDIRS =	../lib/names
56XRDIRS +=	$(STANDLIBDIR) $(STANDSYSDIRS) $(PROMDIRS) $(NAMESDIRS)
57
58#
59# Components beginning with B! are in the open and closed trees; those
60# beginning with O! are just in the open tree.
61#
62XRINCCOMP = B!sun4u O!sfmmu O!sparc/v7 O!sparc/v9 B!sparc B!sun B!common
63XRINC_TMP = $(XRINCCOMP:B!%=$(UTSDIR)/%)
64XRINCDIRS = $(XRINC_TMP:O!%=$(UTSDIR)/%)
65
66cscope.out tags: FRC
67	$(XREF) -x $@
68
69FRC:
70