1994-01-03 20:58:02 +00:00
|
|
|
# Configuration fragment for opcodes.
|
|
|
|
|
1994-06-08 01:53:20 +00:00
|
|
|
Set target_arch `echo {target_canonical} | sed -e 's/-.*-.*//'`
|
|
|
|
|
1995-01-04 23:05:52 +00:00
|
|
|
Set archname ARCH_{target_arch}
|
|
|
|
|
1994-06-08 01:53:20 +00:00
|
|
|
If "{target_arch}" =~ /m68k/
|
1995-09-27 01:53:07 +00:00
|
|
|
Set BFD_MACHINES '"{o}"m68k-dis.c.o "{o}"m68k-opc.c.o'
|
1994-06-08 01:53:20 +00:00
|
|
|
Else If "{target_arch}" =~ /powerpc/
|
1995-10-19 18:11:54 +00:00
|
|
|
Set BFD_MACHINES '"{o}"ppc-dis.c.o "{o}"ppc-opc.c.o'
|
1995-06-16 00:45:31 +00:00
|
|
|
Else If "{target_arch}" =~ /i386/
|
|
|
|
Set BFD_MACHINES '"{o}"i386-dis.c.o'
|
1995-01-04 23:05:52 +00:00
|
|
|
Else If "{target_arch}" =~ /mips/
|
|
|
|
Set BFD_MACHINES '"{o}"mips-dis.c.o "{o}"mips-opc.c.o'
|
1995-06-16 00:45:31 +00:00
|
|
|
Else If "{target_arch}" =~ /sh/
|
|
|
|
Set BFD_MACHINES '"{o}"sh-dis.c.o'
|
1994-06-08 01:53:20 +00:00
|
|
|
End If
|
1995-01-04 23:05:52 +00:00
|
|
|
|
1995-09-27 01:53:07 +00:00
|
|
|
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
|
1995-01-04 23:05:52 +00:00
|
|
|
|
1995-09-27 01:53:07 +00:00
|
|
|
MoveIfChange "{o}"config.new "{o}"config.h
|