]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - binutils/makefile.vms-in
* binutils-all/bfin/unknown-mode.s: New test.
[thirdparty/binutils-gdb.git] / binutils / makefile.vms-in
CommitLineData
252b5132
RH
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
252b5132 10ifeq ($(CC),gcc)
c5ac1056 11DEFS=
252b5132 12CFLAGS=/include=([],[-.include],[-.bfd])$(DEFS)
252b5132
RH
13LIBS=,gnu_cc_library:libgcc/lib,sys$$library:vaxcrtl.olb/lib,gnu_cc_library:crt0.obj
14else
c5ac1056
TG
15DEFS=
16OPT=/noopt/debug
e06ae0d4 17CFLAGS=$(OPT)/include=([],"../include",[-.bfd])$(DEFS)\
c5ac1056
TG
18 /name=(as_is,shortened)\
19 /prefix=(all,except=("getopt","optarg","optopt","optind","opterr"))
252b5132
RH
20endif
21
e06ae0d4
TG
22LIBBFD = [-.bfd]libbfd.olb/lib
23LIBBFD_DEP = [-.bfd]libbfd.olb
252b5132
RH
24LIBIBERTY_DEP = [-.libiberty]libiberty.olb
25LIBIBERTY = [-.libiberty]libiberty.olb/lib
26OPCODES_DEP = [-.opcodes]libopcodes.olb
27OPCODES = [-.opcodes]libopcodes.olb/lib
28
d387240a 29DEBUG_OBJS = rddbg.obj,debug.obj,stabs.obj,ieee.obj,rdcoff.obj,dwarf.obj
252b5132
RH
30
31WRITE_DEBUG_OBJS = $(DEBUG_OBJS),wrstabs.obj
32
e06ae0d4 33BULIBS = bucomm.obj,version.obj,filemode.obj
252b5132 34
e06ae0d4
TG
35ADDL_DEPS = $(BULIBS),$(LIBBFD_DEP),$(LIBIBERTY_DEP)
36ADDL_LIBS = $(BULIBS),$(LIBBFD),$(LIBIBERTY)
252b5132
RH
37
38SIZEOBJS = $(ADDL_DEPS),size.obj
39
40STRINGSOBJS = $(ADDL_DEPS),strings.obj
41
42NMOBJS = $(ADDL_DEPS),nm.obj
43
c5ac1056
TG
44ADDR2LINEOBJS = $(ADDL_DEPS),addr2line.obj
45
252b5132
RH
46OBJDUMPOBJS = $(ADDL_DEPS),objdump.obj,prdbg.obj,$(DEBUG_OBJS),$(OPCODES_DEP)
47
c5ac1056 48all: config.h size.exe strings.exe objdump.exe nm.exe addr2line.exe
252b5132
RH
49
50size.exe: $(SIZEOBJS)
e06ae0d4 51 link/exe=$@ size.obj,$(ADDL_LIBS)
252b5132
RH
52
53strings.exe: $(STRINGSOBJS)
e06ae0d4 54 link/exe=$@ strings.obj,$(ADDL_LIBS)
252b5132
RH
55
56nm.exe: $(NMOBJS)
e06ae0d4 57 link/exe=$@ nm.obj,$(ADDL_LIBS)
252b5132 58
c5ac1056 59addr2line.exe: $(ADDR2LINEOBJS)
e06ae0d4 60 link/exe=$@ addr2line.obj,$(ADDL_LIBS)
c5ac1056 61
252b5132 62objdump.exe: $(OBJDUMPOBJS)
e06ae0d4 63 link/exe=$@ objdump.obj,prdbg.obj,$(DEBUG_OBJS),$(LIBBFD),$(OPCODES),$(ADDL_LIBS)
252b5132 64
252b5132
RH
65config.h:
66 $$ @configure
67 $(MAKE) -f makefile.vms "CC=$(CC)"
68
252b5132
RH
69clean:
70 $$ purge
71 $(RM) *.obj;
72 $(RM) *.exe;
73
74distclean: clean
75 $(RM) config.h;
76 $(RM) makefile.vms;