aboutsummaryrefslogtreecommitdiff
path: root/opcodes/mpw-config.in
diff options
context:
space:
mode:
authorStan Shebs <shebs@codesourcery.com>1995-01-04 23:05:52 +0000
committerStan Shebs <shebs@codesourcery.com>1995-01-04 23:05:52 +0000
commitd3d74a94e9ae5f802954fc7b446dc6433359b7aa (patch)
tree05dd686e78f3533c2a3c2521861b8c285f783497 /opcodes/mpw-config.in
parent1b56797098c4810ba9744a77cf2eb5d4836238e0 (diff)
downloadfsf-binutils-gdb-d3d74a94e9ae5f802954fc7b446dc6433359b7aa.zip
fsf-binutils-gdb-d3d74a94e9ae5f802954fc7b446dc6433359b7aa.tar.gz
fsf-binutils-gdb-d3d74a94e9ae5f802954fc7b446dc6433359b7aa.tar.bz2
* mpw-config.in (archname): Compute from the config.
(BFD_MACHINES, ARCHDEFS): Put into mk.tmp.
Diffstat (limited to 'opcodes/mpw-config.in')
-rw-r--r--opcodes/mpw-config.in20
1 files changed, 12 insertions, 8 deletions
diff --git a/opcodes/mpw-config.in b/opcodes/mpw-config.in
index 635076f..a643a27 100644
--- a/opcodes/mpw-config.in
+++ b/opcodes/mpw-config.in
@@ -2,20 +2,24 @@
forward-include "{srcroot}"bfd:hosts:mpw.h sysdep.h
-Set BFD_MACHINES " "
-
Set target_arch `echo {target_canonical} | sed -e 's/-.*-.*//'`
+Set archname ARCH_{target_arch}
+
If "{target_arch}" =~ /m68k/
Set BFD_MACHINES '"{o}"m68k-dis.c.o'
- Set archname ARCH_m68k
-Else If "{target_arch}" =~ /mips/
- Set BFD_MACHINES '"{o}"mips-dis.c.o "{o}"mips-opc.c.o'
- Set archname ARCH_mips
Else If "{target_arch}" =~ /powerpc/
Set BFD_MACHINES '"{o}"ppc-dis.c.o "{o}"ppc-opc.c.o'
- Set archname ARCH_powerpc
+Else If "{target_arch}" =~ /mips/
+ Set BFD_MACHINES '"{o}"mips-dis.c.o "{o}"mips-opc.c.o'
Else If "{target_arch}" =~ /sparc/
Set BFD_MACHINES '"{o}"sparc-dis.c.o "{o}"sparc-opc.c.o'
- Set archname ARCH_sparc
End If
+
+Echo '# Start from mpw-config.in' > "{o}"mk.tmp
+
+Echo "BFD_MACHINES = " {BFD_MACHINES} >> "{o}"mk.tmp
+
+Echo "ARCHDEFS = -d" {archname} >> "{o}"mk.tmp
+
+Echo '# End from mpw-config.in' >> "{o}"mk.tmp