xref: /titanic_51/usr/src/psm/stand/bootblks/Makefile.1275 (revision d9b365efa57e560c120a68d37339e584d8bf04c0)
17c478bd9Sstevel@tonic-gate#
27c478bd9Sstevel@tonic-gate# CDDL HEADER START
37c478bd9Sstevel@tonic-gate#
47c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the
5986fd29aSsetje# Common Development and Distribution License (the "License").
6986fd29aSsetje# You may not use this file except in compliance with the License.
77c478bd9Sstevel@tonic-gate#
87c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
97c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
107c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions
117c478bd9Sstevel@tonic-gate# and limitations under the License.
127c478bd9Sstevel@tonic-gate#
137c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
147c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
157c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
167c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
177c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
187c478bd9Sstevel@tonic-gate#
197c478bd9Sstevel@tonic-gate# CDDL HEADER END
207c478bd9Sstevel@tonic-gate#
217c478bd9Sstevel@tonic-gate#
22e7cbe64fSgw25295# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
23986fd29aSsetje# Use is subject to license terms.
247c478bd9Sstevel@tonic-gate#
257c478bd9Sstevel@tonic-gate# psm/stand/bootblks/Makefile.1275
267c478bd9Sstevel@tonic-gate#
277c478bd9Sstevel@tonic-gate
287c478bd9Sstevel@tonic-gate#
297c478bd9Sstevel@tonic-gate# Sources and objects used to build the Forth-based bootblock
307c478bd9Sstevel@tonic-gate# for all Sun OpenFirmware machines (IEEE Std. 1275)
317c478bd9Sstevel@tonic-gate#
32986fd29aSsetje# Common pieces
337c478bd9Sstevel@tonic-gate#
34986fd29aSsetjeBOOT_SRC	= util.fth boot.fth
35986fd29aSsetjeRD_SRC		= rd.fth
36986fd29aSsetje
37986fd29aSsetjeRD_FCODE	= rd.fcode
38986fd29aSsetje
39986fd29aSsetjeMKBB		= mkbb
40986fd29aSsetjeMKBB_SH		= $(BASEDIR)/common/mkbb.sh
41*d9b365efSRoger A. FaulknerMKBB.fcode	= ./$(MKBB) $(MKBBFLAGS)
42986fd29aSsetje
43986fd29aSsetje%.fcode:	$(BASEDIR)/common/%.fth
44986fd29aSsetje	$(TOKENIZE) $<
457c478bd9Sstevel@tonic-gate
467c478bd9Sstevel@tonic-gate#
477c478bd9Sstevel@tonic-gate# Targets
487c478bd9Sstevel@tonic-gate#
49986fd29aSsetjeall:		$(PROG)
50986fd29aSsetje
51986fd29aSsetje$(MKBB):	$(MKBB_SH)
52986fd29aSsetje	$(RM) $@
53986fd29aSsetje	cat $(MKBB_SH) > $@
54986fd29aSsetje	chmod +x $@
55986fd29aSsetje
56986fd29aSsetje$(FS_BB):	$(MKBB) $(FS_FCODE) $(RD_FCODE)
57e7cbe64fSgw25295	$(MKBB.fcode) $(FS_FCODE) $(RD_FCODE) $(FS_BB)
58986fd29aSsetje
59986fd29aSsetje$(PROG):	$(FS_BB)
607c478bd9Sstevel@tonic-gate	@-$(RM) $@
61986fd29aSsetje	cp -p $(FS_BB) $@
627c478bd9Sstevel@tonic-gate
637c478bd9Sstevel@tonic-gateclean:
64e7cbe64fSgw25295	-$(RM) $(FS_FCODE) $(RD_FCODE) $(EX_FCODE) $(MKBB)
657c478bd9Sstevel@tonic-gate
667c478bd9Sstevel@tonic-gateclobber:	clean
67986fd29aSsetje	-$(RM) $(PROG) $(FS_BB)
687c478bd9Sstevel@tonic-gate
697c478bd9Sstevel@tonic-gatelint:	FRC
707c478bd9Sstevel@tonic-gate
717c478bd9Sstevel@tonic-gateFRC:
727c478bd9Sstevel@tonic-gate
73