xref: /illumos-gate/usr/src/cmd/boot/Makefile (revision 7af88ac71631ebf259c6c4c22a9f649ddff3e270)
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 (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
23#
24
25include $(SRC)/cmd/Makefile.cmd
26
27.PARALLEL:
28
29COMMON_SUBDIRS=		\
30	filelist	\
31	fiocompress	\
32	scripts		\
33	bootadm
34
35i386_SUBDIRS=		\
36	installgrub	\
37	mbr		\
38	symdef
39
40sparc_SUBDIRS=		\
41	installboot
42
43COMMON_LINTSUBDIRS=	\
44	bootadm
45
46i386_LINTSUBDIRS=	\
47	fiocompress	\
48	installgrub	\
49	symdef
50
51sparc_LINTSUBDIRS=	\
52	installboot
53
54COMMON_MSGSUBDIRS=	\
55	bootadm		\
56	fiocompress
57
58i386_MSGSUBDIRS=	\
59	installgrub
60
61sparc_MSGSUBDIRS=	\
62	installboot
63
64
65all:=		TARGET= all
66install:=	TARGET= install
67clean:=		TARGET= clean
68clobber:=	TARGET= clobber
69lint:=		TARGET= lint
70_msg:=		TARGET= _msg
71
72.KEEP_STATE:
73
74SUBDIRS = $(COMMON_SUBDIRS) $($(MACH)_SUBDIRS)
75LINTSUBDIRS = $(COMMON_LINTSUBDIRS) $($(MACH)_LINTSUBDIRS)
76MSGSUBDIRS = $(COMMON_MSGSUBDIRS) $($(MACH)_MSGSUBDIRS)
77
78all clean clobber: $(SUBDIRS)
79
80install: $(SUBDIRS)
81
82lint: $(LINTSUBDIRS)
83
84_msg: $(MSGSUBDIRS)
85
86FRC:
87
88$(SUBDIRS): FRC
89	@cd $@; pwd; $(MAKE) $(TARGET)
90