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# 227c478bd9Sstevel@tonic-gate#ident "%Z%%M% %I% %E% SMI" 237c478bd9Sstevel@tonic-gate# 24*e7cbe64fSgw25295# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 25986fd29aSsetje# 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# 34986fd29aSsetje# Common pieces 357c478bd9Sstevel@tonic-gate# 36986fd29aSsetjeBOOT_SRC = util.fth boot.fth 37986fd29aSsetjeRD_SRC = rd.fth 38986fd29aSsetje 39986fd29aSsetjeRD_FCODE = rd.fcode 40986fd29aSsetje 41986fd29aSsetjeMKBB = mkbb 42986fd29aSsetjeMKBB_SH = $(BASEDIR)/common/mkbb.sh 43*e7cbe64fSgw25295MKBB.fcode = $(MKBB) $(MKBBFLAGS) 44986fd29aSsetje 45986fd29aSsetje%.fcode: $(BASEDIR)/common/%.fth 46986fd29aSsetje $(TOKENIZE) $< 477c478bd9Sstevel@tonic-gate 487c478bd9Sstevel@tonic-gate# 497c478bd9Sstevel@tonic-gate# Targets 507c478bd9Sstevel@tonic-gate# 51986fd29aSsetjeall: $(PROG) 52986fd29aSsetje 53986fd29aSsetje$(MKBB): $(MKBB_SH) 54986fd29aSsetje $(RM) $@ 55986fd29aSsetje cat $(MKBB_SH) > $@ 56986fd29aSsetje chmod +x $@ 57986fd29aSsetje 58986fd29aSsetje$(FS_BB): $(MKBB) $(FS_FCODE) $(RD_FCODE) 59*e7cbe64fSgw25295 $(MKBB.fcode) $(FS_FCODE) $(RD_FCODE) $(FS_BB) 60986fd29aSsetje 61986fd29aSsetje$(PROG): $(FS_BB) 627c478bd9Sstevel@tonic-gate @-$(RM) $@ 63986fd29aSsetje cp -p $(FS_BB) $@ 647c478bd9Sstevel@tonic-gate 657c478bd9Sstevel@tonic-gateclean: 66*e7cbe64fSgw25295 -$(RM) $(FS_FCODE) $(RD_FCODE) $(EX_FCODE) $(MKBB) 677c478bd9Sstevel@tonic-gate 687c478bd9Sstevel@tonic-gateclobber: clean 69986fd29aSsetje -$(RM) $(PROG) $(FS_BB) 707c478bd9Sstevel@tonic-gate 717c478bd9Sstevel@tonic-gatelint: FRC 727c478bd9Sstevel@tonic-gate 737c478bd9Sstevel@tonic-gateFRC: 747c478bd9Sstevel@tonic-gate 75