aboutsummaryrefslogtreecommitdiff
path: root/opcodes/mpw-config.in
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1996-09-02 16:41:29 +0000
committerIan Lance Taylor <ian@airs.com>1996-09-02 16:41:29 +0000
commit44789bee66aa8ecda900a4b7737435a6785e45b6 (patch)
tree343f71711b76326054f722a19c85dc516f828582 /opcodes/mpw-config.in
parent01d34e4be392184ea57d7539d9cde322ba35a2c9 (diff)
downloadgdb-44789bee66aa8ecda900a4b7737435a6785e45b6.zip
gdb-44789bee66aa8ecda900a4b7737435a6785e45b6.tar.gz
gdb-44789bee66aa8ecda900a4b7737435a6785e45b6.tar.bz2
whoops--typo
Diffstat (limited to 'opcodes/mpw-config.in')
-rw-r--r--opcodes/mpw-config.in27
1 files changed, 27 insertions, 0 deletions
diff --git a/opcodes/mpw-config.in b/opcodes/mpw-config.in
new file mode 100644
index 0000000..ff9be9d
--- /dev/null
+++ b/opcodes/mpw-config.in
@@ -0,0 +1,27 @@
+# Configuration fragment for opcodes.
+
+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 "{o}"m68k-opc.c.o'
+Else If "{target_arch}" =~ /powerpc/
+ Set BFD_MACHINES '"{o}"ppc-dis.c.o "{o}"ppc-opc.c.o'
+Else If "{target_arch}" =~ /i386/
+ Set BFD_MACHINES '"{o}"i386-dis.c.o'
+Else If "{target_arch}" =~ /mips/
+ Set BFD_MACHINES '"{o}"mips-dis.c.o "{o}"mips-opc.c.o'
+Else If "{target_arch}" =~ /sh/
+ Set BFD_MACHINES '"{o}"sh-dis.c.o'
+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
+
+Echo '/* config.h. Generated by mpw-configure. */' > "{o}"config.new
+Echo '#include "mpw.h"' >> "{o}"config.new
+
+MoveIfChange "{o}"config.new "{o}"config.h