aboutsummaryrefslogtreecommitdiff
path: root/binutils/makefile.vms
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1996-06-18 19:10:39 +0000
committerIan Lance Taylor <ian@airs.com>1996-06-18 19:10:39 +0000
commite10a4fc492bc1837967af0feadd6ff671bce1035 (patch)
tree3467ba89f3f000bd16614de1d1ad4ea31910e525 /binutils/makefile.vms
parentc3d8e071bfe11043d6d1398377f6eadc22cf0679 (diff)
downloadgdb-e10a4fc492bc1837967af0feadd6ff671bce1035.zip
gdb-e10a4fc492bc1837967af0feadd6ff671bce1035.tar.gz
gdb-e10a4fc492bc1837967af0feadd6ff671bce1035.tar.bz2
Tue Jun 18 15:03:44 1996 Klaus Kaempf <kkaempf@progis.de>
* config.h-vms, makefile.vms: New files.
Diffstat (limited to 'binutils/makefile.vms')
-rw-r--r--binutils/makefile.vms56
1 files changed, 56 insertions, 0 deletions
diff --git a/binutils/makefile.vms b/binutils/makefile.vms
new file mode 100644
index 0000000..6a53f15
--- /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) $< $@