1999-08-28 01:08:13 +00:00
|
|
|
# $FreeBSD$
|
1998-09-12 06:30:26 +00:00
|
|
|
|
2000-03-28 01:19:53 +00:00
|
|
|
M4?= m4
|
|
|
|
M4FLAGS+= -DLOADER_ADDRESS=${LOADER_ADDRESS}
|
|
|
|
|
|
|
|
.if defined(BTXLDR_VERBOSE)
|
|
|
|
M4FLAGS+= -DBTXLDR_VERBOSE
|
|
|
|
.endif
|
1998-09-12 06:30:26 +00:00
|
|
|
|
|
|
|
all: btxldr
|
|
|
|
|
|
|
|
btxldr: btxldr.o
|
2000-03-28 01:19:53 +00:00
|
|
|
${LD} -N -e start -Ttext ${LOADER_ADDRESS} -o btxldr.out btxldr.o
|
1998-10-13 18:29:18 +00:00
|
|
|
objcopy -S -O binary btxldr.out ${.TARGET}
|
1998-09-12 06:30:26 +00:00
|
|
|
|
|
|
|
btxldr.o: btxldr.s
|
2000-03-28 01:19:53 +00:00
|
|
|
(cd ${.CURDIR}; ${M4} ${M4FLAGS} btxldr.s ) | \
|
|
|
|
${AS} ${AFLAGS} -o ${.TARGET}
|
1998-09-12 06:30:26 +00:00
|
|
|
|
1998-09-25 17:14:16 +00:00
|
|
|
CLEANFILES+= btxldr btxldr.out btxldr.o
|
1998-09-14 18:27:06 +00:00
|
|
|
|
2000-03-28 01:19:53 +00:00
|
|
|
.include <${.CURDIR}/../../Makefile.inc>
|
1998-09-25 17:14:16 +00:00
|
|
|
.include <bsd.prog.mk>
|