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