Add the DragonFly cvs id and perform general cleanups on cvs/rcs/sccs ids. Most
[dragonfly.git] / sys / boot / pc98 / btx / btxldr / Makefile
1 # $FreeBSD: src/sys/boot/pc98/btx/btxldr/Makefile,v 1.2.2.1 2000/04/16 03:55:19 nyan Exp $
2 # $DragonFly: src/sys/boot/pc98/btx/btxldr/Attic/Makefile,v 1.2 2003/06/17 04:28:18 dillon Exp $
3
4 M4?=    m4
5 M4FLAGS+=       -DLOADER_ADDRESS=${LOADER_ADDRESS} -DPC98
6
7 .if defined(BTXLDR_VERBOSE)
8 M4FLAGS+=       -DBTXLDR_VERBOSE
9 .endif
10
11 all: btxldr
12
13 btxldr: btxldr.o
14 .if ${OBJFORMAT} == aout
15         ${LD} -nostdlib -N -s -T ${LOADER_ADDRESS} -o btxldr.out btxldr.o
16         dd if=btxldr.out of=${.TARGET} ibs=32 skip=1
17 .else
18         ${LD} -N -e start -Ttext ${LOADER_ADDRESS} -o btxldr.out btxldr.o
19         objcopy -S -O binary btxldr.out ${.TARGET}
20 .endif
21
22 btxldr.o: btxldr.s
23         (cd ${.CURDIR}; ${M4} ${M4FLAGS} btxldr.s ) | \
24                 ${AS} ${AFLAGS} -o ${.TARGET}
25
26 CLEANFILES+= btxldr btxldr.out btxldr.o
27
28 .include <${.CURDIR}/../../Makefile.inc>
29 .include <bsd.prog.mk>