1999-05-03 15:29:11 +08:00
|
|
|
#
|
2011-06-08 20:40:28 +08:00
|
|
|
# Makefile for binutils under openVMS (Alpha and Itanium)
|
1999-05-03 15:29:11 +08:00
|
|
|
#
|
|
|
|
# For use with gnu-make for vms
|
|
|
|
#
|
2011-06-08 20:40:28 +08:00
|
|
|
# Created by Klaus Kaempf, kkaempf@rmi.de
|
1999-05-03 15:29:11 +08:00
|
|
|
#
|
2015-01-01 22:15:26 +08:00
|
|
|
# Copyright (C) 2012-2015 Free Software Foundation, Inc.
|
2012-12-18 00:56:12 +08:00
|
|
|
#
|
|
|
|
# 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/>.
|
1999-05-03 15:29:11 +08:00
|
|
|
#
|
|
|
|
|
2011-06-08 20:40:28 +08:00
|
|
|
DEFS=/define=("OBJDUMP_PRIVATE_VECTORS=")
|
2009-05-25 21:03:24 +08:00
|
|
|
OPT=/noopt/debug
|
2009-09-01 21:16:53 +08:00
|
|
|
CFLAGS=$(OPT)/include=([],"../include",[-.bfd])$(DEFS)\
|
2009-05-25 21:03:24 +08:00
|
|
|
/name=(as_is,shortened)\
|
2010-01-12 18:16:50 +08:00
|
|
|
/prefix=(all,except=("getopt","optarg","optopt","optind","opterr"))\
|
|
|
|
/warns=(info=(ptrmismatch,shiftcount))
|
1999-05-03 15:29:11 +08:00
|
|
|
|
2009-09-01 21:16:53 +08:00
|
|
|
LIBBFD = [-.bfd]libbfd.olb/lib
|
|
|
|
LIBBFD_DEP = [-.bfd]libbfd.olb
|
1999-05-03 15:29:11 +08:00
|
|
|
LIBIBERTY_DEP = [-.libiberty]libiberty.olb
|
|
|
|
LIBIBERTY = [-.libiberty]libiberty.olb/lib
|
|
|
|
OPCODES_DEP = [-.opcodes]libopcodes.olb
|
|
|
|
OPCODES = [-.opcodes]libopcodes.olb/lib
|
|
|
|
|
2011-03-31 19:08:41 +08:00
|
|
|
DEBUG_OBJS = rddbg.obj,debug.obj,stabs.obj,ieee.obj,rdcoff.obj,dwarf.obj,\
|
|
|
|
elfcomm.obj
|
1999-05-03 15:29:11 +08:00
|
|
|
|
2009-09-01 21:16:53 +08:00
|
|
|
BULIBS = bucomm.obj,version.obj,filemode.obj
|
1999-05-03 15:29:11 +08:00
|
|
|
|
2009-09-01 21:16:53 +08:00
|
|
|
ADDL_DEPS = $(BULIBS),$(LIBBFD_DEP),$(LIBIBERTY_DEP)
|
|
|
|
ADDL_LIBS = $(BULIBS),$(LIBBFD),$(LIBIBERTY)
|
1999-05-03 15:29:11 +08:00
|
|
|
|
|
|
|
SIZEOBJS = $(ADDL_DEPS),size.obj
|
|
|
|
|
|
|
|
STRINGSOBJS = $(ADDL_DEPS),strings.obj
|
|
|
|
|
|
|
|
NMOBJS = $(ADDL_DEPS),nm.obj
|
|
|
|
|
2009-05-25 21:03:24 +08:00
|
|
|
ADDR2LINEOBJS = $(ADDL_DEPS),addr2line.obj
|
|
|
|
|
2009-09-02 22:14:49 +08:00
|
|
|
OBJDUMPOBJS = objdump.obj,prdbg.obj,$(DEBUG_OBJS),$(ADDL_DEPS),$(OPCODES_DEP)
|
1999-05-03 15:29:11 +08:00
|
|
|
|
2011-03-31 22:15:31 +08:00
|
|
|
READELFOBJS = readelf.obj,dwarf.obj,unwind-ia64.obj,$(ADDL_DEPS)
|
|
|
|
|
2009-05-25 21:03:24 +08:00
|
|
|
all: config.h size.exe strings.exe objdump.exe nm.exe addr2line.exe
|
1999-05-03 15:29:11 +08:00
|
|
|
|
|
|
|
size.exe: $(SIZEOBJS)
|
2009-09-01 21:16:53 +08:00
|
|
|
link/exe=$@ size.obj,$(ADDL_LIBS)
|
1999-05-03 15:29:11 +08:00
|
|
|
|
|
|
|
strings.exe: $(STRINGSOBJS)
|
2009-09-01 21:16:53 +08:00
|
|
|
link/exe=$@ strings.obj,$(ADDL_LIBS)
|
1999-05-03 15:29:11 +08:00
|
|
|
|
|
|
|
nm.exe: $(NMOBJS)
|
2009-09-01 21:16:53 +08:00
|
|
|
link/exe=$@ nm.obj,$(ADDL_LIBS)
|
1999-05-03 15:29:11 +08:00
|
|
|
|
2009-05-25 21:03:24 +08:00
|
|
|
addr2line.exe: $(ADDR2LINEOBJS)
|
2009-09-01 21:16:53 +08:00
|
|
|
link/exe=$@ addr2line.obj,$(ADDL_LIBS)
|
2009-05-25 21:03:24 +08:00
|
|
|
|
1999-05-03 15:29:11 +08:00
|
|
|
objdump.exe: $(OBJDUMPOBJS)
|
2011-03-31 22:15:31 +08:00
|
|
|
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)
|
1999-05-03 15:29:11 +08:00
|
|
|
|
|
|
|
config.h:
|
|
|
|
$$ @configure
|
|
|
|
$(MAKE) -f makefile.vms "CC=$(CC)"
|
|
|
|
|
|
|
|
clean:
|
|
|
|
$$ purge
|
|
|
|
$(RM) *.obj;
|
|
|
|
$(RM) *.exe;
|
|
|
|
|
|
|
|
distclean: clean
|
|
|
|
$(RM) config.h;
|
|
|
|
$(RM) makefile.vms;
|