a51c9b6627
under way to move the remnants of the a.out toolchain to ports. As the comment in src/Makefile said, this stuff is deprecated and one should not expect this to remain beyond 4.0-REL. It has already lasted WAY beyond that. Notable exceptions: gcc - I have not touched the a.out generation stuff there. ldd/ldconfig - still have some code to interface with a.out rtld. old as/ld/etc - I have not removed these yet, pending their move to ports. some includes - necessary for ldd/ldconfig for now. Tested on: i386 (extensively), alpha
24 lines
478 B
Makefile
24 lines
478 B
Makefile
# $FreeBSD$
|
|
|
|
M4?= m4
|
|
M4FLAGS+= -DLOADER_ADDRESS=${LOADER_ADDRESS}
|
|
|
|
.if defined(BTXLDR_VERBOSE)
|
|
M4FLAGS+= -DBTXLDR_VERBOSE
|
|
.endif
|
|
|
|
all: btxldr
|
|
|
|
btxldr: btxldr.o
|
|
${LD} -N -e start -Ttext ${LOADER_ADDRESS} -o btxldr.out btxldr.o
|
|
objcopy -S -O binary btxldr.out ${.TARGET}
|
|
|
|
btxldr.o: btxldr.s
|
|
(cd ${.CURDIR}; ${M4} ${M4FLAGS} btxldr.s ) | \
|
|
${AS} ${AFLAGS} -o ${.TARGET}
|
|
|
|
CLEANFILES+= btxldr btxldr.out btxldr.o
|
|
|
|
.include <${.CURDIR}/../../Makefile.inc>
|
|
.include <bsd.prog.mk>
|