PR gprof/13325
[binutils.git] / binutils / makefile.vms
blob4dfac68273b89f915bdaa1d0d4bc3eec34ca84c7
2 # Makefile for binutils under openVMS (Alpha and Itanium)
4 # For use with gnu-make for vms
6 # Created by Klaus Kaempf, kkaempf@rmi.de
10 DEFS=/define=("OBJDUMP_PRIVATE_VECTORS=")
11 OPT=/noopt/debug
12 CFLAGS=$(OPT)/include=([],"../include",[-.bfd])$(DEFS)\
13  /name=(as_is,shortened)\
14  /prefix=(all,except=("getopt","optarg","optopt","optind","opterr"))\
15  /warns=(info=(ptrmismatch,shiftcount))
17 LIBBFD = [-.bfd]libbfd.olb/lib
18 LIBBFD_DEP = [-.bfd]libbfd.olb
19 LIBIBERTY_DEP = [-.libiberty]libiberty.olb
20 LIBIBERTY = [-.libiberty]libiberty.olb/lib
21 OPCODES_DEP = [-.opcodes]libopcodes.olb
22 OPCODES = [-.opcodes]libopcodes.olb/lib
24 DEBUG_OBJS = rddbg.obj,debug.obj,stabs.obj,ieee.obj,rdcoff.obj,dwarf.obj,\
25   elfcomm.obj
27 BULIBS = bucomm.obj,version.obj,filemode.obj
29 ADDL_DEPS = $(BULIBS),$(LIBBFD_DEP),$(LIBIBERTY_DEP)
30 ADDL_LIBS = $(BULIBS),$(LIBBFD),$(LIBIBERTY)
32 SIZEOBJS = $(ADDL_DEPS),size.obj
34 STRINGSOBJS = $(ADDL_DEPS),strings.obj
36 NMOBJS = $(ADDL_DEPS),nm.obj
38 ADDR2LINEOBJS = $(ADDL_DEPS),addr2line.obj
40 OBJDUMPOBJS = objdump.obj,prdbg.obj,$(DEBUG_OBJS),$(ADDL_DEPS),$(OPCODES_DEP)
42 READELFOBJS = readelf.obj,dwarf.obj,unwind-ia64.obj,$(ADDL_DEPS)
44 all: config.h size.exe strings.exe objdump.exe nm.exe addr2line.exe
46 size.exe: $(SIZEOBJS)
47         link/exe=$@ size.obj,$(ADDL_LIBS)
49 strings.exe: $(STRINGSOBJS)
50         link/exe=$@ strings.obj,$(ADDL_LIBS)
52 nm.exe: $(NMOBJS)
53         link/exe=$@ nm.obj,$(ADDL_LIBS)
55 addr2line.exe: $(ADDR2LINEOBJS)
56         link/exe=$@ addr2line.obj,$(ADDL_LIBS)
58 objdump.exe: $(OBJDUMPOBJS)
59         link/exe=$@ objdump.obj,prdbg.obj,$(DEBUG_OBJS),$(ADDL_LIBS),$(OPCODES)
61 readelf.exe: $(READELFOBJS)
62         link/exe=$@ readelf.obj,dwarf.obj,unwind-ia64.obj,$(ADDL_LIBS)
64 config.h:
65         $$ @configure
66         $(MAKE) -f makefile.vms "CC=$(CC)"
68 clean:
69         $$ purge
70         $(RM) *.obj;
71         $(RM) *.exe;
73 distclean: clean
74         $(RM) config.h;
75         $(RM) makefile.vms;