diff options
Diffstat (limited to 'sys/boot/i386/boot0/Makefile')
-rw-r--r-- | sys/boot/i386/boot0/Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/boot/i386/boot0/Makefile b/sys/boot/i386/boot0/Makefile index 08fb405..69812b3 100644 --- a/sys/boot/i386/boot0/Makefile +++ b/sys/boot/i386/boot0/Makefile @@ -1,4 +1,4 @@ -# $Id: Makefile,v 1.1.1.1 1998/10/05 10:08:37 rnordier Exp $ +# $Id: Makefile,v 1.2 1998/10/05 19:20:36 rnordier Exp $ PROG= boot0 NOMAN= @@ -10,8 +10,13 @@ M4?= m4 ORG= 0x600 boot0: boot0.o +.if ${OBJFORMAT} == aout + ${LD} -N -s -T ${ORG} -o boot0.out boot0.o + dd if=boot0.out of=${.TARGET} ibs=32 skip=1 +.else ${LD} -N -e start -Ttext ${ORG} -o boot0.out boot0.o /usr/libexec/elf/objcopy -S -O binary boot0.out ${.TARGET} +.endif boot0.o: boot0.m4 boot0.s (cd ${.CURDIR}; ${M4} boot0.m4 boot0.s) | \ |