]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - sys/boot/sparc64/boot1/Makefile
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / sys / boot / sparc64 / boot1 / Makefile
1 # $FreeBSD$
2
3 PROG=   boot1.elf
4 INTERNALPROG=
5 NO_MAN=
6 FILES?= boot1
7 SRCS=   _start.s boot1.c
8 CLEANFILES=${FILES} boot1.aout
9
10 BOOTBLOCKBASE= 0x4000
11
12 CFLAGS+=-mcmodel=medlow -Os -I${.CURDIR}/../../common
13 LDFLAGS=-Ttext ${BOOTBLOCKBASE} -Wl,-N
14
15 # Construct boot1. sunlabel expects it to contain zeroed-out space for the
16 # label, and to be of the correct size.
17 ${FILES}: boot1.aout
18         @set -- `ls -l boot1.aout`; x=$$((7680-$$5)); \
19             echo "$$x bytes available"; test $$x -ge 0
20         dd if=/dev/zero of=${.TARGET} bs=512 count=16
21         dd if=boot1.aout of=${.TARGET} bs=512 oseek=1 conv=notrunc
22
23 boot1.aout: boot1.elf
24         elf2aout -o ${.TARGET} ${.ALLSRC}
25
26 boot1.o: ${.CURDIR}/../../common/ufsread.c
27
28 .include <bsd.prog.mk>