aboutsummaryrefslogtreecommitdiff
path: root/gnu/usr.bin/binutils
diff options
context:
space:
mode:
authorJohn Birrell <jb@FreeBSD.org>1999-11-07 05:59:25 +0000
committerJohn Birrell <jb@FreeBSD.org>1999-11-07 05:59:25 +0000
commitda93b590fb2612408e8b7eceab58dcb3cfd6c34d (patch)
tree2953b6f75236bbea4fbffde7344a05ce185ec7c4 /gnu/usr.bin/binutils
parentd91e41c8c9db6b85aee936190128a5a9c085ff5a (diff)
Notes
Diffstat (limited to 'gnu/usr.bin/binutils')
-rw-r--r--gnu/usr.bin/binutils/as/Makefile15
1 files changed, 9 insertions, 6 deletions
diff --git a/gnu/usr.bin/binutils/as/Makefile b/gnu/usr.bin/binutils/as/Makefile
index 8c2f8987e859..4de352e3d2f9 100644
--- a/gnu/usr.bin/binutils/as/Makefile
+++ b/gnu/usr.bin/binutils/as/Makefile
@@ -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>