summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/binutils/Makefile.inc0
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>1999-03-01 04:01:57 +0000
committerimp <imp@FreeBSD.org>1999-03-01 04:01:57 +0000
commit4697c1d0cccc83ba10c6c5e376db0f5033fd450e (patch)
tree920bc80647ff4c545a38c6c76a6a247bf622a902 /gnu/usr.bin/binutils/Makefile.inc0
parent57b9785287124e53b58a5857d114a7f340c6ba17 (diff)
downloadFreeBSD-src-4697c1d0cccc83ba10c6c5e376db0f5033fd450e.zip
FreeBSD-src-4697c1d0cccc83ba10c6c5e376db0f5033fd450e.tar.gz
Add TARGET_ARCH=mipsel and TARGET_ARCH=mipseb as a valid targets.
Unlike the unisex architecutres we've had so far, mips is bisexual. These tools can produce either byte sex, and the compiler/make determines the proper gender to use. Otherwise, we'd have to have had mipsel and mipseb in all the places that we have just mips. And there are other complications with doing that (binutils doesn't like to build mips tools without both byte genders, it seems). Introduced BINUTIL_ARCH so that other bisexual architectures can a generic mechanism. We cannot just define MACHINE_ARCH as mips because we need to differentiate big and little endian types of binaries. Discussions on freebsd-arch have hashed out this issue (and the parallel libc issues). NetBSD is moving towards mipsel and mipseb for their two flavors of mips ports (in time for 1.4, if this change hasn't already been accomplished). I've been building i386 worlds with this tree for a three months with these files in place with no ill effects.
Diffstat (limited to 'gnu/usr.bin/binutils/Makefile.inc0')
-rw-r--r--gnu/usr.bin/binutils/Makefile.inc020
1 files changed, 13 insertions, 7 deletions
diff --git a/gnu/usr.bin/binutils/Makefile.inc0 b/gnu/usr.bin/binutils/Makefile.inc0
index 9ee42e6..1dc3da8 100644
--- a/gnu/usr.bin/binutils/Makefile.inc0
+++ b/gnu/usr.bin/binutils/Makefile.inc0
@@ -1,5 +1,5 @@
#
-# $Id: Makefile.inc0,v 1.4 1998/05/04 21:10:56 jb Exp $
+# $Id: Makefile.inc0,v 1.5 1998/09/06 23:01:49 jdp Exp $
#
#
@@ -10,6 +10,12 @@
VERSION= 2.9.1
+.if ${MACHINE_ARCH} == "mipsel" || ${MACHINE_ARCH} == "mipseb"
+BINUTIL_ARCH=mips
+.else
+BINUTIL_ARCH=${MACHINE_ARCH}
+.endif
+
# RELTOP is the relative path to this point in the source or object
# tree, from any subdirectory of same. It gets extra "../" prefixes
# added to it as we descend into subdirectories.
@@ -23,18 +29,18 @@ CFLAGS+= -D_GNU_SOURCE
# We use "-I-" because without it our yacc-generated parser tries to
# use GNU's bison-generated header files.
CFLAGS+= -I- -I.
-.if exists(${.CURDIR}/${MACHINE_ARCH})
-CFLAGS+= -I${.CURDIR}/${MACHINE_ARCH}
+.if exists(${.CURDIR}/${BINUTIL_ARCH})
+CFLAGS+= -I${.CURDIR}/${BINUTIL_ARCH}
.endif
CFLAGS+= -I${.CURDIR}
-CFLAGS+= -I${.CURDIR}/${RELTOP}/libbfd/${MACHINE_ARCH}
+CFLAGS+= -I${.CURDIR}/${RELTOP}/libbfd/${BINUTIL_ARCH}
CFLAGS+= -I${SRCDIR}/include
-.if exists(${.CURDIR}/${MACHINE_ARCH})
-.PATH: ${.CURDIR}/${MACHINE_ARCH}
+.if exists(${.CURDIR}/${BINUTIL_ARCH})
+.PATH: ${.CURDIR}/${BINUTIL_ARCH}
.endif
-ARCHS= ${MACHINE_ARCH} ${CROSS_TOOLS}
+ARCHS= ${BINUTIL_ARCH} ${CROSS_TOOLS}
.for _arch in ${ARCHS}
.if exists(${.CURDIR}/Makefile.${_arch})
OpenPOWER on IntegriCloud