Commit | Line | Data |
---|---|---|
252b5132 | 1 | # |
516ec24d | 2 | # Makefile for binutils under openVMS (Alpha and Itanium) |
252b5132 RH |
3 | # |
4 | # For use with gnu-make for vms | |
5 | # | |
516ec24d | 6 | # Created by Klaus Kaempf, kkaempf@rmi.de |
252b5132 | 7 | # |
82704155 | 8 | # Copyright (C) 2012-2019 Free Software Foundation, Inc. |
5bf135a7 NC |
9 | # |
10 | # This file is free software; you can redistribute it and/or modify | |
11 | # it under the terms of the GNU General Public License as published by | |
12 | # the Free Software Foundation; either version 3 of the License, or | |
13 | # (at your option) any later version. | |
3aade688 | 14 | # |
5bf135a7 NC |
15 | # This program is distributed in the hope that it will be useful, |
16 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
17 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
18 | # GNU General Public License for more details. | |
3aade688 | 19 | # |
5bf135a7 NC |
20 | # You should have received a copy of the GNU General Public License |
21 | # along with this program; see the file COPYING3. If not see | |
22 | # <http://www.gnu.org/licenses/>. | |
252b5132 RH |
23 | # |
24 | ||
516ec24d | 25 | DEFS=/define=("OBJDUMP_PRIVATE_VECTORS=") |
c5ac1056 | 26 | OPT=/noopt/debug |
e06ae0d4 | 27 | CFLAGS=$(OPT)/include=([],"../include",[-.bfd])$(DEFS)\ |
c5ac1056 | 28 | /name=(as_is,shortened)\ |
6cdb8d82 TG |
29 | /prefix=(all,except=("getopt","optarg","optopt","optind","opterr"))\ |
30 | /warns=(info=(ptrmismatch,shiftcount)) | |
252b5132 | 31 | |
e06ae0d4 TG |
32 | LIBBFD = [-.bfd]libbfd.olb/lib |
33 | LIBBFD_DEP = [-.bfd]libbfd.olb | |
252b5132 RH |
34 | LIBIBERTY_DEP = [-.libiberty]libiberty.olb |
35 | LIBIBERTY = [-.libiberty]libiberty.olb/lib | |
36 | OPCODES_DEP = [-.opcodes]libopcodes.olb | |
37 | OPCODES = [-.opcodes]libopcodes.olb/lib | |
38 | ||
fdef3943 | 39 | DEBUG_OBJS = rddbg.obj,debug.obj,stabs.obj,rdcoff.obj,dwarf.obj,\ |
083faca9 | 40 | elfcomm.obj |
252b5132 | 41 | |
e06ae0d4 | 42 | BULIBS = bucomm.obj,version.obj,filemode.obj |
252b5132 | 43 | |
e06ae0d4 TG |
44 | ADDL_DEPS = $(BULIBS),$(LIBBFD_DEP),$(LIBIBERTY_DEP) |
45 | ADDL_LIBS = $(BULIBS),$(LIBBFD),$(LIBIBERTY) | |
252b5132 RH |
46 | |
47 | SIZEOBJS = $(ADDL_DEPS),size.obj | |
48 | ||
49 | STRINGSOBJS = $(ADDL_DEPS),strings.obj | |
50 | ||
51 | NMOBJS = $(ADDL_DEPS),nm.obj | |
52 | ||
c5ac1056 TG |
53 | ADDR2LINEOBJS = $(ADDL_DEPS),addr2line.obj |
54 | ||
d3408916 | 55 | OBJDUMPOBJS = objdump.obj,prdbg.obj,$(DEBUG_OBJS),$(ADDL_DEPS),$(OPCODES_DEP) |
252b5132 | 56 | |
545f57c6 TG |
57 | READELFOBJS = readelf.obj,dwarf.obj,unwind-ia64.obj,$(ADDL_DEPS) |
58 | ||
c5ac1056 | 59 | all: config.h size.exe strings.exe objdump.exe nm.exe addr2line.exe |
252b5132 RH |
60 | |
61 | size.exe: $(SIZEOBJS) | |
e06ae0d4 | 62 | link/exe=$@ size.obj,$(ADDL_LIBS) |
252b5132 RH |
63 | |
64 | strings.exe: $(STRINGSOBJS) | |
e06ae0d4 | 65 | link/exe=$@ strings.obj,$(ADDL_LIBS) |
252b5132 RH |
66 | |
67 | nm.exe: $(NMOBJS) | |
e06ae0d4 | 68 | link/exe=$@ nm.obj,$(ADDL_LIBS) |
252b5132 | 69 | |
c5ac1056 | 70 | addr2line.exe: $(ADDR2LINEOBJS) |
e06ae0d4 | 71 | link/exe=$@ addr2line.obj,$(ADDL_LIBS) |
c5ac1056 | 72 | |
252b5132 | 73 | objdump.exe: $(OBJDUMPOBJS) |
545f57c6 TG |
74 | link/exe=$@ objdump.obj,prdbg.obj,$(DEBUG_OBJS),$(ADDL_LIBS),$(OPCODES) |
75 | ||
76 | readelf.exe: $(READELFOBJS) | |
77 | link/exe=$@ readelf.obj,dwarf.obj,unwind-ia64.obj,$(ADDL_LIBS) | |
252b5132 | 78 | |
252b5132 RH |
79 | config.h: |
80 | $$ @configure | |
81 | $(MAKE) -f makefile.vms "CC=$(CC)" | |
82 | ||
252b5132 RH |
83 | clean: |
84 | $$ purge | |
85 | $(RM) *.obj; | |
86 | $(RM) *.exe; | |
87 | ||
88 | distclean: clean | |
89 | $(RM) config.h; | |
90 | $(RM) makefile.vms; |