xref: /titanic_41/usr/src/cmd/boot/Makefile (revision fa9e4066f08beec538e775443c5be79dd423fcab)
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, Version 1.0 only
6# (the "License").  You may not use this file except in compliance
7# with the License.
8#
9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10# or http://www.opensolaris.org/os/licensing.
11# See the License for the specific language governing permissions
12# and limitations under the License.
13#
14# When distributing Covered Code, include this CDDL HEADER in each
15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16# If applicable, add the following below this CDDL HEADER, with the
17# fields enclosed by brackets "[]" replaced with your own identifying
18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
22#
23# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26#ident	"%Z%%M%	%I%	%E% SMI"
27#
28
29include ../Makefile.cmd
30
31.PARALLEL:
32
33COMMON_SUBDIRS=		\
34	bootadm
35
36i386_SUBDIRS=		\
37	installgrub	\
38	scripts		\
39	mbr
40
41sparc_SUBDIRS=
42
43COMMON_LINTSUBDIRS=	\
44	bootadm
45
46i386_LINTSUBDIRS=	\
47	installgrub
48
49sparc_LINTSUBDIRS=
50
51COMMON_MSGSUBDIRS=	\
52	bootadm
53
54i386_MSGSUBDIRS=	\
55	installgrub
56
57sparc_MSGSUBDIRS=
58
59all:=		TARGET= all
60install:=	TARGET= install
61clean:=		TARGET= clean
62clobber:=	TARGET= clobber
63lint:=		TARGET= lint
64_msg:=		TARGET= _msg
65
66.KEEP_STATE:
67
68SUBDIRS = $(COMMON_SUBDIRS) $($(MACH)_SUBDIRS)
69LINTSUBDIRS = $(COMMON_LINTSUBDIRS) $($(MACH)_LINTSUBDIRS)
70MSGSUBDIRS = $(COMMON_MSGSUBDIRS) $($(MACH)_MSGSUBDIRS)
71
72all clean clobber: $(SUBDIRS)
73
74install: $(SUBDIRS)
75
76lint: $(LINTSUBDIRS)
77
78_msg: $(MSGSUBDIRS)
79
80FRC:
81
82$(SUBDIRS): FRC
83	@cd $@; pwd; $(MAKE) $(TARGET)
84