diff options
author | jb <jb@FreeBSD.org> | 1998-05-04 21:10:56 +0000 |
---|---|---|
committer | jb <jb@FreeBSD.org> | 1998-05-04 21:10:56 +0000 |
commit | e23f821a54d936951d0997a9948044b2967b00bf (patch) | |
tree | bb2faf557572caffb411b1b7647f37f56f320262 /gnu | |
parent | f701fbc7d569ab22a7d57c4c0cba391bad3d755d (diff) | |
download | FreeBSD-src-e23f821a54d936951d0997a9948044b2967b00bf.zip FreeBSD-src-e23f821a54d936951d0997a9948044b2967b00bf.tar.gz |
Add makefile support for cross-architectures. Allow CROSS_TOOLS to
be defined (in /etc/make.conf, say) and set to the additional architectures
that need to be compiled in. So on alpha I set CROSS_TOOLS = i386.
On i386 you can't build alpha due to lack of 64-bit support on 32-bit
architectures, but that's a GNU problem.
This change relies on makefiles in the binutils sub-directories having
the extension defined in the CROSS_TOOLS, instead of those makefiles
being selected based on the host architecture.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/usr.bin/binutils/Makefile.inc0 | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/gnu/usr.bin/binutils/Makefile.inc0 b/gnu/usr.bin/binutils/Makefile.inc0 index c028a91..8cc9c22 100644 --- a/gnu/usr.bin/binutils/Makefile.inc0 +++ b/gnu/usr.bin/binutils/Makefile.inc0 @@ -1,5 +1,5 @@ # -# $Id: Makefile.inc0,v 1.2 1998/03/12 02:54:39 jdp Exp $ +# $Id: Makefile.inc0,v 1.3 1998/03/12 05:59:22 jb Exp $ # # @@ -34,6 +34,10 @@ CFLAGS+= -I${SRCDIR}/include .PATH: ${.CURDIR}/${MACHINE_ARCH} .endif -.if exists(${.CURDIR}/Makefile.${MACHINE_ARCH}) -.include "${.CURDIR}/Makefile.${MACHINE_ARCH}" +ARCHS= ${MACHINE_ARCH} ${CROSS_TOOLS} + +.for _arch in ${ARCHS} +.if exists(${.CURDIR}/Makefile.${_arch}) +.include "${.CURDIR}/Makefile.${_arch}" .endif +.endfor |