diff options
| author | John Birrell <jb@FreeBSD.org> | 1999-11-07 05:59:25 +0000 |
|---|---|---|
| committer | John Birrell <jb@FreeBSD.org> | 1999-11-07 05:59:25 +0000 |
| commit | da93b590fb2612408e8b7eceab58dcb3cfd6c34d (patch) | |
| tree | 2953b6f75236bbea4fbffde7344a05ce185ec7c4 /gnu | |
| parent | d91e41c8c9db6b85aee936190128a5a9c085ff5a (diff) | |
Notes
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/usr.bin/binutils/as/Makefile | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/gnu/usr.bin/binutils/as/Makefile b/gnu/usr.bin/binutils/as/Makefile index 8c2f8987e8594..4de352e3d2f9d 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> |
