==== //depot/projects/sparc64/sys/boot/sparc64/boot1/Makefile#2 - /usr/p4/sparc64/sys/boot/sparc64/boot1/Makefile ==== @@ -1,29 +1,28 @@ # $FreeBSD: src/sys/boot/sparc64/boot1/Makefile,v 1.2 2002/03/05 16:39:36 robert Exp $ +PROG= boot1 +NOMAN= +STRIP= +BINDIR?= /boot +BINMODE= 444 + BOOTBLOCKBASE= 0x4000 -CFLAGS= -W -Wall -I../../ -I../../common/ -Os \ - -DBOOTBLOCKBASE=${BOOTBLOCKBASE} \ - -ffreestanding -mno-app-regs -mcmodel=medlow -OBJ= boot1.o -ALLTARGETS= boot1.o boot1.elf boot1.aout boot1 +CFLAGS= -W -Wall -I../../ -I../../common/ -Os -ffreestanding -mno-app-regs \ + -mcmodel=medlow -all: boot1 +boot1.elf: boot1.o + ${LD} -N -Ttext ${BOOTBLOCKBASE} -e main -o ${.TARGET} boot1.o -boot1.o: boot1.c - ${CC} ${CFLAGS} -c -o ${.TARGET} ${.ALLSRC} - -boot1.elf: ${OBJ} - ${LD} -N -Ttext ${BOOTBLOCKBASE} -e main -o $@ ${OBJ} - -boot1.aout: boot1.elf - /usr/local/bin/elftoaout $> -o $@ +boot1.aout: boot1.elf + /usr/local/bin/elftoaout boot1.elf -o ${.TARGET} # Construct boot1. disklabel expects it to contain zeroed-out space for the # label, and to be of the correct size. -boot1: boot1.aout +boot1: boot1.aout dd if=/dev/zero of=$@ bs=512 count=16 dd if=$> of=$@ bs=512 oseek=1 conv=notrunc -clean: - -rm -f ${ALLTARGETS} +CLEANFILES+= boot1.o boot1.elf boot1.aout + +.include