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