aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorTristan Gingold <gingold@adacore.com>2009-09-01 13:16:53 +0000
committerTristan Gingold <gingold@adacore.com>2009-09-01 13:16:53 +0000
commite06ae0d430d9731f3ae19c0a08fc4d8549202eb1 (patch)
tree0de1cff261cb2ea26d7708b161c097ebee8af4cd /binutils
parent11d73275f00b0546fd903e3c336806d61df198f5 (diff)
downloadgdb-e06ae0d430d9731f3ae19c0a08fc4d8549202eb1.zip
gdb-e06ae0d430d9731f3ae19c0a08fc4d8549202eb1.tar.gz
gdb-e06ae0d430d9731f3ae19c0a08fc4d8549202eb1.tar.bz2
2009-09-01 Tristan Gingold <gingold@adacore.com>
* makefile.vms: Ported to Itanium VMS. Remove useless targets and dependencies. Remove unused FORMAT variable. * configure.com: New file to create build.com DCL script for Itanium VMS or Alpha VMS.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ChangeLog6
-rw-r--r--binutils/configure.com68
-rw-r--r--binutils/makefile.vms-in41
3 files changed, 77 insertions, 38 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index d3e679b..86a5b96 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,9 @@
+2009-09-01 Tristan Gingold <gingold@adacore.com>
+
+ * makefile.vms-in: Remove unused VERSION variable. Remove unused
+ dependencies.
+ * configure.com: Ported to Itanium VMS. Create build.com DCL script.
+
2009-08-29 Martin Thuresson <martin@mtme.org>
* nlmconv.c (main): Rename variable new to new_name.
diff --git a/binutils/configure.com b/binutils/configure.com
index 5ade2d4..fefa783 100644
--- a/binutils/configure.com
+++ b/binutils/configure.com
@@ -5,8 +5,9 @@ $! to execute it.
$!
$! Written by Klaus K"ampf (kkaempf@rmi.de)
$!
-$arch_indx = 1 + ((f$getsyi("CPU").ge.128).and.1) ! vax==1, alpha==2
-$arch = f$element(arch_indx,"|","|VAX|Alpha|")
+$ arch=F$GETSYI("ARCH_NAME")
+$ arch=F$EDIT(arch,"LOWERCASE")
+$ write sys$output "Configuring binutils for ''arch' target"
$!
$! Generate config.h
$!
@@ -44,12 +45,9 @@ $ create config.h
$!
$! Add TARGET.
$!
-$ if arch .eqs. "Alpha"
-$ then
-$ target = "vms-alpha"
-$ else
-$ target = "vms-vax"
-$ endif
+$ if arch .eqs. "ia64" then target = "elf64-ia64-vms"
+$ if arch .eqs. "alpha" then target = "vms-alpha"
+$ if arch .eqs. "vax" then target = "vms-vax"
$!
$ open/append tfile config.h
$ write tfile "#define TARGET """ + target + """"
@@ -58,3 +56,57 @@ $ write sys$output "Created `config.h'"
$!
$ copy makefile.vms-in makefile.vms
$ write sys$output "Created `makefile.vms'"
+$!
+$ write sys$output "Generate binutils build.com"
+$!
+$ create build.com
+$DECK
+$ DEFS=""
+$ OPT="/noopt/debug"
+$ CFLAGS=OPT + "/include=([],""../include"",[-.bfd])" +-
+ "/name=(as_is,shortened)" +-
+ "/prefix=(all,exc=(""getopt"",""optarg"",""optopt"",""optind"",""opterr""))"
+$ BFDLIB = ",[-.bfd]libbfd.olb/lib"
+$ LIBIBERTY = ",[-.libiberty]libiberty.olb/lib"
+$ OPCODES = ",[-.opcodes]libopcodes.olb/lib"
+$ DEBUG_FILES = ",rddbg,debug,stabs,ieee,rdcoff,dwarf"
+$ BULIBS_FILES = ",bucomm,version,filemode"
+$ ALL_FILES="nm,strings,addr2line,size,objdump,prdbg" +-
+ BULIBS_FILES + DEBUG_FILES
+$!
+$ write sys$output "CFLAGS=",CFLAGS
+$ if p1.nes."LINK"
+$ then
+$ NUM = 0
+$ LOOP:
+$ F = F$ELEMENT(NUM,",",ALL_FILES)
+$ IF F.EQS."," THEN GOTO END
+$ write sys$output "Compiling ", F, ".c"
+$ cc 'CFLAGS 'F.c
+$ NUM = NUM + 1
+$ GOTO LOOP
+$ END:
+$ endif
+$ purge
+$!
+$ write sys$output "Building nm.exe"
+$ NM_OBJS="nm.obj" + BULIBS_FILES + BFDLIB + LIBIBERTY
+$ link/exe=nm 'NM_OBJS
+$!
+$ write sys$output "Building strings.exe"
+$ STRINGS_OBJS="strings.obj" + BULIBS_FILES + BFDLIB + LIBIBERTY
+$ link/exe=strings 'STRINGS_OBJS
+$!
+$ write sys$output "Building size.exe"
+$ SIZE_OBJS="size.obj" + BULIBS_FILES + BFDLIB + LIBIBERTY
+$ link/exe=size 'SIZE_OBJS
+$!
+$ write sys$output "Building addr2line.exe"
+$ ADDR2LINE_OBJS="addr2line.obj" + BULIBS_FILES + BFDLIB + LIBIBERTY
+$ link/exe=addr2line 'ADDR2LINE_OBJS
+$!
+$ write sys$output "Building objdump.exe"
+$ OBJDUMP_OBJS="objdump.obj,prdbg.obj" + DEBUG_FILES + BULIBS_FILES +-
+ BFDLIB + OPCODES + LIBIBERTY
+$ link/exe=objdump 'OBJDUMP_OBJS
+$EOD
diff --git a/binutils/makefile.vms-in b/binutils/makefile.vms-in
index 8e597c9..bea886a 100644
--- a/binutils/makefile.vms-in
+++ b/binutils/makefile.vms-in
@@ -7,9 +7,6 @@
#
#
-# Distribution version, filled in by configure.com
-VERSION=@VERSION@
-
ifeq ($(CC),gcc)
DEFS=
CFLAGS=/include=([],[-.include],[-.bfd])$(DEFS)
@@ -17,14 +14,13 @@ LIBS=,gnu_cc_library:libgcc/lib,sys$$library:vaxcrtl.olb/lib,gnu_cc_library:crt0
else
DEFS=
OPT=/noopt/debug
-CFLAGS=$(OPT)/include=([],[-.include],[-.bfd])$(DEFS)\
+CFLAGS=$(OPT)/include=([],"../include",[-.bfd])$(DEFS)\
/name=(as_is,shortened)\
/prefix=(all,except=("getopt","optarg","optopt","optind","opterr"))
-LIBS=,sys$$library:vaxcrtl.olb/lib
endif
-BFDLIB = [-.bfd]libbfd.olb/lib
-BFDLIB_DEP = [-.bfd]libbfd.olb
+LIBBFD = [-.bfd]libbfd.olb/lib
+LIBBFD_DEP = [-.bfd]libbfd.olb
LIBIBERTY_DEP = [-.libiberty]libiberty.olb
LIBIBERTY = [-.libiberty]libiberty.olb/lib
OPCODES_DEP = [-.opcodes]libopcodes.olb
@@ -34,10 +30,10 @@ DEBUG_OBJS = rddbg.obj,debug.obj,stabs.obj,ieee.obj,rdcoff.obj,dwarf.obj
WRITE_DEBUG_OBJS = $(DEBUG_OBJS),wrstabs.obj
-BULIBS = []bucomm.obj,version.obj,filemode.obj
+BULIBS = bucomm.obj,version.obj,filemode.obj
-ADDL_DEPS = $(BULIBS),$(BFDLIB_DEP),$(LIBIBERTY_DEP)
-ADDL_LIBS = $(BULIBS),$(BFDLIB),$(LIBIBERTY)
+ADDL_DEPS = $(BULIBS),$(LIBBFD_DEP),$(LIBIBERTY_DEP)
+ADDL_LIBS = $(BULIBS),$(LIBBFD),$(LIBIBERTY)
SIZEOBJS = $(ADDL_DEPS),size.obj
@@ -52,39 +48,24 @@ OBJDUMPOBJS = $(ADDL_DEPS),objdump.obj,prdbg.obj,$(DEBUG_OBJS),$(OPCODES_DEP)
all: config.h size.exe strings.exe objdump.exe nm.exe addr2line.exe
size.exe: $(SIZEOBJS)
- link/exe=$@ size.obj,$(ADDL_LIBS)$(LIBS)
+ link/exe=$@ size.obj,$(ADDL_LIBS)
strings.exe: $(STRINGSOBJS)
- link/exe=$@ strings.obj,$(ADDL_LIBS)$(LIBS)
+ link/exe=$@ strings.obj,$(ADDL_LIBS)
nm.exe: $(NMOBJS)
- link/exe=$@ nm.obj,$(ADDL_LIBS)$(LIBS)
+ link/exe=$@ nm.obj,$(ADDL_LIBS)
addr2line.exe: $(ADDR2LINEOBJS)
- link/exe=$@ addr2line.obj,$(ADDL_LIBS)$(LIBS)
+ link/exe=$@ addr2line.obj,$(ADDL_LIBS)
objdump.exe: $(OBJDUMPOBJS)
- link/exe=$@ objdump.obj,prdbg.obj,$(DEBUG_OBJS),$(BFDLIB),$(OPCODES),$(ADDL_LIBS)$(LIBS)
+ link/exe=$@ objdump.obj,prdbg.obj,$(DEBUG_OBJS),$(LIBBFD),$(OPCODES),$(ADDL_LIBS)
config.h:
$$ @configure
$(MAKE) -f makefile.vms "CC=$(CC)"
-[-.bfd]libbfd.olb:
- $(CD) [-.bfd]
- $(MAKE) -f makefile.vms "CC=$(CC)"
- $(CD) [-.binutils]
-
-[-.libiberty]libiberty.olb:
- $(CD) [-.libiberty]
- $(MAKE) -f makefile.vms "CC=$(CC)"
- $(CD) [-.binutils]
-
-[-.opcodes]libopcodes.olb:
- $(CD) [-.opcodes]
- $(MAKE) -f makefile.vms "CC=$(CC)"
- $(CD) [-.binutils]
-
clean:
$$ purge
$(RM) *.obj;