xref: /titanic_50/usr/src/psm/stand/bootblks/Makefile.1275 (revision 269473047d747f7815af570197e4ef7322d3632c)
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 2008 Sun Microsystems, Inc.  All rights reserved.
23# Use is subject to license terms.
24#
25# psm/stand/bootblks/Makefile.1275
26#
27
28#
29# Sources and objects used to build the Forth-based bootblock
30# for all Sun OpenFirmware machines (IEEE Std. 1275)
31#
32# Common pieces
33#
34BOOT_SRC	= util.fth boot.fth
35RD_SRC		= rd.fth
36
37RD_FCODE	= rd.fcode
38
39MKBB		= mkbb
40MKBB_SH		= $(BASEDIR)/common/mkbb.sh
41MKBB.fcode	= ./$(MKBB) $(MKBBFLAGS)
42
43%.fcode:	$(BASEDIR)/common/%.fth
44	$(TOKENIZE) $<
45
46#
47# Targets
48#
49all:		$(PROG)
50
51$(MKBB):	$(MKBB_SH)
52	$(RM) $@
53	cat $(MKBB_SH) > $@
54	chmod +x $@
55
56$(FS_BB):	$(MKBB) $(FS_FCODE) $(RD_FCODE)
57	$(MKBB.fcode) $(FS_FCODE) $(RD_FCODE) $(FS_BB)
58
59$(PROG):	$(FS_BB)
60	@-$(RM) $@
61	cp -p $(FS_BB) $@
62
63clean:
64	-$(RM) $(FS_FCODE) $(RD_FCODE) $(EX_FCODE) $(MKBB)
65
66clobber:	clean
67	-$(RM) $(PROG) $(FS_BB)
68
69lint:	FRC
70
71FRC:
72
73