AMD64 - Fix native-built sys/boot install
[dragonfly.git] / sys / boot / pc32 / btx / btxldr / Makefile
CommitLineData
5ee58eed 1# $FreeBSD: src/sys/boot/i386/btx/btxldr/Makefile,v 1.12 2003/06/26 03:51:57 peter Exp $
cacaceec 2# $DragonFly: src/sys/boot/pc32/btx/btxldr/Makefile,v 1.5 2004/07/19 23:30:34 dillon Exp $
984263bc 3
558b7ce5 4CFLAGS+= -DLOADER_ADDRESS=${LOADER_ADDRESS}
984263bc 5
cacaceec 6# BTXLDR_VERBOSE=YES
984263bc 7.if defined(BTXLDR_VERBOSE)
558b7ce5 8CFLAGS+= -DBTXLDR_VERBOSE
984263bc
MD
9.endif
10
11all: btxldr
12
13btxldr: btxldr.o
79b4bbd6 14 ${LD} ${LDFLAGS} -N -e start -Ttext ${LOADER_ADDRESS} -o btxldr.out btxldr.o
984263bc 15 objcopy -S -O binary btxldr.out ${.TARGET}
984263bc 16
558b7ce5
MD
17btxldr.o: btxldr.S
18 ${CC} ${CFLAGS} ${.ALLSRC} -o ${.TARGET} -c
984263bc
MD
19
20CLEANFILES+= btxldr btxldr.out btxldr.o
21
984263bc 22.include <bsd.prog.mk>