xref: /titanic_41/usr/src/psm/stand/bootblks/Makefile.1275 (revision 40db2e2b777b79f3dd0d6d9629593a07f86b9c0a)
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 2008 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
43MKBB.fcode	= $(MKBB) $(MKBBFLAGS)
44
45%.fcode:	$(BASEDIR)/common/%.fth
46	$(TOKENIZE) $<
47
48#
49# Targets
50#
51all:		$(PROG)
52
53$(MKBB):	$(MKBB_SH)
54	$(RM) $@
55	cat $(MKBB_SH) > $@
56	chmod +x $@
57
58$(FS_BB):	$(MKBB) $(FS_FCODE) $(RD_FCODE)
59	$(MKBB.fcode) $(FS_FCODE) $(RD_FCODE) $(FS_BB)
60
61$(PROG):	$(FS_BB)
62	@-$(RM) $@
63	cp -p $(FS_BB) $@
64
65clean:
66	-$(RM) $(FS_FCODE) $(RD_FCODE) $(EX_FCODE) $(MKBB)
67
68clobber:	clean
69	-$(RM) $(PROG) $(FS_BB)
70
71lint:	FRC
72
73FRC:
74
75