Add the DragonFly cvs id and perform general cleanups on cvs/rcs/sccs ids. Most
[dragonfly.git] / sys / boot / pc98 / btx / btx / Makefile
1 # $FreeBSD: src/sys/boot/pc98/btx/btx/Makefile,v 1.3.2.2 2000/12/30 12:01:05 nyan Exp $
2 # $DragonFly: src/sys/boot/pc98/btx/btx/Attic/Makefile,v 1.2 2003/06/17 04:28:18 dillon Exp $
3
4 M4?=    m4
5
6 .if defined(PAGING)
7 M4FLAGS+=       -DPAGING
8 .endif
9
10 .if defined(BOOT_BTX_NOHANG)
11 BOOT_BTX_FLAGS=0x1
12 .else
13 BOOT_BTX_FLAGS=0x0
14 .endif
15
16 AFLAGS+=        --defsym BTX_FLAGS=${BOOT_BTX_FLAGS}
17 AFLAGS+=        --defsym PC98=1
18
19 ORG=    0x9000
20
21 all: btx
22
23 btx: btx.o
24 .if ${OBJFORMAT} == aout
25         ${LD} -nostdlib -N -s -T ${ORG} -o btx.out btx.o
26         dd if=btx.out of=${.TARGET} ibs=32 skip=1
27 .else
28         ${LD} -N -e start -Ttext ${ORG} -o btx.out btx.o
29         objcopy -S -O binary btx.out ${.TARGET}
30 .endif
31
32 btx.o: btx.s
33         (cd ${.CURDIR}; ${M4} ${M4FLAGS} btx.s) | \
34            ${AS} ${AFLAGS} -o ${.TARGET}
35
36 CLEANFILES+= btx btx.out btx.o
37
38 .include <bsd.prog.mk>