Makefile revision 50477
150477Speter# $FreeBSD: head/sys/boot/i386/boot0/Makefile 50477 1999-08-28 01:08:13Z peter $ 239973Srnordier 339980SrnordierPROG= boot0 439980SrnordierNOMAN= 539980SrnordierSTRIP= 639980SrnordierBINDIR?= /boot 740493SrnordierBINMODE= 444 839980Srnordier 939973SrnordierM4?= m4 1039973Srnordier 1148037SrnordierB0FLAGS=0xf 1240524SrnordierB0TICKS=0xb6 1340524Srnordier 1439973SrnordierORG= 0x600 1539973Srnordier 1639973Srnordierboot0: boot0.o 1740124Srnordier.if ${OBJFORMAT} == aout 1840124Srnordier ${LD} -N -s -T ${ORG} -o boot0.out boot0.o 1940124Srnordier dd if=boot0.out of=${.TARGET} ibs=32 skip=1 2040124Srnordier.else 2139973Srnordier ${LD} -N -e start -Ttext ${ORG} -o boot0.out boot0.o 2240308Srnordier objcopy -S -O binary boot0.out ${.TARGET} 2340124Srnordier.endif 2439973Srnordier 2539973Srnordierboot0.o: boot0.m4 boot0.s 2640524Srnordier (cd ${.CURDIR}; ${M4} -DFLAGS=${B0FLAGS} -DTICKS=${B0TICKS} \ 2740524Srnordier boot0.m4 boot0.s) | ${AS} ${AFLAGS} -o ${.TARGET} 2839973Srnordier 2939980SrnordierCLEANFILES+= boot0.out boot0.o 3039973Srnordier 3139973Srnordier.include <bsd.prog.mk> 32