xref: /titanic_51/usr/src/psm/stand/bootblks/Makefile.1275 (revision 986fd29a0dc13f7608ef7f508f6e700bd7bc2720)
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
5*986fd29aSsetje# Common Development and Distribution License (the "License").
6*986fd29aSsetje# 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#
227c478bd9Sstevel@tonic-gate#ident	"%Z%%M%	%I%	%E% SMI"
237c478bd9Sstevel@tonic-gate#
24*986fd29aSsetje# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
25*986fd29aSsetje# Use is subject to license terms.
267c478bd9Sstevel@tonic-gate#
277c478bd9Sstevel@tonic-gate# psm/stand/bootblks/Makefile.1275
287c478bd9Sstevel@tonic-gate#
297c478bd9Sstevel@tonic-gate
307c478bd9Sstevel@tonic-gate#
317c478bd9Sstevel@tonic-gate# Sources and objects used to build the Forth-based bootblock
327c478bd9Sstevel@tonic-gate# for all Sun OpenFirmware machines (IEEE Std. 1275)
337c478bd9Sstevel@tonic-gate#
34*986fd29aSsetje# Common pieces
357c478bd9Sstevel@tonic-gate#
36*986fd29aSsetjeBOOT_SRC	= util.fth boot.fth
37*986fd29aSsetjeRD_SRC		= rd.fth
38*986fd29aSsetje
39*986fd29aSsetjeRD_FCODE	= rd.fcode
40*986fd29aSsetje
41*986fd29aSsetjeMKBB		= mkbb
42*986fd29aSsetjeMKBB_SH		= $(BASEDIR)/common/mkbb.sh
43*986fd29aSsetje
44*986fd29aSsetje%.fcode:	$(BASEDIR)/common/%.fth
45*986fd29aSsetje	$(TOKENIZE) $<
467c478bd9Sstevel@tonic-gate
477c478bd9Sstevel@tonic-gate#
487c478bd9Sstevel@tonic-gate# Targets
497c478bd9Sstevel@tonic-gate#
50*986fd29aSsetjeall:		$(PROG)
51*986fd29aSsetje
52*986fd29aSsetje$(MKBB):	$(MKBB_SH)
53*986fd29aSsetje	$(RM) $@
54*986fd29aSsetje	cat $(MKBB_SH) > $@
55*986fd29aSsetje	chmod +x $@
56*986fd29aSsetje
57*986fd29aSsetje$(FS_BB):	$(MKBB) $(FS_FCODE) $(RD_FCODE)
58*986fd29aSsetje	$(MKBB) $(FS_FCODE) $(RD_FCODE) $(FS_BB)
59*986fd29aSsetje
60*986fd29aSsetje$(PROG):	$(FS_BB)
617c478bd9Sstevel@tonic-gate	@-$(RM) $@
62*986fd29aSsetje	cp -p $(FS_BB) $@
637c478bd9Sstevel@tonic-gate
647c478bd9Sstevel@tonic-gateclean:
65*986fd29aSsetje	-$(RM) $(FS_FCODE) $(RD_FCODE)
667c478bd9Sstevel@tonic-gate
677c478bd9Sstevel@tonic-gateclobber:	clean
68*986fd29aSsetje	-$(RM) $(PROG) $(FS_BB)
697c478bd9Sstevel@tonic-gate
707c478bd9Sstevel@tonic-gatelint:	FRC
717c478bd9Sstevel@tonic-gate
727c478bd9Sstevel@tonic-gateFRC:
737c478bd9Sstevel@tonic-gate
74