Tue Jun 18 15:03:44 1996 Klaus Kaempf <kkaempf@progis.de>
authorIan Lance Taylor <ian@airs.com>
Tue, 18 Jun 1996 19:10:39 +0000 (19:10 +0000)
committerIan Lance Taylor <ian@airs.com>
Tue, 18 Jun 1996 19:10:39 +0000 (19:10 +0000)
* config.h-vms, makefile.vms: New files.

binutils/.Sanitize
binutils/ChangeLog
binutils/config.h-vms [new file with mode: 0644]
binutils/makefile.vms [new file with mode: 0644]

index bd1a78f7c5c5f6c8b1b6dda5d4451e40b102be3b..db3ba8a94ff84fc900264d2692d902993dfebd8c 100644 (file)
@@ -43,6 +43,7 @@ budbg.h
 coffdump.c
 coffgrok.c
 coffgrok.h
+config.h-vms
 config.in
 configure
 configure.bat
@@ -59,6 +60,7 @@ ieee.c
 is-ranlib.c
 is-strip.c
 mac-binutils.r
+makefile.vms
 maybe-ranlib.c
 maybe-strip.c
 mpw-config.in
index 9c46f666aeef8d812d760ba6ccfb2413ee1d90a0..fa9be773d99ce23bdfa672ed6985caabea4c00b4 100644 (file)
@@ -1,3 +1,7 @@
+Tue Jun 18 15:03:44 1996  Klaus Kaempf  <kkaempf@progis.de>
+
+       * config.h-vms, makefile.vms: New files.
+
 Mon Jun 17 09:47:31 1996  Ian Lance Taylor  <ian@cygnus.com>
 
        * dlltool.c (make_one_lib_file): Use BFD_RELOC_RVA rather than
diff --git a/binutils/config.h-vms b/binutils/config.h-vms
new file mode 100644 (file)
index 0000000..5c42f6b
--- /dev/null
@@ -0,0 +1,46 @@
+/* config.h.  Generated automatically by configure.  */
+/* config.in.  Generated automatically from configure.in by autoheader.  */
+
+/* Is the type time_t defined in <time.h>?  */
+#define HAVE_TIME_T_IN_TIME_H 1
+
+/* Is the type time_t defined in <sys/types.h>?  */
+#define HAVE_TIME_T_IN_TYPES_H 1
+
+/* Does <utime.h> define struct utimbuf?  */
+#define HAVE_GOOD_UTIME_H 1
+
+/* Whether fprintf must be declared even if <stdio.h> is included.  */
+#define NEED_DECLARATION_FPRINTF 1
+
+/* Do we need to use the b modifier when opening binary files?  */
+/* #undef USE_BINARY_FOPEN */
+
+/* Define if you have the sbrk function.  */
+/* #undef HAVE_SBRK */
+
+/* Define if you have the utimes function.  */
+#define HAVE_UTIMES 1
+
+/* Define if you have the <fcntl.h> header file.  */
+#define HAVE_FCNTL_H 1
+
+/* Define if you have the <stdlib.h> header file.  */
+#define HAVE_STDLIB_H 1
+
+/* Define if you have the <string.h> header file.  */
+#define HAVE_STRING_H 1
+
+/* Define if you have the <strings.h> header file.  */
+#define HAVE_STRINGS_H 1
+
+/* Define if you have the <sys/file.h> header file.  */
+#define HAVE_SYS_FILE_H 1
+
+/* Define if you have the <unistd.h> header file.  */
+#define HAVE_UNISTD_H 1
+
+#if __GNUC__
+#define _bfd_generic_get_section_contents_in_window _bfd_generic_get_win_section_cont
+#define _elf_section_from_bfd_section _bfd_elf_sec_from_bfd_sec
+#endif
diff --git a/binutils/makefile.vms b/binutils/makefile.vms
new file mode 100644 (file)
index 0000000..6a53f15
--- /dev/null
@@ -0,0 +1,56 @@
+#
+# Makefile for binutils under openVMS/AXP
+#
+# For use with gnu-make for vms
+#
+# Created by Klaus Kämpf, kkaempf@progis.de
+#
+#
+
+CC=gcc
+
+ifeq ($(CC),gcc)
+CFLAGS=/include=([],[-.include],[-.bfd])$(DEFS)
+DEFS=/define=("unlink=remove")
+GCCLIBS=,GNU_CC:[000000]LIBGCC2/lib,GNU_CC:[000000]LIBGCCLIB/lib,sys$$disk:[-]vprintf.obj,sys$$library:vaxcrtl.olb/lib,GNU_CC:[000000]crt0.obj
+else
+CFLAGS=/noopt/debug/include=([],[-.include],[-.bfd])$(DEFS)
+DEFS=/define=(\
+"_bfd_generic_get_section_contents_in_window"="_bfd_generic_get_win_section_cont",\
+"_bfd_elf_section_from_bfd_section"="_bfd_elf_sec_from_bfd_sec")
+GCCLIBS=
+endif
+
+LIBBFD = [-.bfd]libbfd.olb
+LIBIBERTY = [-.libiberty]libiberty.olb
+LIBOPCODES = [-.opcodes]libopcodes.olb
+
+LIBS = $(LIBBFD) $(LIBOPCODES) $(LIBIBERTY)
+
+DEBUG_OBJS = rddbg.obj,debug.obj,stabs.obj,ieee.obj,prdbg.obj
+
+SIZEOBJS = bucomm.obj,version.obj,filemode.obj,size.obj
+
+OBJDUMPOBJS = bucomm.obj,version.obj,filemode.obj,objdump.obj
+
+NMOBJS = bucomm.obj,version.obj,filemode.obj,nm.obj
+
+all: config.h size.exe objdump.exe nm.exe
+
+size.exe: $(SIZEOBJS) $(LIBS)
+       link/exe=$@ $(SIZEOBJS),$(LIBBFD)/lib,$(LIBOPCODES)/lib,$(LIBIBERTY)/lib$(GCCLIBS)
+
+objdump.exe: $(DEBUG_OBJS) $(OBJDUMPOBJS) $(LIBS)
+       link/exe=$@ $(OBJDUMPOBJS),$(DEBUG_OBJS),$(LIBBFD)/lib,$(LIBOPCODES)/lib,$(LIBIBERTY)/lib$(GCCLIBS)
+
+nm.exe: $(NMOBJS) $(LIBS)
+       link/exe=$@ $(NMOBJS),$(LIBBFD)/lib,$(LIBOPCODES)/lib,$(LIBIBERTY)/lib$(GCCLIBS)
+
+version.obj: version.c
+       $(CC) $(CFLAGS)/define=(VERSION="""960408""") $<
+
+objdump.obj: objdump.c
+       $(CC) $(CFLAGS) $<
+
+config.h: config.h-vms
+       $(CP) $< $@