Add the DragonFly cvs id and perform general cleanups on cvs/rcs/sccs ids. Most
[dragonfly.git] / sys / boot / i386 / btx / btx / Makefile
1 # $FreeBSD: src/sys/boot/i386/btx/btx/Makefile,v 1.7.2.2 2000/12/28 12:08:22 ps Exp $
2 # $DragonFly: src/sys/boot/i386/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
18 ORG=    0x9000
19
20 all: btx
21
22 btx: btx.o
23 .if ${OBJFORMAT} == aout
24         ${LD} -nostdlib -N -s -T ${ORG} -o btx.out btx.o
25         dd if=btx.out of=${.TARGET} ibs=32 skip=1
26 .else
27         ${LD} -N -e start -Ttext ${ORG} -o btx.out btx.o
28         objcopy -S -O binary btx.out ${.TARGET}
29 .endif
30
31 btx.o: btx.s
32         (cd ${.CURDIR}; ${M4} ${M4FLAGS} btx.s) | \
33            ${AS} ${AFLAGS} -o ${.TARGET}
34
35 CLEANFILES+= btx btx.out btx.o
36
37 .include <bsd.prog.mk>