Now that this file is not included when it should not, use the print-objdir

target instead of guessing (wrongly with the new toolchain) object directories.

This allows cross-building of bootblocks with the new toolchain.
This commit is contained in:
aymeric 2002-01-26 15:07:58 +00:00
parent 89b7d6e768
commit 839a40e98d
1 changed files with 7 additions and 28 deletions

View File

@ -1,52 +1,31 @@
# $NetBSD: Makefile.booters,v 1.1 2002/01/26 15:01:17 aymeric Exp $
# $NetBSD: Makefile.booters,v 1.2 2002/01/26 15:07:58 aymeric Exp $
BINDIR= /usr/mdec
.include <bsd.own.mk>
.if ${OBJECT_FMT} == "ELF"
### Figure out what to use for elf2bb
ELF2BBDIR= ${.CURDIR}/../elf2bb
.if exists(${ELF2BBDIR}/obj.${MACHINE})
ELF2BBOBJDIR= ${ELF2BBDIR}/obj.${MACHINE}
.elif exists(${ELF2BBDIR}/obj)
ELF2BBOBJDIR= ${ELF2BBDIR}/obj
.else
ELF2BBOBJDIR= ${ELF2BBDIR}
.endif
ELF2BBDIR= ${.CURDIR}/../elf2bb
ELF2BBOBJDIR!= cd ${ELF2BBDIR} && ${MAKE} print-objdir
RELOC2BB= ${ELF2BBOBJDIR}/elf2bb
${RELOC2BB}:
@cd ${ELF2BBDIR} && ${MAKE} depend && ${MAKE}
.else
### Figure out what to use for aout2bb
AOUT2BBDIR= ${.CURDIR}/../aout2bb
.if exists(${AOUT2BBDIR}/obj.${MACHINE})
AOUT2BBOBJDIR= ${AOUT2BBDIR}/obj.${MACHINE}
.elif exists(${AOUT2BBDIR}/obj)
AOUT2BBOBJDIR= ${AOUT2BBDIR}/obj
.else
AOUT2BBOBJDIR= ${AOUT2BBDIR}
.endif
AOUT2BBDIR= ${.CURDIR}/../aout2bb
AOUT2BBOBJDIR!= cd ${AOUT2BBDIR} && ${MAKE} print-objdir
RELOC2BB= ${AOUT2BBOBJDIR}/aout2bb
${RELOC2BB}:
@cd ${AOUT2BBDIR} && ${MAKE} depend && ${MAKE}
.endif
### Figure out what to use for txlt
TXLTDIR= ${.CURDIR}/../txlt
.if exists(${TXLTDIR}/obj.${MACHINE})
TXLTOBJDIR= ${TXLTDIR}/obj.${MACHINE}
.elif exists(${TXLTDIR}/obj)
TXLTOBJDIR= ${TXLTDIR}/obj
.else
TXLTOBJDIR= ${TXLTDIR}
.endif
TXLTOBJDIR!= /bin/sh -c "cd ${TXLTDIR} && ${MAKE} print-objdir"
TXLT= ${TXLTOBJDIR}/txlt
${TXLT}: