aboutsummaryrefslogtreecommitdiff
path: root/binutils/makefile.vms
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1996-08-08 16:29:04 +0000
committerIan Lance Taylor <ian@airs.com>1996-08-08 16:29:04 +0000
commit2a774ae9a68bc2892061edad6e444f86eef2a8dc (patch)
tree2d9c331c68d2eab6ef22990bc6482643c36f2583 /binutils/makefile.vms
parent8612a388f71b8a34a4f118a1f9e5ca660342d7cf (diff)
downloadgdb-2a774ae9a68bc2892061edad6e444f86eef2a8dc.zip
gdb-2a774ae9a68bc2892061edad6e444f86eef2a8dc.tar.gz
gdb-2a774ae9a68bc2892061edad6e444f86eef2a8dc.tar.bz2
Thu Aug 8 12:27:52 1996 Klaus Kaempf <kkaempf@progis.de>
* makefile.vms: Add better support for DEC C compilation. Add new macros as in Makefile.in.
Diffstat (limited to 'binutils/makefile.vms')
-rw-r--r--binutils/makefile.vms57
1 files changed, 34 insertions, 23 deletions
diff --git a/binutils/makefile.vms b/binutils/makefile.vms
index 6a53f15..a3b0d60 100644
--- a/binutils/makefile.vms
+++ b/binutils/makefile.vms
@@ -12,45 +12,56 @@ 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
+LIBS=,GNU_CC:[000000]LIBGCC2/lib,GNU_CC:[000000]LIBGCCLIB/lib,sys$$library:vaxcrtl.olb/lib,GNU_CC:[000000]crt0.obj
else
-CFLAGS=/noopt/debug/include=([],[-.include],[-.bfd])$(DEFS)
-DEFS=/define=(\
+CFLAGS=/noopt/debug/include=([],[-.include],[-.bfd])$(DEFS)/warnings=disable=(missingreturn,implicitfunc)
+DEFS=/define=("const=","unlink=remove",\
"_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=
+LIBS=,sys$$library:vaxcrtl.olb/lib
endif
-LIBBFD = [-.bfd]libbfd.olb
-LIBIBERTY = [-.libiberty]libiberty.olb
-LIBOPCODES = [-.opcodes]libopcodes.olb
+BFDLIB = [-.bfd]libbfd.olb/lib
+BFDLIB_DEP = [-.bfd]libbfd.olb
+LIBIBERTY_DEP = [-.libiberty]libiberty.olb
+LIBIBERTY = [-.libiberty]libiberty.olb/lib
+OPCODES_DEP = [-.opcodes]libopcodes.olb
+OPCODES = [-.opcodes]libopcodes.olb/lib
-LIBS = $(LIBBFD) $(LIBOPCODES) $(LIBIBERTY)
+DEBUG_OBJS = rddbg.obj,debug.obj,stabs.obj,ieee.obj,rdcoff.obj
-DEBUG_OBJS = rddbg.obj,debug.obj,stabs.obj,ieee.obj,prdbg.obj
+WRITE_DEBUG_OBJS = $(DEBUG_OBJS),wrstabs.obj
-SIZEOBJS = bucomm.obj,version.obj,filemode.obj,size.obj
+BULIBS = []bucomm.obj,version.obj,filemode.obj
-OBJDUMPOBJS = bucomm.obj,version.obj,filemode.obj,objdump.obj
+ADDL_DEPS = $(BULIBS),$(BFDLIB_DEP),$(LIBIBERTY_DEP)
+ADDL_LIBS = $(BULIBS),$(BFDLIB),$(LIBIBERTY)
-NMOBJS = bucomm.obj,version.obj,filemode.obj,nm.obj
+SIZEOBJS = $(ADDL_DEPS),size.obj
-all: config.h size.exe objdump.exe nm.exe
+STRINGSOBJS = $(ADDL_DEPS),strings.obj
-size.exe: $(SIZEOBJS) $(LIBS)
- link/exe=$@ $(SIZEOBJS),$(LIBBFD)/lib,$(LIBOPCODES)/lib,$(LIBIBERTY)/lib$(GCCLIBS)
+NMOBJS = $(ADDL_DEPS),nm.obj
-objdump.exe: $(DEBUG_OBJS) $(OBJDUMPOBJS) $(LIBS)
- link/exe=$@ $(OBJDUMPOBJS),$(DEBUG_OBJS),$(LIBBFD)/lib,$(LIBOPCODES)/lib,$(LIBIBERTY)/lib$(GCCLIBS)
+OBJDUMPOBJS = $(ADDL_DEPS),objdump.obj,prdbg.obj,$(DEBUG_OBJS),$(OPCODES_DEP)
-nm.exe: $(NMOBJS) $(LIBS)
- link/exe=$@ $(NMOBJS),$(LIBBFD)/lib,$(LIBOPCODES)/lib,$(LIBIBERTY)/lib$(GCCLIBS)
+all: config.h size.exe strings.exe objdump.exe nm.exe
-version.obj: version.c
- $(CC) $(CFLAGS)/define=(VERSION="""960408""") $<
+size.exe: $(SIZEOBJS)
+ link/exe=$@ size.obj,$(ADDL_LIBS)$(LIBS)
+
+strings.exe: $(STRINGSOBJS)
+ link/exe=$@ strings.obj,$(ADDL_LIBS)$(LIBS)
+
+nm.exe: $(NMOBJS)
+ link/exe=$@ nm.obj,$(ADDL_LIBS)$(LIBS)
-objdump.obj: objdump.c
- $(CC) $(CFLAGS) $<
+objdump.exe: $(OBJDUMPOBJS)
+ link/exe=$@ objdump.obj,prdbg.obj,$(DEBUG_OBJS),$(BFDLIB),$(OPCODES),$(ADDL_LIBS)$(LIBS)
+
+
+version.obj: version.c
+ $(CC) $(CFLAGS)/define=(VERSION="""960723""") $<
config.h: config.h-vms
$(CP) $< $@