* COP2 testing changes.
[binutils-gdb.git] / binutils / makefile.vms
blob5e9b2df7629467a16e9ad1e7eb13cc5b0f540533
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
11 VERSION=
13 TARGET=""evax-alpha""
15 ifeq ($(CC),gcc)
16 CFLAGS=/include=([],[-.include],[-.bfd])$(DEFS)
17 DEFS=/define=("TARGET=$(TARGET)")
18 LIBS=,GNU:[000000]libgcc/lib,sys$$library:vaxcrtl.olb/lib,GNU:[000000]crt0.obj
19 else
20 CFLAGS=/noopt/debug/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
26 endif
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
54 size.exe: $(SIZEOBJS)
55         link/exe=$@ size.obj,$(ADDL_LIBS)$(LIBS)
57 strings.exe: $(STRINGSOBJS)
58         link/exe=$@ strings.obj,$(ADDL_LIBS)$(LIBS)
60 nm.exe: $(NMOBJS)
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)""") $<
70 config.h:
71         $$ @configure
72         $(MAKE) -f makefile.vms
74 [-.bfd]libbfd.olb:
75         $(CD) [-.bfd]
76         $(MAKE) -f makefile.vms
77         $(CD) [-.binutils]
79 [-.libiberty]libiberty.olb:
80         $(CD) [-.libiberty]
81         $(MAKE) -f makefile.vms
82         $(CD) [-.binutils]
84 [-.opcodes]libopcodes.olb:
85         $(CD) [-.opcodes]
86         $(MAKE) -f makefile.vms
87         $(CD) [-.binutils]
89 clean:
90         $$ purge
91         $(RM) *.obj;
92         $(RM) *.exe;
93         $(RM) config.h;