Makefile revision 47471
147471Srnordier# $Id: $ 247471Srnordier 347471SrnordierPROG= mbr 447471SrnordierNOMAN= 547471SrnordierSTRIP= 647471SrnordierBINDIR?= /boot 747471SrnordierBINMODE= 444 847471Srnordier 947471SrnordierM4?= m4 1047471Srnordier 1147471SrnordierORG= 0x600 1247471Srnordier 1347471Srnordiermbr: mbr.o 1447471Srnordier.if ${OBJFORMAT} == aout 1547471Srnordier ${LD} -N -s -T ${ORG} -o mbr.out mbr.o 1647471Srnordier dd if=mbr.out of=${.TARGET} ibs=32 skip=1 1747471Srnordier.else 1847471Srnordier ${LD} -N -e start -Ttext ${ORG} -o mbr.out mbr.o 1947471Srnordier objcopy -S -O binary mbr.out ${.TARGET} 2047471Srnordier.endif 2147471Srnordier 2247471Srnordiermbr.o: mbr.m4 mbr.s 2347471Srnordier (cd ${.CURDIR}; ${M4} mbr.m4 mbr.s) | \ 2447471Srnordier ${AS} ${AFLAGS} -o ${.TARGET} 2547471Srnordier 2647471SrnordierCLEANFILES+= mbr.out mbr.o 2747471Srnordier 2847471Srnordier.include <bsd.prog.mk> 29