xref: /illumos-gate/usr/src/cmd/boot/Makefile (revision 8226594fdd4479be135127f43632f1f995074654)
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	symdef
39
40sparc_SUBDIRS=
41
42COMMON_LINTSUBDIRS=	\
43	bootadm		\
44	installboot
45
46i386_LINTSUBDIRS=	\
47	fiocompress	\
48	installgrub	\
49	symdef
50
51sparc_LINTSUBDIRS=
52
53COMMON_MSGSUBDIRS=	\
54	bootadm		\
55	fiocompress	\
56	installboot
57
58i386_MSGSUBDIRS=	\
59	installgrub
60
61sparc_MSGSUBDIRS=
62
63
64all:=		TARGET= all
65install:=	TARGET= install
66clean:=		TARGET= clean
67clobber:=	TARGET= clobber
68lint:=		TARGET= lint
69_msg:=		TARGET= _msg
70
71.KEEP_STATE:
72
73SUBDIRS = $(COMMON_SUBDIRS) $($(MACH)_SUBDIRS)
74LINTSUBDIRS = $(COMMON_LINTSUBDIRS) $($(MACH)_LINTSUBDIRS)
75MSGSUBDIRS = $(COMMON_MSGSUBDIRS) $($(MACH)_MSGSUBDIRS)
76
77all clean clobber: $(SUBDIRS)
78
79install: $(SUBDIRS)
80
81lint: $(LINTSUBDIRS)
82
83_msg: $(MSGSUBDIRS)
84
85FRC:
86
87$(SUBDIRS): FRC
88	@cd $@; pwd; $(MAKE) $(TARGET)
89