summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/binutils/libbinutils/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/usr.bin/binutils/libbinutils/Makefile')
-rw-r--r--gnu/usr.bin/binutils/libbinutils/Makefile8
1 files changed, 7 insertions, 1 deletions
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
OpenPOWER on IntegriCloud