freebsd-dev/sys/boot/i386/boot0/Makefile
John Baldwin 638bac9fc0 Clean up all of the 16-bit assembly code in the x86 bootstrap to work
with the new binutils.  Now that we have a decent assembler, all the old
m4 macros are no longer needed.  Instead, straight assembly can be used
since as(1) now understands 16-bit addressing, branches, etc.  Also,
several bugs have been fixed in as(1), allowing boot0.s to be further
cleaned up.
2000-05-23 12:18:49 +00:00

32 lines
527 B
Makefile

# $FreeBSD$
PROG= boot0
NOMAN=
STRIP=
BINDIR?= /boot
BINMODE= 444
M4?= m4
B0FLAGS=0xf
B0TICKS=0xb6
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
objcopy -S -O binary boot0.out ${.TARGET}
.endif
boot0.o: boot0.s
${AS} ${AFLAGS} --defsym FLAGS=${B0FLAGS} --defsym TICKS=${B0TICKS} \
${.IMPSRC} -o ${.TARGET}
CLEANFILES+= boot0.out boot0.o
.include <bsd.prog.mk>