From 0781becd813144ccfd5f16e83ea62b103d4729a3 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Thu, 22 Apr 1999 07:19:20 +0000 Subject: 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. --- gnu/usr.bin/binutils/libbinutils/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'gnu/usr.bin/binutils/libbinutils') diff --git a/gnu/usr.bin/binutils/libbinutils/Makefile b/gnu/usr.bin/binutils/libbinutils/Makefile index bc0b860f914a..660ecd7b4cb5 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 -- cgit v1.3