1994-01-03 20:58:02 +00:00
|
|
|
# Configuration fragment for opcodes.
|
|
|
|
|
1994-01-24 20:39:06 +00:00
|
|
|
forward-include "{srcroot}"bfd:hosts:mpw.h sysdep.h
|
1994-03-30 23:33:44 +00:00
|
|
|
|
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/
|
|
|
|
Set BFD_MACHINES '"{o}"m68k-dis.c.o'
|
|
|
|
Else If "{target_arch}" =~ /powerpc/
|
|
|
|
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
|
|
|
|
|
|
|
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
|