summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/binutils/opcodes/makefile.vms
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/usr.bin/binutils/opcodes/makefile.vms')
-rw-r--r--gnu/usr.bin/binutils/opcodes/makefile.vms31
1 files changed, 31 insertions, 0 deletions
diff --git a/gnu/usr.bin/binutils/opcodes/makefile.vms b/gnu/usr.bin/binutils/opcodes/makefile.vms
new file mode 100644
index 00000000000..160319d5ce8
--- /dev/null
+++ b/gnu/usr.bin/binutils/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,alpha-opc.obj,dis-buf.obj,disassemble.obj
+
+ifeq ($(CC),gcc)
+DEFS=/define=(OBJ_EVAX)
+CFLAGS=/include=([],[-.include],[-.bfd])$(DEFS)
+else
+DEFS=/define=(OBJ_EVAX,"const=")
+CFLAGS=/noopt/debug/include=([],[-.include],[-.bfd])$(DEFS)
+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
+
+sysdep.h: [-.bfd.hosts]alphavms.h
+ $(CP) $< $@