10 CLEANFILES+=${FILES} boot1.aout
14 CFLAGS.clang+=-mcmodel=small
15 CFLAGS.gcc+=-mcmodel=medlow
16 CFLAGS+=-Os -I${LDRSRC}
17 LDFLAGS+=-Ttext ${BOOTBLOCKBASE} -Wl,-N
19 # Construct boot1. sunlabel expects it to contain zeroed-out space for the
20 # label, and to be of the correct size.
22 @set -- `ls -l ${.ALLSRC}`; x=$$((7680-$$5)); \
23 echo "$$x bytes available"; test $$x -ge 0
24 ${DD} if=/dev/zero of=${.TARGET} bs=512 count=16
25 ${DD} if=${.ALLSRC} of=${.TARGET} bs=512 oseek=1 conv=notrunc
28 elf2aout -o ${.TARGET} ${.ALLSRC}
30 boot1.o: ${SASRC}/ufsread.c
32 .include <bsd.prog.mk>