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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gdb-7.1/] [opcodes/] [configure.com] - Diff between revs 834 and 842

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

Rev 834 Rev 842
$!
$!
$! This file configures the opcodes library for use with openVMS.
$! This file configures the opcodes library for use with openVMS.
$!
$!
$! We do not use the configure script, since we do not have /bin/sh
$! We do not use the configure script, since we do not have /bin/sh
$! to execute it.
$! to execute it.
$!
$!
$! Written by Tristan Gingold (gingold@adacore.com)
$! Written by Tristan Gingold (gingold@adacore.com)
$!
$!
$ arch=F$GETSYI("ARCH_NAME")
$ arch=F$GETSYI("ARCH_NAME")
$ arch=F$EDIT(arch,"LOWERCASE")
$ arch=F$EDIT(arch,"LOWERCASE")
$!
$!
$ write sys$output "Generate opcodes/build.com"
$ write sys$output "Generate opcodes/build.com"
$!
$!
$ if arch.eqs."ia64"
$ if arch.eqs."ia64"
$ then
$ then
$   create build.com
$   create build.com
$DECK
$DECK
$ FILES="ia64-dis,ia64-opc"
$ FILES="ia64-dis,ia64-opc"
$ DEFS="""ARCH_ia64"""
$ DEFS="""ARCH_ia64"""
$EOD
$EOD
$ endif
$ endif
$ if arch.eqs."alpha"
$ if arch.eqs."alpha"
$ then
$ then
$   create build.com
$   create build.com
$DECK
$DECK
$ FILES="alpha-dis,alpha-opc"
$ FILES="alpha-dis,alpha-opc"
$ DEFS="""ARCH_alpha"""
$ DEFS="""ARCH_alpha"""
$EOD
$EOD
$ endif
$ endif
$!
$!
$ append sys$input build.com
$ append sys$input build.com
$DECK
$DECK
$ FILES=FILES + ",dis-init,dis-buf,disassemble"
$ FILES=FILES + ",dis-init,dis-buf,disassemble"
$ OPT="/noopt/debug"
$ OPT="/noopt/debug"
$ CFLAGS=OPT + "/include=([],""../include"",[-.bfd])/name=(as_is,shortened)" + -
$ CFLAGS=OPT + "/include=([],""../include"",[-.bfd])/name=(as_is,shortened)" + -
  "/define=(" + DEFS + ")"
  "/define=(" + DEFS + ")"
$ write sys$output "CFLAGS=",CFLAGS
$ write sys$output "CFLAGS=",CFLAGS
$ NUM = 0
$ NUM = 0
$ LOOP:
$ LOOP:
$   F = F$ELEMENT(NUM,",",FILES)
$   F = F$ELEMENT(NUM,",",FILES)
$   IF F.EQS."," THEN GOTO END
$   IF F.EQS."," THEN GOTO END
$   write sys$output "Compiling ", F, ".c"
$   write sys$output "Compiling ", F, ".c"
$   cc 'CFLAGS 'F.c
$   cc 'CFLAGS 'F.c
$   NUM = NUM + 1
$   NUM = NUM + 1
$   GOTO LOOP
$   GOTO LOOP
$ END:
$ END:
$ purge
$ purge
$ lib/create libopcodes 'FILES
$ lib/create libopcodes 'FILES
$EOD
$EOD
$exit
$exit
 
 

powered by: WebSVN 2.1.0

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