Makefile.1275 revision e7cbe64f7a72dae5cb44f100db60ca88f3313c65
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
#ident "%Z%%M% %I% %E% SMI"
#
# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# psm/stand/bootblks/Makefile.1275
#
#
# Sources and objects used to build the Forth-based bootblock
# for all Sun OpenFirmware machines (IEEE Std. 1275)
#
# Common pieces
#
BOOT_SRC = util.fth boot.fth
RD_SRC = rd.fth
RD_FCODE = rd.fcode
MKBB = mkbb
MKBB_SH = $(BASEDIR)/common/mkbb.sh
MKBB.fcode = $(MKBB) $(MKBBFLAGS)
%.fcode: $(BASEDIR)/common/%.fth
$(TOKENIZE) $<
#
# Targets
#
all: $(PROG)
$(MKBB): $(MKBB_SH)
$(RM) $@
cat $(MKBB_SH) > $@
chmod +x $@
$(FS_BB): $(MKBB) $(FS_FCODE) $(RD_FCODE)
$(MKBB.fcode) $(FS_FCODE) $(RD_FCODE) $(FS_BB)
$(PROG): $(FS_BB)
@-$(RM) $@
cp -p $(FS_BB) $@
clean:
-$(RM) $(FS_FCODE) $(RD_FCODE) $(EX_FCODE) $(MKBB)
clobber: clean
-$(RM) $(PROG) $(FS_BB)
lint: FRC
FRC: