]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/boot/i386/btx/btx/Makefile
This commit was generated by cvs2svn to compensate for changes in r55099,
[FreeBSD/FreeBSD.git] / sys / boot / i386 / btx / btx / Makefile
1 # $FreeBSD$
2
3 M4?=    m4
4
5 .if defined(PAGING)
6 M4FLAGS+=       -DPAGING
7 .endif
8
9 ORG=    0x9000
10
11 all: btx
12
13 btx: btx.o
14 .if ${OBJFORMAT} == aout
15         ${LD} -nostdlib -N -s -T ${ORG} -o btx.out btx.o
16         dd if=btx.out of=${.TARGET} ibs=32 skip=1
17 .else
18         ${LD} -N -e start -Ttext ${ORG} -o btx.out btx.o
19         objcopy -S -O binary btx.out ${.TARGET}
20 .endif
21
22 btx.o: btx.m4 btx.s
23         (cd ${.CURDIR}; ${M4} ${M4FLAGS} btx.m4 btx.s) | \
24            ${AS} ${AFLAGS} -o ${.TARGET}
25
26 CLEANFILES+= btx btx.out btx.o
27
28 .include <bsd.prog.mk>