#
-# Makefile for binutils under openVMS (Alpha and Vax)
+# Makefile for binutils under openVMS (Alpha and Itanium)
#
# For use with gnu-make for vms
#
-# Created by Klaus K"ampf, kkaempf@rmi.de
+# Created by Klaus Kaempf, kkaempf@rmi.de
#
+# Copyright (C) 2012-2019 Free Software Foundation, Inc.
+#
+# This file is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; see the file COPYING3. If not see
+# <http://www.gnu.org/licenses/>.
#
-ifeq ($(CC),gcc)
-DEFS=
-CFLAGS=/include=([],[-.include],[-.bfd])$(DEFS)
-LIBS=,gnu_cc_library:libgcc/lib,sys$$library:vaxcrtl.olb/lib,gnu_cc_library:crt0.obj
-else
-DEFS=
+DEFS=/define=("OBJDUMP_PRIVATE_VECTORS=")
OPT=/noopt/debug
CFLAGS=$(OPT)/include=([],"../include",[-.bfd])$(DEFS)\
/name=(as_is,shortened)\
/prefix=(all,except=("getopt","optarg","optopt","optind","opterr"))\
/warns=(info=(ptrmismatch,shiftcount))
-endif
LIBBFD = [-.bfd]libbfd.olb/lib
LIBBFD_DEP = [-.bfd]libbfd.olb
OPCODES_DEP = [-.opcodes]libopcodes.olb
OPCODES = [-.opcodes]libopcodes.olb/lib
-DEBUG_OBJS = rddbg.obj,debug.obj,stabs.obj,ieee.obj,rdcoff.obj,dwarf.obj
+DEBUG_OBJS = rddbg.obj,debug.obj,stabs.obj,rdcoff.obj,dwarf.obj,\
+ elfcomm.obj
BULIBS = bucomm.obj,version.obj,filemode.obj
OBJDUMPOBJS = objdump.obj,prdbg.obj,$(DEBUG_OBJS),$(ADDL_DEPS),$(OPCODES_DEP)
+READELFOBJS = readelf.obj,dwarf.obj,unwind-ia64.obj,$(ADDL_DEPS)
+
all: config.h size.exe strings.exe objdump.exe nm.exe addr2line.exe
size.exe: $(SIZEOBJS)
link/exe=$@ addr2line.obj,$(ADDL_LIBS)
objdump.exe: $(OBJDUMPOBJS)
- link/exe=$@ objdump.obj,prdbg.obj,$(DEBUG_OBJS),$(ADDL_LIBS),$(LIBBFD),$(OPCODES)
+ link/exe=$@ objdump.obj,prdbg.obj,$(DEBUG_OBJS),$(ADDL_LIBS),$(OPCODES)
+
+readelf.exe: $(READELFOBJS)
+ link/exe=$@ readelf.obj,dwarf.obj,unwind-ia64.obj,$(ADDL_LIBS)
config.h:
$$ @configure