From: Ian Lance Taylor Date: Tue, 18 Jun 1996 19:10:39 +0000 (+0000) Subject: Tue Jun 18 15:03:44 1996 Klaus Kaempf X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e10a4fc492bc1837967af0feadd6ff671bce1035;p=binutils-gdb.git Tue Jun 18 15:03:44 1996 Klaus Kaempf * config.h-vms, makefile.vms: New files. --- diff --git a/binutils/.Sanitize b/binutils/.Sanitize index bd1a78f7c5c..db3ba8a94ff 100644 --- a/binutils/.Sanitize +++ b/binutils/.Sanitize @@ -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 diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 9c46f666aee..fa9be773d99 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,7 @@ +Tue Jun 18 15:03:44 1996 Klaus Kaempf + + * config.h-vms, makefile.vms: New files. + Mon Jun 17 09:47:31 1996 Ian Lance Taylor * 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 index 00000000000..5c42f6b4a40 --- /dev/null +++ b/binutils/config.h-vms @@ -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 ? */ +#define HAVE_TIME_T_IN_TIME_H 1 + +/* Is the type time_t defined in ? */ +#define HAVE_TIME_T_IN_TYPES_H 1 + +/* Does define struct utimbuf? */ +#define HAVE_GOOD_UTIME_H 1 + +/* Whether fprintf must be declared even if 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 header file. */ +#define HAVE_FCNTL_H 1 + +/* Define if you have the header file. */ +#define HAVE_STDLIB_H 1 + +/* Define if you have the header file. */ +#define HAVE_STRING_H 1 + +/* Define if you have the header file. */ +#define HAVE_STRINGS_H 1 + +/* Define if you have the header file. */ +#define HAVE_SYS_FILE_H 1 + +/* Define if you have the 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 index 00000000000..6a53f159545 --- /dev/null +++ b/binutils/makefile.vms @@ -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) $< $@