]> CyberLeo.Net >> Repos - FreeBSD/releng/8.1.git/blob - sys/boot/sparc64/boot1/Makefile
Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.
[FreeBSD/releng/8.1.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
9 BOOTBLOCKBASE= 0x4000
10
11 CFLAGS= -mcmodel=medlow -Os -I${.CURDIR}/../../common
12 LDFLAGS=-N -Ttext ${BOOTBLOCKBASE}
13
14 # Construct boot1. sunlabel expects it to contain zeroed-out space for the
15 # label, and to be of the correct size.
16 boot1: boot1.aout
17         dd if=/dev/zero of=${.TARGET} bs=512 count=16
18         dd if=boot1.aout of=${.TARGET} bs=512 oseek=1 conv=notrunc
19
20 CLEANFILES= boot1.aout
21
22 boot1.aout: boot1.elf
23         elf2aout -o ${.TARGET} ${.ALLSRC}
24
25 boot1.o: ${.CURDIR}/../../common/ufsread.c
26
27 .include <bsd.prog.mk>