aboutsummaryrefslogtreecommitdiff
path: root/gnu/usr.bin/binutils
diff options
context:
space:
mode:
authorJohn Birrell <jb@FreeBSD.org>1998-05-04 21:10:56 +0000
committerJohn Birrell <jb@FreeBSD.org>1998-05-04 21:10:56 +0000
commitdd67e6bff74468fc4e7c3435be9242e8ca5cedd5 (patch)
tree754a9bae07bc832b90ee24c698512da3c1fc3c38 /gnu/usr.bin/binutils
parentb681d90662103774ec7811d31402a3d72d79c3a0 (diff)
downloadsrc-dd67e6bff74468fc4e7c3435be9242e8ca5cedd5.tar.gz
src-dd67e6bff74468fc4e7c3435be9242e8ca5cedd5.zip
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.
Notes
Notes: svn path=/head/; revision=35709
Diffstat (limited to 'gnu/usr.bin/binutils')
-rw-r--r--gnu/usr.bin/binutils/Makefile.inc010
1 files changed, 7 insertions, 3 deletions
diff --git a/gnu/usr.bin/binutils/Makefile.inc0 b/gnu/usr.bin/binutils/Makefile.inc0
index c028a914e4c0..8cc9c22a9ab3 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