aboutsummaryrefslogtreecommitdiff
path: root/opcodes/makefile.vms
blob: 5a472a752c827b505cc8a2ba5a1d23027f94ea43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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) $< $@