Last commit was completely wrong. Reverting to old revision of file.
[dragonfly.git] / sys / boot / pc98 / boot0.5 / Makefile
1 # $FreeBSD: src/sys/boot/pc98/boot0.5/Makefile,v 1.1 2000/08/02 08:46:08 kato Exp $
2 # $DragonFly: src/sys/boot/pc98/boot0.5/Attic/Makefile,v 1.3 2003/11/10 06:08:38 dillon Exp $
3
4 PROG=           boot0.5
5 OBJS=           start.o boot.o boot0.5.o disk.o selector.o support.o \
6                 syscons.o
7 NOMAN=
8 STRIP=
9 BINDIR?=        /boot
10 BINMODE=        444
11
12 ORG=            0x000
13
14 # The size of boot0.5 must be 7168 bytes
15 boot0.5: boot0.5.bin
16         cat boot0.5.bin /dev/zero | dd of=boot0.5 bs=1 count=7168
17
18 boot0.5.bin: boot0.5.out
19         objcopy -S -O binary boot0.5.out ${.TARGET}
20
21 boot0.5.out: ${OBJS}
22         ${LD} -N -e start -Ttext ${ORG} -o ${.TARGET} ${OBJS}
23
24 CLEANFILES+=    boot0.5.out boot0.5.bin
25
26 .include <bsd.prog.mk>