makefile.vms 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. #
  2. # Makefile for binutils under openVMS (Alpha and Itanium)
  3. #
  4. # For use with gnu-make for vms
  5. #
  6. # Created by Klaus Kaempf, kkaempf@rmi.de
  7. #
  8. # Copyright (C) 2012-2015 Free Software Foundation, Inc.
  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.
  14. #
  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.
  19. #
  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/>.
  23. #
  24. DEFS=/define=("OBJDUMP_PRIVATE_VECTORS=")
  25. OPT=/noopt/debug
  26. CFLAGS=$(OPT)/include=([],"../include",[-.bfd])$(DEFS)\
  27. /name=(as_is,shortened)\
  28. /prefix=(all,except=("getopt","optarg","optopt","optind","opterr"))\
  29. /warns=(info=(ptrmismatch,shiftcount))
  30. LIBBFD = [-.bfd]libbfd.olb/lib
  31. LIBBFD_DEP = [-.bfd]libbfd.olb
  32. LIBIBERTY_DEP = [-.libiberty]libiberty.olb
  33. LIBIBERTY = [-.libiberty]libiberty.olb/lib
  34. OPCODES_DEP = [-.opcodes]libopcodes.olb
  35. OPCODES = [-.opcodes]libopcodes.olb/lib
  36. DEBUG_OBJS = rddbg.obj,debug.obj,stabs.obj,ieee.obj,rdcoff.obj,dwarf.obj,\
  37. elfcomm.obj
  38. BULIBS = bucomm.obj,version.obj,filemode.obj
  39. ADDL_DEPS = $(BULIBS),$(LIBBFD_DEP),$(LIBIBERTY_DEP)
  40. ADDL_LIBS = $(BULIBS),$(LIBBFD),$(LIBIBERTY)
  41. SIZEOBJS = $(ADDL_DEPS),size.obj
  42. STRINGSOBJS = $(ADDL_DEPS),strings.obj
  43. NMOBJS = $(ADDL_DEPS),nm.obj
  44. ADDR2LINEOBJS = $(ADDL_DEPS),addr2line.obj
  45. OBJDUMPOBJS = objdump.obj,prdbg.obj,$(DEBUG_OBJS),$(ADDL_DEPS),$(OPCODES_DEP)
  46. READELFOBJS = readelf.obj,dwarf.obj,unwind-ia64.obj,$(ADDL_DEPS)
  47. all: config.h size.exe strings.exe objdump.exe nm.exe addr2line.exe
  48. size.exe: $(SIZEOBJS)
  49. link/exe=$@ size.obj,$(ADDL_LIBS)
  50. strings.exe: $(STRINGSOBJS)
  51. link/exe=$@ strings.obj,$(ADDL_LIBS)
  52. nm.exe: $(NMOBJS)
  53. link/exe=$@ nm.obj,$(ADDL_LIBS)
  54. addr2line.exe: $(ADDR2LINEOBJS)
  55. link/exe=$@ addr2line.obj,$(ADDL_LIBS)
  56. objdump.exe: $(OBJDUMPOBJS)
  57. link/exe=$@ objdump.obj,prdbg.obj,$(DEBUG_OBJS),$(ADDL_LIBS),$(OPCODES)
  58. readelf.exe: $(READELFOBJS)
  59. link/exe=$@ readelf.obj,dwarf.obj,unwind-ia64.obj,$(ADDL_LIBS)
  60. config.h:
  61. $$ @configure
  62. $(MAKE) -f makefile.vms "CC=$(CC)"
  63. clean:
  64. $$ purge
  65. $(RM) *.obj;
  66. $(RM) *.exe;
  67. distclean: clean
  68. $(RM) config.h;
  69. $(RM) makefile.vms;