xref: /illumos-gate/usr/src/cmd/boot/Makefile (revision 4585130b259133a26efae68275dbe56b08366deb)
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# Copyright 2016 Toomas Soome <tsoome@me.com>
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	installboot
35
36i386_SUBDIRS=		\
37	installgrub	\
38	mbr		\
39	symdef
40
41sparc_SUBDIRS=
42
43COMMON_LINTSUBDIRS=	\
44	bootadm		\
45	installboot
46
47i386_LINTSUBDIRS=	\
48	fiocompress	\
49	installgrub	\
50	symdef
51
52sparc_LINTSUBDIRS=
53
54COMMON_MSGSUBDIRS=	\
55	bootadm		\
56	fiocompress	\
57	installboot
58
59i386_MSGSUBDIRS=	\
60	installgrub
61
62sparc_MSGSUBDIRS=
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