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