Add new field to disassemble_info structure: symbol_is_valid() and use it to
[deliverable/binutils-gdb.git] / opcodes / mpw-config.in
index 66495df316a5860d0701e4f162b549e0620b0623..ff9be9d72f415bd82817f9cd3bbe98365ec13850 100644 (file)
@@ -1,3 +1,27 @@
 # Configuration fragment for opcodes.
 
-forward-include "{srcroot}"bfd:hosts:mpw.h sysdep.h
+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
This page took 0.024368 seconds and 4 git commands to generate.