Makefile revision 234898
190699Srobert# $FreeBSD: head/sys/boot/sparc64/boot1/Makefile 234898 2012-05-01 17:16:01Z marius $ 290699Srobert 3125622SruPROG= boot1.elf 4125622SruINTERNALPROG= 5139103SruNO_MAN= 6234898SmariusFILES?= boot1 7125717SruSRCS= _start.s boot1.c 8235207SmariusCLEANFILES+=boot1 boot1.aout 993605Stmm 10125622SruBOOTBLOCKBASE= 0x4000 1190699Srobert 12263763SdimCFLAGS+=-mcmodel=medlow -Os -I${.CURDIR}/../../common 13263763SdimLDFLAGS=-Ttext ${BOOTBLOCKBASE} -Wl,-N 14263763Sdim 15208789Sed# Construct boot1. sunlabel expects it to contain zeroed-out space for the 1690699Srobert# label, and to be of the correct size. 17125622Sruboot1: boot1.aout 1893605Stmm @set -- `ls -l boot1.aout`; x=$$((7680-$$5)); \ 19235207Smarius echo "$$x bytes available"; test $$x -ge 0 20234898Smarius dd if=/dev/zero of=${.TARGET} bs=512 count=16 21234898Smarius dd if=boot1.aout of=${.TARGET} bs=512 oseek=1 conv=notrunc 2293605Stmm 2393605Stmmboot1.aout: boot1.elf 2493605Stmm elf2aout -o ${.TARGET} ${.ALLSRC} 25125622Sru 26125622Sruboot1.o: ${.CURDIR}/../../common/ufsread.c 27125622Sru 28125622Sru.include <bsd.prog.mk> 29125622Sru