Makefile revision 208789
1# $FreeBSD: head/sys/boot/sparc64/boot1/Makefile 208789 2010-06-03 17:42:32Z ed $
2
3PROG=	boot1.elf
4INTERNALPROG=
5NO_MAN=
6FILES=	boot1
7SRCS=	_start.s boot1.c
8
9BOOTBLOCKBASE= 0x4000
10
11CFLAGS=	-mcmodel=medlow -Os -I${.CURDIR}/../../common
12LDFLAGS=-Ttext ${BOOTBLOCKBASE} -Wl,-N
13
14# Construct boot1. sunlabel expects it to contain zeroed-out space for the
15# label, and to be of the correct size.
16boot1: 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
20CLEANFILES= boot1.aout
21
22boot1.aout: boot1.elf
23	elf2aout -o ${.TARGET} ${.ALLSRC}
24
25boot1.o: ${.CURDIR}/../../common/ufsread.c
26
27.include <bsd.prog.mk>
28