Commit | Line | Data |
---|---|---|
03496c49 ILT |
1 | # |
2 | # Makefile for libopcodes under openVMS/AXP | |
3 | # | |
4 | # For use with gnu-make for vms | |
5 | # | |
6 | # Created by Klaus Kaempf, kkaempf@progis.de | |
7 | # | |
8 | # | |
9 | CC=gcc | |
10 | ||
11 | OBJS=alpha-dis.obj,dis-buf.obj,disassemble.obj | |
12 | ||
13 | ifeq ($(CC),gcc) | |
14 | CFLAGS=/include=([],[-.include],[-.bfd])$(DEFS) | |
15 | DEFS=/define=(VMS_ASMCODE=1) | |
16 | else | |
17 | CFLAGS=/noopt/debug/include=([],[-.include],[-.bfd])$(DEFS) | |
18 | DEFS=/define=(VMS_ASMCODE=1) | |
19 | endif | |
20 | ||
21 | libopcodes.olb: sysdep.h $(OBJS) | |
22 | purge | |
23 | lib/create libopcodes *.obj | |
24 | ||
25 | disassemble.obj: disassemble.c | |
26 | $(CC)$(CFLAGS)/define=("ARCH_alpha") $< | |
27 | ||
28 | alpha-dis.obj: alpha-dis.c alpha-opc.h | |
29 | ||
30 | sysdep.h: [-.bfd.hosts]alphavms.h | |
31 | $(CP) $< $@ |