Makefile revision 95341
1# $FreeBSD: head/sys/boot/sparc64/boot1/Makefile 95341 2002-04-24 02:50:36Z jake $
2
3PROG=		boot1
4SRCS=		_start.S boot1.c
5NOMAN=
6STRIP=
7BINDIR?=	/boot
8BINMODE=	444
9
10BOOTBLOCKBASE=	0x4000
11
12CFLAGS=	-W -Wall -Wno-unused -I../../ -I../../common/ -Os -ffreestanding \
13	-mcmodel=medlow
14
15boot1.elf: _start.o boot1.o
16	${LD} -N -Ttext ${BOOTBLOCKBASE} -o ${.TARGET} ${.ALLSRC}
17
18boot1.aout: boot1.elf
19	elf2aout -o ${.TARGET} ${.ALLSRC}
20
21# Construct boot1. disklabel expects it to contain zeroed-out space for the
22# label, and to be of the correct size.
23boot1: boot1.aout
24	dd if=/dev/zero of=${.TARGET} bs=512 count=16
25	dd if=boot1.aout of=${.TARGET} bs=512 oseek=1 conv=notrunc
26
27CLEANFILES+=	boot1.elf boot1.aout
28
29.include <bsd.prog.mk>
30