freebsd-dev/sys/boot/sparc64/boot1/Makefile
David E. O'Brien 34ef85ee3d o Use our own elf2aout now.
o Generalize a little.
2002-04-21 02:37:55 +00:00

30 lines
657 B
Makefile

# $FreeBSD$
PROG= boot1
SRCS= _start.S boot1.c
NOMAN=
STRIP=
BINDIR?= /boot
BINMODE= 444
BOOTBLOCKBASE= 0x4000
CFLAGS= -W -Wall -I../../ -I../../common/ -Os -ffreestanding -mno-app-regs \
-mcmodel=medlow
boot1.elf: _start.o boot1.o
${LD} -N -Ttext ${BOOTBLOCKBASE} -o ${.TARGET} ${.ALLSRC}
boot1.aout: boot1.elf
elf2aout -o ${.TARGET} ${.ALLSRC}
# Construct boot1. disklabel expects it to contain zeroed-out space for the
# label, and to be of the correct size.
boot1: boot1.aout
dd if=/dev/zero of=${.TARGET} bs=512 count=16
dd if=boot1.aout of=${.TARGET} bs=512 oseek=1 conv=notrunc
CLEANFILES+= boot1.elf boot1.aout
.include <bsd.prog.mk>