[GAS, ARM, 2/16] Add CLI extension support for Armv8.1-M Mainline
[binutils-gdb.git] / binutils / makefile.vms
blob2d968964896bda83e6988e2f937052f237e9516a
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
8 #   Copyright (C) 2012-2019 Free Software Foundation, Inc.
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.
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.
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/>.
25 DEFS=/define=("OBJDUMP_PRIVATE_VECTORS=")
26 OPT=/noopt/debug
27 CFLAGS=$(OPT)/include=([],"../include",[-.bfd])$(DEFS)\
28  /name=(as_is,shortened)\
29  /prefix=(all,except=("getopt","optarg","optopt","optind","opterr"))\
30  /warns=(info=(ptrmismatch,shiftcount))
32 LIBBFD = [-.bfd]libbfd.olb/lib
33 LIBBFD_DEP = [-.bfd]libbfd.olb
34 LIBIBERTY_DEP = [-.libiberty]libiberty.olb
35 LIBIBERTY = [-.libiberty]libiberty.olb/lib
36 OPCODES_DEP = [-.opcodes]libopcodes.olb
37 OPCODES = [-.opcodes]libopcodes.olb/lib
39 DEBUG_OBJS = rddbg.obj,debug.obj,stabs.obj,rdcoff.obj,dwarf.obj,\
40   elfcomm.obj
42 BULIBS = bucomm.obj,version.obj,filemode.obj
44 ADDL_DEPS = $(BULIBS),$(LIBBFD_DEP),$(LIBIBERTY_DEP)
45 ADDL_LIBS = $(BULIBS),$(LIBBFD),$(LIBIBERTY)
47 SIZEOBJS = $(ADDL_DEPS),size.obj
49 STRINGSOBJS = $(ADDL_DEPS),strings.obj
51 NMOBJS = $(ADDL_DEPS),nm.obj
53 ADDR2LINEOBJS = $(ADDL_DEPS),addr2line.obj
55 OBJDUMPOBJS = objdump.obj,prdbg.obj,$(DEBUG_OBJS),$(ADDL_DEPS),$(OPCODES_DEP)
57 READELFOBJS = readelf.obj,dwarf.obj,unwind-ia64.obj,$(ADDL_DEPS)
59 all: config.h size.exe strings.exe objdump.exe nm.exe addr2line.exe
61 size.exe: $(SIZEOBJS)
62         link/exe=$@ size.obj,$(ADDL_LIBS)
64 strings.exe: $(STRINGSOBJS)
65         link/exe=$@ strings.obj,$(ADDL_LIBS)
67 nm.exe: $(NMOBJS)
68         link/exe=$@ nm.obj,$(ADDL_LIBS)
70 addr2line.exe: $(ADDR2LINEOBJS)
71         link/exe=$@ addr2line.obj,$(ADDL_LIBS)
73 objdump.exe: $(OBJDUMPOBJS)
74         link/exe=$@ objdump.obj,prdbg.obj,$(DEBUG_OBJS),$(ADDL_LIBS),$(OPCODES)
76 readelf.exe: $(READELFOBJS)
77         link/exe=$@ readelf.obj,dwarf.obj,unwind-ia64.obj,$(ADDL_LIBS)
79 config.h:
80         $$ @configure
81         $(MAKE) -f makefile.vms "CC=$(CC)"
83 clean:
84         $$ purge
85         $(RM) *.obj;
86         $(RM) *.exe;
88 distclean: clean
89         $(RM) config.h;
90         $(RM) makefile.vms;