1994-01-04 04:58:02 +08:00
|
|
|
# Configuration fragment for opcodes.
|
|
|
|
|
1994-01-25 04:39:06 +08:00
|
|
|
forward-include "{srcroot}"bfd:hosts:mpw.h sysdep.h
|
1994-03-31 07:33:44 +08:00
|
|
|
|
1994-06-08 09:53:20 +08:00
|
|
|
Set target_arch `echo {target_canonical} | sed -e 's/-.*-.*//'`
|
|
|
|
|
1995-01-05 07:05:52 +08:00
|
|
|
Set archname ARCH_{target_arch}
|
|
|
|
|
1994-06-08 09:53:20 +08: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-01-05 07:05:52 +08:00
|
|
|
Else If "{target_arch}" =~ /mips/
|
|
|
|
Set BFD_MACHINES '"{o}"mips-dis.c.o "{o}"mips-opc.c.o'
|
1994-06-08 09:53:20 +08:00
|
|
|
Else If "{target_arch}" =~ /sparc/
|
|
|
|
Set BFD_MACHINES '"{o}"sparc-dis.c.o "{o}"sparc-opc.c.o'
|
|
|
|
End If
|
1995-01-05 07:05:52 +08: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
|