mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-09 10:00:39 +00:00
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.
This commit is contained in:
parent
b681d90662
commit
dd67e6bff7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=35709
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue