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=")
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,\
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
47 link/exe=$@ size.obj,$(ADDL_LIBS)
49 strings.exe: $(STRINGSOBJS)
50 link/exe=$@ strings.obj,$(ADDL_LIBS)
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)
66 $(MAKE) -f makefile.vms "CC=$(CC)"