xref: /titanic_51/usr/src/cmd/boot/Makefile (revision e1dd0a2f3a26050d1f183c1cafae42c4e3a0b57e)
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#ident	"%Z%%M%	%I%	%E% SMI"
26#
27
28include $(SRC)/cmd/Makefile.cmd
29
30.PARALLEL:
31
32COMMON_SUBDIRS=		\
33	filelist	\
34	scripts		\
35	bootadm
36
37i386_SUBDIRS=		\
38	installgrub	\
39	mbr		\
40	symdef
41
42sparc_SUBDIRS=		\
43	fiocompress
44
45COMMON_LINTSUBDIRS=	\
46	bootadm
47
48i386_LINTSUBDIRS=	\
49	installgrub	\
50	symdef
51
52sparc_LINTSUBDIRS=	\
53	fiocompress
54
55COMMON_MSGSUBDIRS=	\
56	bootadm
57
58i386_MSGSUBDIRS=	\
59	installgrub
60
61sparc_MSGSUBDIRS=	\
62	fiocompress
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