After a repo copy of as_{alpha,i386,mips} to {alpha,i386,mips}-freebsd,

tidy up the logic that works out which sub-directories to build.

The new directories with freebsdelf suffixes now have freebsd suffixes
after a repo move by Peter at the request of David O'Brien.
This commit is contained in:
John Birrell 1999-11-07 05:59:25 +00:00
parent d91e41c8c9
commit da93b590fb
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=52956

View File

@ -5,6 +5,7 @@
.include "${.CURDIR}/../Makefile.inc0"
GASES= ${BINUTIL_ARCH}
FORMATS= freebsd
# Only build the cross tools when not cross-compiling.
__MA!=/sbin/sysctl -b hw.machine_arch
@ -17,19 +18,21 @@ GASES+=$(_g)
.endif
.endfor
.endif
.if defined(CROSS_FORMATS)
.for _f in ${CROSS_FORMATS}
.if (${FORMATS:R:M${_f:R}} == "")
FORMATS+=$(_f)
.endif
.endfor
.endif
.endif
.for _g in ${GASES}
.if exists(${.CURDIR}/as_${_g})
SUBDIR+= as_${_g}
.endif
.if defined(CROSS_FORMATS)
.for _f in ${CROSS_FORMATS}
.for _f in ${FORMATS}
.if exists(${.CURDIR}/${_g}-${_f})
SUBDIR+= ${_g}-${_f}
.endif
.endfor
.endif
.endfor
.include <bsd.subdir.mk>