Initial import from FreeBSD RELENG_4:
[dragonfly.git] / sys / boot / i386 / boot0 / Makefile
1 # $FreeBSD: src/sys/boot/i386/boot0/Makefile,v 1.8.2.6 2001/07/21 14:35:37 rnordier Exp $
2
3 PROG=           boot0
4 NOMAN=
5 STRIP=
6 BINDIR?=        /boot
7 BINMODE=        444
8
9 M4?=    m4
10
11 B0FLAGS=0xf
12 B0TICKS=0xb6
13
14 ORG=    0x600
15
16 boot0: boot0.o
17 .if ${OBJFORMAT} == aout
18         ${LD} -N -s -T ${ORG} -o boot0.out boot0.o
19         dd if=boot0.out of=${.TARGET} ibs=32 skip=1
20 .else
21         ${LD} -N -e start -Ttext ${ORG} -o boot0.out boot0.o
22         objcopy -S -O binary boot0.out ${.TARGET}
23 .endif
24
25 boot0.o: boot0.s
26         ${AS} ${AFLAGS} --defsym FLAGS=${B0FLAGS} --defsym TICKS=${B0TICKS} \
27                 ${.IMPSRC} -o ${.TARGET}
28
29 CLEANFILES+= boot0.out boot0.o
30
31 .include <bsd.prog.mk>