diff options
author | Richard Henderson <rth@redhat.com> | 1999-05-03 07:29:06 +0000 |
---|---|---|
committer | Richard Henderson <rth@redhat.com> | 1999-05-03 07:29:06 +0000 |
commit | 860acaebec6b57ce27e244cc02a58e6651a4b6c3 (patch) | |
tree | eff5420756a4bd56b40b74c2b828b261f327610b /opcodes/mpw-config.in | |
parent | f9c53ad2d7cb541cbe821d645b90437ac063e5db (diff) | |
download | gdb-860acaebec6b57ce27e244cc02a58e6651a4b6c3.tar.gz |
Initial revision
Diffstat (limited to 'opcodes/mpw-config.in')
-rw-r--r-- | opcodes/mpw-config.in | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/opcodes/mpw-config.in b/opcodes/mpw-config.in new file mode 100644 index 00000000000..ff9be9d72f4 --- /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 |