]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - stand/sparc64/boot1/Makefile
Add two missing eventhandler.h headers
[FreeBSD/FreeBSD.git] / stand / sparc64 / boot1 / Makefile
1 # $FreeBSD$
2
3 .include <bsd.init.mk>
4
5 PROG=   boot1.elf
6 INTERNALPROG=
7 FILES?= boot1
8 SRCS=   _start.s boot1.c
9 CLEANFILES+=${FILES} boot1.aout
10
11 BOOTBLOCKBASE= 0x4000
12
13 CFLAGS.clang+=-mcmodel=small
14 CFLAGS.gcc+=-mcmodel=medlow
15 CFLAGS+=-Os -I${LDRSRC}
16 LDFLAGS+=-Ttext ${BOOTBLOCKBASE} -Wl,-N
17
18 # Construct boot1. sunlabel expects it to contain zeroed-out space for the
19 # label, and to be of the correct size.
20 ${FILES}: boot1.aout
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
25
26 boot1.aout: boot1.elf
27         elf2aout -o ${.TARGET} ${.ALLSRC}
28
29 .include <bsd.prog.mk>