aboutsummaryrefslogtreecommitdiff
path: root/opcodes/mpw-config.in
blob: a643a27f43afab370ab1ea572b42d77b9ef019d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# 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'
Else If "{target_arch}" =~ /powerpc/
	Set BFD_MACHINES  '"{o}"ppc-dis.c.o "{o}"ppc-opc.c.o'
Else If "{target_arch}" =~ /mips/
	Set BFD_MACHINES  '"{o}"mips-dis.c.o "{o}"mips-opc.c.o'
Else If "{target_arch}" =~ /sparc/
	Set BFD_MACHINES  '"{o}"sparc-dis.c.o "{o}"sparc-opc.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