Makefile revision 125622
1# $FreeBSD: head/sys/boot/sparc64/boot1/Makefile 125622 2004-02-09 14:17:02Z ru $
2
3PROG=	boot1.elf
4INTERNALPROG=
5NOMAN=
6FILES=	boot1
7SRCS=	_start.S boot1.c
8
9BOOTBLOCKBASE= 0x4000
10
11CFLAGS=	-mcmodel=medlow -Os -I${.CURDIR}/../../common
12LDFLAGS=-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.
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