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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [binutils-2.20.1/] [binutils/] [configure.com] - Diff between revs 816 and 818

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

Rev 816 Rev 818
$!
$!
$! This file configures binutils for use with openVMS/Alpha
$! This file configures binutils for use with openVMS/Alpha
$! 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 Klaus K"ampf (kkaempf@rmi.de)
$! Written by Klaus K"ampf (kkaempf@rmi.de)
$!
$!
$ arch=F$GETSYI("ARCH_NAME")
$ arch=F$GETSYI("ARCH_NAME")
$ arch=F$EDIT(arch,"LOWERCASE")
$ arch=F$EDIT(arch,"LOWERCASE")
$ write sys$output "Configuring binutils for ''arch' target"
$ write sys$output "Configuring binutils for ''arch' target"
$!
$!
$! Generate config.h
$! Generate config.h
$!
$!
$ create config.h
$ create config.h
/* config.h.  Generated automatically by configure.com  */
/* config.h.  Generated automatically by configure.com  */
/* Is the type time_t defined in ?  */
/* Is the type time_t defined in ?  */
#define HAVE_TIME_T_IN_TIME_H 1
#define HAVE_TIME_T_IN_TIME_H 1
/* Is the type time_t defined in ?  */
/* Is the type time_t defined in ?  */
#define HAVE_TIME_T_IN_TYPES_H 1
#define HAVE_TIME_T_IN_TYPES_H 1
/* Does  define struct utimbuf?  */
/* Does  define struct utimbuf?  */
#define HAVE_GOOD_UTIME_H 1
#define HAVE_GOOD_UTIME_H 1
/* Whether fprintf must be declared even if  is included.  */
/* Whether fprintf must be declared even if  is included.  */
#define NEED_DECLARATION_FPRINTF 1
#define NEED_DECLARATION_FPRINTF 1
/* Do we need to use the b modifier when opening binary files?  */
/* Do we need to use the b modifier when opening binary files?  */
/* #undef USE_BINARY_FOPEN */
/* #undef USE_BINARY_FOPEN */
/* Define if you have the utimes function.  */
/* Define if you have the utimes function.  */
#define HAVE_UTIMES 1
#define HAVE_UTIMES 1
/* Define if you have the  header file.  */
/* Define if you have the  header file.  */
#define HAVE_FCNTL_H 1
#define HAVE_FCNTL_H 1
/* Define if you have the  header file.  */
/* Define if you have the  header file.  */
#define HAVE_STDLIB_H 1
#define HAVE_STDLIB_H 1
/* Define if you have the  header file.  */
/* Define if you have the  header file.  */
#define HAVE_STRING_H 1
#define HAVE_STRING_H 1
/* Define if you have the  header file.  */
/* Define if you have the  header file.  */
#define HAVE_STRINGS_H 1
#define HAVE_STRINGS_H 1
/* Define if you have the  header file.  */
/* Define if you have the  header file.  */
#define HAVE_SYS_FILE_H 1
#define HAVE_SYS_FILE_H 1
/* Define if you have the  header file.  */
/* Define if you have the  header file.  */
#define HAVE_UNISTD_H 1
#define HAVE_UNISTD_H 1
/* Alloca.  */
/* Alloca.  */
#ifdef __DECC
#ifdef __DECC
#include 
#include 
#define C_alloca(x) __ALLOCA(x)
#define C_alloca(x) __ALLOCA(x)
#endif
#endif
$!
$!
$! Add TARGET.
$! Add TARGET.
$!
$!
$ if arch .eqs. "ia64" then target = "elf64-ia64-vms"
$ if arch .eqs. "ia64" then target = "elf64-ia64-vms"
$ if arch .eqs. "alpha" then target = "vms-alpha"
$ if arch .eqs. "alpha" then target = "vms-alpha"
$ if arch .eqs. "vax" then target = "vms-vax"
$ if arch .eqs. "vax" then target = "vms-vax"
$!
$!
$ open/append tfile config.h
$ open/append tfile config.h
$ write tfile "#define TARGET """ + target + """"
$ write tfile "#define TARGET """ + target + """"
$ close tfile
$ close tfile
$ write sys$output "Created `config.h'"
$ write sys$output "Created `config.h'"
$!
$!
$ write sys$output "Generate binutils build.com"
$ write sys$output "Generate binutils build.com"
$!
$!
$ create build.com
$ create build.com
$DECK
$DECK
$ DEFS=""
$ DEFS=""
$ OPT="/noopt/debug"
$ OPT="/noopt/debug"
$ CFLAGS=OPT + "/include=([],""../include"",[-.bfd])" +-
$ CFLAGS=OPT + "/include=([],""../include"",[-.bfd])" +-
 "/name=(as_is,shortened)" +-
 "/name=(as_is,shortened)" +-
 "/prefix=(all,exc=(""getopt"",""optarg"",""optopt"",""optind"",""opterr""))"
 "/prefix=(all,exc=(""getopt"",""optarg"",""optopt"",""optind"",""opterr""))"
$ BFDLIB = ",[-.bfd]libbfd.olb/lib"
$ BFDLIB = ",[-.bfd]libbfd.olb/lib"
$ LIBIBERTY = ",[-.libiberty]libiberty.olb/lib"
$ LIBIBERTY = ",[-.libiberty]libiberty.olb/lib"
$ OPCODES = ",[-.opcodes]libopcodes.olb/lib"
$ OPCODES = ",[-.opcodes]libopcodes.olb/lib"
$ DEBUG_FILES = ",rddbg,debug,stabs,ieee,rdcoff,dwarf"
$ DEBUG_FILES = ",rddbg,debug,stabs,ieee,rdcoff,dwarf"
$ BULIBS_FILES = ",bucomm,version,filemode"
$ BULIBS_FILES = ",bucomm,version,filemode"
$ ALL_FILES="nm,strings,addr2line,size,objdump,prdbg" +-
$ ALL_FILES="nm,strings,addr2line,size,objdump,prdbg" +-
   BULIBS_FILES + DEBUG_FILES
   BULIBS_FILES + DEBUG_FILES
$!
$!
$ write sys$output "CFLAGS=",CFLAGS
$ write sys$output "CFLAGS=",CFLAGS
$ if p1.nes."LINK"
$ if p1.nes."LINK"
$ then
$ then
$   NUM = 0
$   NUM = 0
$   LOOP:
$   LOOP:
$     F = F$ELEMENT(NUM,",",ALL_FILES)
$     F = F$ELEMENT(NUM,",",ALL_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:
$ endif
$ endif
$ purge
$ purge
$!
$!
$ write sys$output "Building nm.exe"
$ write sys$output "Building nm.exe"
$ NM_OBJS="nm.obj" + BULIBS_FILES + BFDLIB + LIBIBERTY
$ NM_OBJS="nm.obj" + BULIBS_FILES + BFDLIB + LIBIBERTY
$ link/exe=nm 'NM_OBJS
$ link/exe=nm 'NM_OBJS
$!
$!
$ write sys$output "Building strings.exe"
$ write sys$output "Building strings.exe"
$ STRINGS_OBJS="strings.obj" + BULIBS_FILES + BFDLIB + LIBIBERTY
$ STRINGS_OBJS="strings.obj" + BULIBS_FILES + BFDLIB + LIBIBERTY
$ link/exe=strings 'STRINGS_OBJS
$ link/exe=strings 'STRINGS_OBJS
$!
$!
$ write sys$output "Building size.exe"
$ write sys$output "Building size.exe"
$ SIZE_OBJS="size.obj" + BULIBS_FILES + BFDLIB + LIBIBERTY
$ SIZE_OBJS="size.obj" + BULIBS_FILES + BFDLIB + LIBIBERTY
$ link/exe=size 'SIZE_OBJS
$ link/exe=size 'SIZE_OBJS
$!
$!
$ write sys$output "Building addr2line.exe"
$ write sys$output "Building addr2line.exe"
$ ADDR2LINE_OBJS="addr2line.obj" + BULIBS_FILES + BFDLIB + LIBIBERTY
$ ADDR2LINE_OBJS="addr2line.obj" + BULIBS_FILES + BFDLIB + LIBIBERTY
$ link/exe=addr2line 'ADDR2LINE_OBJS
$ link/exe=addr2line 'ADDR2LINE_OBJS
$!
$!
$ write sys$output "Building objdump.exe"
$ write sys$output "Building objdump.exe"
$ OBJDUMP_OBJS="objdump.obj,prdbg.obj" + DEBUG_FILES + BULIBS_FILES +-
$ OBJDUMP_OBJS="objdump.obj,prdbg.obj" + DEBUG_FILES + BULIBS_FILES +-
   BFDLIB + OPCODES + LIBIBERTY
   BFDLIB + OPCODES + LIBIBERTY
$ link/exe=objdump 'OBJDUMP_OBJS
$ link/exe=objdump 'OBJDUMP_OBJS
$EOD
$EOD
 
 

powered by: WebSVN 2.1.0

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