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

Subversion Repositories or1k

[/] [or1k/] [tags/] [start/] [gdb-5.0/] [opcodes/] [mpw-config.in] - Diff between revs 579 and 1765

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 579 Rev 1765
# Configuration fragment for opcodes.
# Configuration fragment for opcodes.
Set target_arch `echo {target_canonical} | sed -e 's/-.*-.*//'`
Set target_arch `echo {target_canonical} | sed -e 's/-.*-.*//'`
Set archname ARCH_{target_arch}
Set archname ARCH_{target_arch}
If "{target_arch}" =~ /m68k/
If "{target_arch}" =~ /m68k/
        Set BFD_MACHINES  '"{o}"m68k-dis.c.o "{o}"m68k-opc.c.o'
        Set BFD_MACHINES  '"{o}"m68k-dis.c.o "{o}"m68k-opc.c.o'
Else If "{target_arch}" =~ /powerpc/
Else If "{target_arch}" =~ /powerpc/
        Set BFD_MACHINES  '"{o}"ppc-dis.c.o "{o}"ppc-opc.c.o'
        Set BFD_MACHINES  '"{o}"ppc-dis.c.o "{o}"ppc-opc.c.o'
Else If "{target_arch}" =~ /i386/
Else If "{target_arch}" =~ /i386/
        Set BFD_MACHINES  '"{o}"i386-dis.c.o'
        Set BFD_MACHINES  '"{o}"i386-dis.c.o'
Else If "{target_arch}" =~ /mips/
Else If "{target_arch}" =~ /mips/
        Set BFD_MACHINES  '"{o}"mips-dis.c.o "{o}"mips-opc.c.o'
        Set BFD_MACHINES  '"{o}"mips-dis.c.o "{o}"mips-opc.c.o'
Else If "{target_arch}" =~ /sh/
Else If "{target_arch}" =~ /sh/
        Set BFD_MACHINES  '"{o}"sh-dis.c.o'
        Set BFD_MACHINES  '"{o}"sh-dis.c.o'
End If
End If
Echo '# Start from mpw-config.in'                        > "{o}"mk.tmp
Echo '# Start from mpw-config.in'                        > "{o}"mk.tmp
Echo "BFD_MACHINES = " {BFD_MACHINES}                   >> "{o}"mk.tmp
Echo "BFD_MACHINES = " {BFD_MACHINES}                   >> "{o}"mk.tmp
Echo "ARCHDEFS = -d" {archname}                         >> "{o}"mk.tmp
Echo "ARCHDEFS = -d" {archname}                         >> "{o}"mk.tmp
Echo '# End from mpw-config.in'                         >> "{o}"mk.tmp
Echo '# End from mpw-config.in'                         >> "{o}"mk.tmp
Echo '/* config.h.  Generated by mpw-configure.  */'     > "{o}"config.new
Echo '/* config.h.  Generated by mpw-configure.  */'     > "{o}"config.new
Echo '#include "mpw.h"'                                 >> "{o}"config.new
Echo '#include "mpw.h"'                                 >> "{o}"config.new
MoveIfChange "{o}"config.new "{o}"config.h
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.