Makefile revision 93605
1# $FreeBSD: head/sys/boot/sparc64/boot1/Makefile 93605 2002-04-01 22:57:51Z tmm $ 2 3PROG= boot1 4SRCS= _start.S boot1.c 5NOMAN= 6STRIP= 7BINDIR?= /boot 8BINMODE= 444 9 10BOOTBLOCKBASE= 0x4000 11 12CFLAGS= -W -Wall -I../../ -I../../common/ -Os -ffreestanding -mno-app-regs \ 13 -mcmodel=medlow 14 15boot1.elf: _start.o boot1.o 16 ${LD} -N -Ttext ${BOOTBLOCKBASE} -o ${.TARGET} _start.o boot1.o 17 18boot1.aout: boot1.elf 19 /usr/local/bin/elftoaout -o ${.TARGET} boot1.elf 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