2011-01-26 Kai Tietz <kai.tietz@onevision.com>
[deliverable/binutils-gdb.git] / binutils / makefile.vms
1 #
2 # Makefile for binutils under openVMS (Alpha and Vax)
3 #
4 # For use with gnu-make for vms
5 #
6 # Created by Klaus K"ampf, kkaempf@rmi.de
7 #
8 #
9
10 ifeq ($(CC),gcc)
11 DEFS=
12 CFLAGS=/include=([],[-.include],[-.bfd])$(DEFS)
13 LIBS=,gnu_cc_library:libgcc/lib,sys$$library:vaxcrtl.olb/lib,gnu_cc_library:crt0.obj
14 else
15 DEFS=
16 OPT=/noopt/debug
17 CFLAGS=$(OPT)/include=([],"../include",[-.bfd])$(DEFS)\
18 /name=(as_is,shortened)\
19 /prefix=(all,except=("getopt","optarg","optopt","optind","opterr"))\
20 /warns=(info=(ptrmismatch,shiftcount))
21 endif
22
23 LIBBFD = [-.bfd]libbfd.olb/lib
24 LIBBFD_DEP = [-.bfd]libbfd.olb
25 LIBIBERTY_DEP = [-.libiberty]libiberty.olb
26 LIBIBERTY = [-.libiberty]libiberty.olb/lib
27 OPCODES_DEP = [-.opcodes]libopcodes.olb
28 OPCODES = [-.opcodes]libopcodes.olb/lib
29
30 DEBUG_OBJS = rddbg.obj,debug.obj,stabs.obj,ieee.obj,rdcoff.obj,dwarf.obj
31
32 BULIBS = bucomm.obj,version.obj,filemode.obj
33
34 ADDL_DEPS = $(BULIBS),$(LIBBFD_DEP),$(LIBIBERTY_DEP)
35 ADDL_LIBS = $(BULIBS),$(LIBBFD),$(LIBIBERTY)
36
37 SIZEOBJS = $(ADDL_DEPS),size.obj
38
39 STRINGSOBJS = $(ADDL_DEPS),strings.obj
40
41 NMOBJS = $(ADDL_DEPS),nm.obj
42
43 ADDR2LINEOBJS = $(ADDL_DEPS),addr2line.obj
44
45 OBJDUMPOBJS = objdump.obj,prdbg.obj,$(DEBUG_OBJS),$(ADDL_DEPS),$(OPCODES_DEP)
46
47 all: config.h size.exe strings.exe objdump.exe nm.exe addr2line.exe
48
49 size.exe: $(SIZEOBJS)
50 link/exe=$@ size.obj,$(ADDL_LIBS)
51
52 strings.exe: $(STRINGSOBJS)
53 link/exe=$@ strings.obj,$(ADDL_LIBS)
54
55 nm.exe: $(NMOBJS)
56 link/exe=$@ nm.obj,$(ADDL_LIBS)
57
58 addr2line.exe: $(ADDR2LINEOBJS)
59 link/exe=$@ addr2line.obj,$(ADDL_LIBS)
60
61 objdump.exe: $(OBJDUMPOBJS)
62 link/exe=$@ objdump.obj,prdbg.obj,$(DEBUG_OBJS),$(ADDL_LIBS),$(LIBBFD),$(OPCODES)
63
64 config.h:
65 $$ @configure
66 $(MAKE) -f makefile.vms "CC=$(CC)"
67
68 clean:
69 $$ purge
70 $(RM) *.obj;
71 $(RM) *.exe;
72
73 distclean: clean
74 $(RM) config.h;
75 $(RM) makefile.vms;
This page took 0.046676 seconds and 4 git commands to generate.