diff options
author | imp <imp@FreeBSD.org> | 1999-04-22 07:19:20 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 1999-04-22 07:19:20 +0000 |
commit | b4fe1fc0622367033294a006d794598acf4cdf85 (patch) | |
tree | 67f5cf3c96927d174a017188ae2b308f629a9b22 /gnu/usr.bin | |
parent | 50b0eeb618434d00fbac7d5575a5243d3d760536 (diff) | |
download | FreeBSD-src-b4fe1fc0622367033294a006d794598acf4cdf85.zip FreeBSD-src-b4fe1fc0622367033294a006d794598acf4cdf85.tar.gz |
For mips assembler, we need to define TARGET_BYTES_BIG_ENDIAN to be
zero when building for little endian machines.
Correct the target names for mips. We just use the generic targets
for mips elf, so the mipse[lb]-unknown-freebsd emulation types don't
exist.
Diffstat (limited to 'gnu/usr.bin')
-rw-r--r-- | gnu/usr.bin/binutils/as/mips-freebsd/Makefile | 6 | ||||
-rw-r--r-- | gnu/usr.bin/binutils/libbinutils/Makefile | 8 |
2 files changed, 12 insertions, 2 deletions
diff --git a/gnu/usr.bin/binutils/as/mips-freebsd/Makefile b/gnu/usr.bin/binutils/as/mips-freebsd/Makefile index b6fbe81..a4f7f35 100644 --- a/gnu/usr.bin/binutils/as/mips-freebsd/Makefile +++ b/gnu/usr.bin/binutils/as/mips-freebsd/Makefile @@ -1,5 +1,5 @@ # -# $Id: Makefile,v 1.3 1998/05/05 10:31:52 jb Exp $ +# $Id: Makefile,v 1.1 1999/03/01 04:01:56 imp Exp $ # .include "${.CURDIR}/../Makefile.inc0" @@ -9,6 +9,10 @@ PROG= as .else PROG= as_mips .endif +.if ${MACHINE_ARCH} == "mipsel" +CFLAGS+= -DTARGET_BYTES_BIG_ENDIAN=0 +.endif + SRCS+= obj-elf.c tc-mips.c itbl-ops.c itbl-parse.y itbl-lex.l .include <bsd.prog.mk> diff --git a/gnu/usr.bin/binutils/libbinutils/Makefile b/gnu/usr.bin/binutils/libbinutils/Makefile index bc0b860..660ecd7 100644 --- a/gnu/usr.bin/binutils/libbinutils/Makefile +++ b/gnu/usr.bin/binutils/libbinutils/Makefile @@ -1,5 +1,5 @@ # -# $Id: Makefile,v 1.4 1998/05/04 21:21:17 jb Exp $ +# $Id: Makefile,v 1.5 1998/06/04 01:09:28 bde Exp $ # .include "../Makefile.inc0" @@ -9,7 +9,13 @@ LIB= binutils SRCS+= arlex.l arparse.y arsup.c bucomm.c debug.c filemode.c \ ieee.c rdcoff.c rddbg.c stabs.c wrstabs.c version.c +.if ${MACHINE_ARCH} == "mipseb" +CFLAGS+= -DTARGET=\"elf32-bigmips\" +.elif ${MACHINE_ARCH} == "mipsel" +CFLAGS+= -DTARGET=\"elf32-littlemips\" +.else CFLAGS+= -DTARGET=\"${MACHINE_ARCH}-unknown-freebsdelf\" +.endif CFLAGS+= -DVERSION=\"${VERSION}\" CFLAGS+= -I${SRCDIR}/binutils CFLAGS+= -I${SRCDIR}/bfd |