* config.sub, config.guess: Update from upstream sources.
[binutils.git] / opcodes / makefile.vms
blob41599d9fd8484c768d3557532086c52a1b8eb5af
2 # Makefile for libopcodes under openVMS VAX and Alpha
4 # For use with gnu-make for vms
6 # Created by Klaus K"ampf, kkaempf@progis.de
9 ifeq ($(ARCH),ALPHA)
10 OBJS=alpha-dis.obj,alpha-opc.obj,dis-init.obj,dis-buf.obj,disassemble.obj
11 FORMAT=OBJ_EVAX
12 ARCHDEF="ARCH_alpha"
13 else
14 OBJS=vax-dis.obj,dis-buf.obj,disassemble.obj
15 FORMAT=OBJ_VAX
16 ARCHDEF="ARCH_vax"
17 endif
19 ifeq ($(CC),gcc)
20 DEFS=/define=($(FORMAT))
21 CFLAGS=/include=([],[-.include],[-.bfd])$(DEFS)
22 else
23 DEFS=/define=($(FORMAT))
24 OPT=/noopt/debug
25 CFLAGS=$(OPT)/include=([],[-.include],[-.bfd])$(DEFS)\
26  /name=(as_is,shortened)
27 endif
29 libopcodes.olb: sysdep.h $(OBJS)
30         purge
31         lib/create libopcodes *.obj
33 disassemble.obj: disassemble.c
34         $(CC)$(CFLAGS)/define=($(ARCHDEF)) $<
36 sysdep.h: [-.bfd.hosts]$(ARCH)vms.h
37         $(CP) $< $@
39 clean:
40         $$ purge
41         $(RM) *.obj;
42         $(RM) sysdep.h;
43         $(RM) libopcodes.olb;