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