xref: /illumos-gate/usr/src/boot/Makefile (revision 22028508)
1199767f8SToomas Soome#
2199767f8SToomas Soome# This file and its contents are supplied under the terms of the
3199767f8SToomas Soome# Common Development and Distribution License ("CDDL"), version 1.0.
4199767f8SToomas Soome# You may only use this file in accordance with the terms of version
5199767f8SToomas Soome# 1.0 of the CDDL.
6199767f8SToomas Soome#
7199767f8SToomas Soome# A full copy of the text of the CDDL should have accompanied this
8199767f8SToomas Soome# source.  A copy of the CDDL is also available via the Internet at
9199767f8SToomas Soome# http://www.illumos.org/license/CDDL.
10199767f8SToomas Soome#
11199767f8SToomas Soome
12199767f8SToomas Soome#
13199767f8SToomas Soome# Copyright 2015 Toomas Soome <tsoome@me.com>
14199767f8SToomas Soome#
15199767f8SToomas Soome
16199767f8SToomas Soome.KEEP_STATE:
17199767f8SToomas Soome
18*22028508SToomas Soomeinclude $(SRC)/Makefile.master
19199767f8SToomas Soome
20*22028508SToomas SoomeINSTDIRS = i386 efi forth
21*22028508SToomas SoomeSUBDIRS = libsa libficl $(INSTDIRS)
22199767f8SToomas Soome
23199767f8SToomas Soomeall	:=	TARGET = all
24199767f8SToomas Soomeclean	:=	TARGET = clean
25199767f8SToomas Soomeclobber	:=	TARGET = clobber
26*22028508SToomas Soomeinstall	:=	TARGET = install
27*22028508SToomas Soome
28*22028508SToomas Soomeall clean clobber: $(SUBDIRS)
29*22028508SToomas Soome
30*22028508SToomas Soome#
31*22028508SToomas Soome# The directories in INSTDIRS depend implicitly on SUBDIRS being built already.
32*22028508SToomas Soome# We use .WAIT instead of explicit dependencies because we only want to make
33*22028508SToomas Soome# the "install" target in INSTDIRS, not in SUBDIRS.
34*22028508SToomas Soome#
35*22028508SToomas Soome# If adding SUBDIRS which are not dependencies of INSTDIRS, "install: all"
36*22028508SToomas Soome# rules should be added to the Makefiles in those directories.
37*22028508SToomas Soome#
38*22028508SToomas Soomeinstall: all .WAIT $(INSTDIRS)
39199767f8SToomas Soome
40*22028508SToomas Soome.PARALLEL: libsa libficl
41199767f8SToomas Soome
42199767f8SToomas Soome$(SUBDIRS): FRC
43f96a0cefSRichard Lowe	@cd $@; pwd; $(MAKE) $(TARGET)
44199767f8SToomas Soome
45199767f8SToomas SoomeFRC:
46