2 # Makefile for binutils under openVMS/Alpha
4 # For use with gnu-make for vms
6 # Created by Klaus K"ampf, kkaempf@progis.de
10 # Distribution version, filled in by configure.com
16 CFLAGS=/include=([],[-.include],[-.bfd])$(DEFS)
17 DEFS=/define=("TARGET=$(TARGET)")
18 LIBS=,gnu_cc_library:libgcc/lib,sys$$library:vaxcrtl.olb/lib,gnu_cc_library:crt0.obj
20 CFLAGS=/noopt/nodebug/include=([],[-.include],[-.bfd])$(DEFS)/warnings=disable=(missingreturn,implicitfunc)
21 DEFS=/define=("TARGET=$(TARGET)",\
22 "const=","unlink=remove",\
23 "_bfd_generic_get_section_contents_in_window"="_bfd_generic_get_win_section_cont",\
24 "_bfd_elf_section_from_bfd_section"="_bfd_elf_sec_from_bfd_sec")
25 LIBS=,sys$$library:vaxcrtl.olb/lib
28 BFDLIB = [-.bfd]libbfd.olb/lib
29 BFDLIB_DEP = [-.bfd]libbfd.olb
30 LIBIBERTY_DEP = [-.libiberty]libiberty.olb
31 LIBIBERTY = [-.libiberty]libiberty.olb/lib
32 OPCODES_DEP = [-.opcodes]libopcodes.olb
33 OPCODES = [-.opcodes]libopcodes.olb/lib
35 DEBUG_OBJS = rddbg.obj,debug.obj,stabs.obj,ieee.obj,rdcoff.obj
37 WRITE_DEBUG_OBJS = $(DEBUG_OBJS),wrstabs.obj
39 BULIBS = []bucomm.obj,version.obj,filemode.obj
41 ADDL_DEPS = $(BULIBS),$(BFDLIB_DEP),$(LIBIBERTY_DEP)
42 ADDL_LIBS = $(BULIBS),$(BFDLIB),$(LIBIBERTY)
44 SIZEOBJS = $(ADDL_DEPS),size.obj
46 STRINGSOBJS = $(ADDL_DEPS),strings.obj
48 NMOBJS = $(ADDL_DEPS),nm.obj
50 OBJDUMPOBJS = $(ADDL_DEPS),objdump.obj,prdbg.obj,$(DEBUG_OBJS),$(OPCODES_DEP)
52 all: config.h size.exe strings.exe objdump.exe nm.exe
55 link/exe=$@ size.obj,$(ADDL_LIBS)$(LIBS)
57 strings.exe: $(STRINGSOBJS)
58 link/exe=$@ strings.obj,$(ADDL_LIBS)$(LIBS)
61 link/exe=$@ nm.obj,$(ADDL_LIBS)$(LIBS)
63 objdump.exe: $(OBJDUMPOBJS)
64 link/exe=$@ objdump.obj,prdbg.obj,$(DEBUG_OBJS),$(BFDLIB),$(OPCODES),$(ADDL_LIBS)$(LIBS)
67 version.obj: version.c
68 $(CC) $(CFLAGS)/define=(VERSION="""$(VERSION)""") $<
72 $(MAKE) -f makefile.vms "CC=$(CC)"
76 $(MAKE) -f makefile.vms "CC=$(CC)"
79 [-.libiberty]libiberty.olb:
81 $(MAKE) -f makefile.vms "CC=$(CC)"
84 [-.opcodes]libopcodes.olb:
86 $(MAKE) -f makefile.vms "CC=$(CC)"