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