aboutsummaryrefslogtreecommitdiff
path: root/opcodes/makefile.vms
diff options
context:
space:
mode:
Diffstat (limited to 'opcodes/makefile.vms')
-rw-r--r--opcodes/makefile.vms31
1 files changed, 31 insertions, 0 deletions
diff --git a/opcodes/makefile.vms b/opcodes/makefile.vms
new file mode 100644
index 0000000..5a472a7
--- /dev/null
+++ b/opcodes/makefile.vms
@@ -0,0 +1,31 @@
+#
+# Makefile for libopcodes under openVMS/AXP
+#
+# For use with gnu-make for vms
+#
+# Created by Klaus Kaempf, kkaempf@progis.de
+#
+#
+CC=gcc
+
+OBJS=alpha-dis.obj,dis-buf.obj,disassemble.obj
+
+ifeq ($(CC),gcc)
+CFLAGS=/include=([],[-.include],[-.bfd])$(DEFS)
+DEFS=/define=(VMS_ASMCODE=1)
+else
+CFLAGS=/noopt/debug/include=([],[-.include],[-.bfd])$(DEFS)
+DEFS=/define=(VMS_ASMCODE=1)
+endif
+
+libopcodes.olb: sysdep.h $(OBJS)
+ purge
+ lib/create libopcodes *.obj
+
+disassemble.obj: disassemble.c
+ $(CC)$(CFLAGS)/define=("ARCH_alpha") $<
+
+alpha-dis.obj: alpha-dis.c alpha-opc.h
+
+sysdep.h: [-.bfd.hosts]alphavms.h
+ $(CP) $< $@