Upload Tizen:Base source
[external/binutils.git] / opcodes / makefile.vms
1 #
2 # Makefile for libopcodes under openVMS
3 #
4 # For use with gnu-make for vms
5 #
6 # Created by Klaus K"ampf, kkaempf@progis.de
7 #
8 #
9
10 ifeq ($(ARCH),IA64)
11 OBJS=ia64-dis.obj,ia64-opc.obj
12 ARCHDEF="ARCH_ia64"
13 endif
14 ifeq ($(ARCH),ALPHA)
15 OBJS=alpha-dis.obj,alpha-opc.obj
16 ARCHDEF="ARCH_alpha"
17 endif
18 ifeq ($(ARCH),VAX)
19 OBJS=vax-dis.obj
20 ARCHDEF="ARCH_vax"
21 endif
22
23 OBJS:=$(OBJS),dis-init.obj,dis-buf.obj,disassemble.obj
24
25 ifeq ($(CC),gcc)
26 DEFS=/define=($(ARCHDEF))
27 CFLAGS=/include=([],[-.include],[-.bfd])$(DEFS)
28 else
29 DEFS=/define=($(ARCHDEF))
30 OPT=/noopt/debug
31 CFLAGS=$(OPT)/include=([],"../include",[-.bfd])$(DEFS)\
32  /name=(as_is,shortened)
33 endif
34
35 libopcodes.olb: $(OBJS)
36         purge
37         lib/create libopcodes *.obj
38
39 clean:
40         $$ purge
41         $(RM) *.obj;
42         $(RM) libopcodes.olb;