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