source: vendor/binutils/current/opcodes/mpw-config.in

Last change on this file was 10, checked in by bird, 22 years ago

Initial revision

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 927 bytes
Line 
1# Configuration fragment for opcodes.
2
3Set target_arch `echo {target_canonical} | sed -e 's/-.*-.*//'`
4
5Set archname ARCH_{target_arch}
6
7If "{target_arch}" =~ /m68k/
8 Set BFD_MACHINES '"{o}"m68k-dis.c.o "{o}"m68k-opc.c.o'
9Else If "{target_arch}" =~ /powerpc/
10 Set BFD_MACHINES '"{o}"ppc-dis.c.o "{o}"ppc-opc.c.o'
11Else If "{target_arch}" =~ /i386/
12 Set BFD_MACHINES '"{o}"i386-dis.c.o'
13Else If "{target_arch}" =~ /mips/
14 Set BFD_MACHINES '"{o}"mips-dis.c.o "{o}"mips-opc.c.o'
15Else If "{target_arch}" =~ /sh/
16 Set BFD_MACHINES '"{o}"sh-dis.c.o'
17End If
18
19Echo '# Start from mpw-config.in' > "{o}"mk.tmp
20Echo "BFD_MACHINES = " {BFD_MACHINES} >> "{o}"mk.tmp
21Echo "ARCHDEFS = -d" {archname} >> "{o}"mk.tmp
22Echo '# End from mpw-config.in' >> "{o}"mk.tmp
23
24Echo '/* config.h. Generated by mpw-configure. */' > "{o}"config.new
25Echo '#include "mpw.h"' >> "{o}"config.new
26
27MoveIfChange "{o}"config.new "{o}"config.h
Note: See TracBrowser for help on using the repository browser.