makefile.vms 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. #
  2. # Makefile for libopcodes under openVMS
  3. #
  4. # For use with gnu-make for vms
  5. #
  6. # Created by Klaus K"ampf, kkaempf@progis.de
  7. #
  8. # Copyright (C) 2012-2022 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. ifeq ($(ARCH),IA64)
  25. OBJS=ia64-dis.obj,ia64-opc.obj
  26. ARCHDEF="ARCH_ia64"
  27. endif
  28. ifeq ($(ARCH),ALPHA)
  29. OBJS=alpha-dis.obj,alpha-opc.obj
  30. ARCHDEF="ARCH_alpha"
  31. endif
  32. ifeq ($(ARCH),VAX)
  33. OBJS=vax-dis.obj
  34. ARCHDEF="ARCH_vax"
  35. endif
  36. OBJS:=$(OBJS),dis-init.obj,dis-buf.obj,disassemble.obj
  37. ifeq ($(CC),gcc)
  38. DEFS=/define=($(ARCHDEF))
  39. CFLAGS=/include=([],[-.include],[-.bfd])$(DEFS)
  40. else
  41. DEFS=/define=($(ARCHDEF))
  42. OPT=/noopt/debug
  43. CFLAGS=$(OPT)/include=([],"../include",[-.bfd])$(DEFS)\
  44. /name=(as_is,shortened)
  45. endif
  46. libopcodes.olb: $(OBJS)
  47. purge
  48. lib/create libopcodes *.obj
  49. clean:
  50. $$ purge
  51. $(RM) *.obj;
  52. $(RM) libopcodes.olb;