diff options
| author | John Birrell <jb@FreeBSD.org> | 1999-11-06 21:54:21 +0000 |
|---|---|---|
| committer | John Birrell <jb@FreeBSD.org> | 1999-11-06 21:54:21 +0000 |
| commit | 19bf8ac856cb8f4d8d8672434fde2ca98110e257 (patch) | |
| tree | 5503b3c270b199328cf361b145812e15decdb17b /gnu/usr.bin/binutils/as/Makefile | |
| parent | 53149093a0bba7abb32cda2b32e19ed6a283bc6e (diff) | |
Notes
Diffstat (limited to 'gnu/usr.bin/binutils/as/Makefile')
| -rw-r--r-- | gnu/usr.bin/binutils/as/Makefile | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/gnu/usr.bin/binutils/as/Makefile b/gnu/usr.bin/binutils/as/Makefile index 424adff3a28f..8c2f8987e859 100644 --- a/gnu/usr.bin/binutils/as/Makefile +++ b/gnu/usr.bin/binutils/as/Makefile @@ -5,11 +5,31 @@ .include "${.CURDIR}/../Makefile.inc0" GASES= ${BINUTIL_ARCH} -GASES+= ${CROSS_TOOLS} ${CROSS_TARGETS} + +# Only build the cross tools when not cross-compiling. +__MA!=/sbin/sysctl -b hw.machine_arch +__M!=/sbin/sysctl -b hw.machine +.if ${__MA} == ${MACHINE_ARCH} || ${__M} == ${MACHINE} +.if defined(CROSS_ARCH) +.for _g in ${CROSS_ARCH} +.if (${GASES:R:M${_g:R}} == "") +GASES+=$(_g) +.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} +.if exists(${.CURDIR}/${_g}-${_f}) +SUBDIR+= ${_g}-${_f} +.endif +.endfor +.endif .endfor .include <bsd.subdir.mk> |
