freebsd-skq/sys/boot/i386/boot0/Makefile

34 lines
549 B
Makefile
Raw Normal View History

1999-08-28 01:08:13 +00:00
# $FreeBSD$
1998-10-05 19:20:36 +00:00
2000-10-02 17:23:16 +00:00
MAINTAINER= rnordier
1998-10-05 19:20:36 +00:00
PROG= boot0
NOMAN=
STRIP=
BINDIR?= /boot
1998-10-17 14:20:25 +00:00
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}
1998-10-05 19:20:36 +00:00
CLEANFILES+= boot0.out boot0.o
.include <bsd.prog.mk>