2000-03-28 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
[deliverable/binutils-gdb.git] / opcodes / makefile.vms
1 #
2 # Makefile for libopcodes under openVMS VAX and Alpha
3 #
4 # For use with gnu-make for vms
5 #
6 # Created by Klaus K"ampf, kkaempf@progis.de
7 #
8 #
9 ifeq ($(ARCH),alpha)
10 OBJS=alpha-dis.obj,alpha-opc.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
18
19 ifeq ($(CC),gcc)
20 DEFS=/define=($(FORMAT))
21 CFLAGS=/include=([],[-.include],[-.bfd])$(DEFS)
22 else
23 DEFS=/define=($(FORMAT),"const=")
24 CFLAGS=/noopt/debug/include=([],[-.include],[-.bfd])$(DEFS)\
25 /warnings=disable=(missingreturn,implicitfunc,longextern)
26 endif
27
28 libopcodes.olb: sysdep.h $(OBJS)
29 purge
30 lib/create libopcodes *.obj
31
32 disassemble.obj: disassemble.c
33 $(CC)$(CFLAGS)/define=($(ARCHDEF)) $<
34
35 sysdep.h: [-.bfd.hosts]$(ARCH)vms.h
36 $(CP) $< $@
37
38 clean:
39 $$ purge
40 $(RM) *.obj;
41 $(RM) sysdep.h;
42 $(RM) libopcodes.olb;
This page took 0.032314 seconds and 4 git commands to generate.