OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [tags/] [final_interface/] [gdb-5.0/] [opcodes/] [mpw-config.in] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 106 markom
# Configuration fragment for opcodes.
2
 
3
Set target_arch `echo {target_canonical} | sed -e 's/-.*-.*//'`
4
 
5
Set archname ARCH_{target_arch}
6
 
7
If "{target_arch}" =~ /m68k/
8
        Set BFD_MACHINES  '"{o}"m68k-dis.c.o "{o}"m68k-opc.c.o'
9
Else If "{target_arch}" =~ /powerpc/
10
        Set BFD_MACHINES  '"{o}"ppc-dis.c.o "{o}"ppc-opc.c.o'
11
Else If "{target_arch}" =~ /i386/
12
        Set BFD_MACHINES  '"{o}"i386-dis.c.o'
13
Else If "{target_arch}" =~ /mips/
14
        Set BFD_MACHINES  '"{o}"mips-dis.c.o "{o}"mips-opc.c.o'
15
Else If "{target_arch}" =~ /sh/
16
        Set BFD_MACHINES  '"{o}"sh-dis.c.o'
17
End If
18
 
19
Echo '# Start from mpw-config.in'                        > "{o}"mk.tmp
20
Echo "BFD_MACHINES = " {BFD_MACHINES}                   >> "{o}"mk.tmp
21
Echo "ARCHDEFS = -d" {archname}                         >> "{o}"mk.tmp
22
Echo '# End from mpw-config.in'                         >> "{o}"mk.tmp
23
 
24
Echo '/* config.h.  Generated by mpw-configure.  */'     > "{o}"config.new
25
Echo '#include "mpw.h"'                                 >> "{o}"config.new
26
 
27
MoveIfChange "{o}"config.new "{o}"config.h

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.