* readelf.c (do_archive_index): New.
[deliverable/binutils-gdb.git] / bfd / makefile.vms
1 #
2 # Makefile for bfd library under openVMS (Alpha and Vax)
3 #
4 # For use with gnu-make for vms
5 #
6 # Created by Klaus K"ampf, kkaempf@rmi.de
7 #
8 #
9
10 CC=cc
11
12 ifeq ($(ARCH),ALPHA)
13 HOSTFILE=alphavms.h
14 TARGETOBJS = cpu-alpha.obj
15 else
16 HOSTFILE=vaxvms.h
17 TARGETOBJS = cpu-vax.obj
18 endif
19
20
21 OBJS=archive.obj,archures.obj,bfd.obj,cache.obj,coffgen.obj,corefile.obj,\
22 format.obj,init.obj,libbfd.obj,opncls.obj,reloc.obj,section.obj,syms.obj,\
23 targets.obj,hash.obj,linker.obj,elf.obj,srec.obj,binary.obj,tekhex.obj,\
24 ihex.obj,stab-syms.obj,vms.obj,vms-hdr.obj,vms-gsd.obj,vms-tir.obj,\
25 vms-misc.obj,$(TARGETOBJS)
26
27 ifeq ($(CC),gcc)
28 ifeq ($(ARCH),ALPHA)
29 DEFS=/define=(SELECT_VECS="&vms_alpha_vec",SELECT_ARCHITECTURES="&bfd_alpha_arch",\
30 "HAVE_vms_alpha_vec=1")
31 else
32 DEFS=/define=(SELECT_VECS="&vms_vax_vec",SELECT_ARCHITECTURES="&bfd_vax_arch",\
33 "HAVE_vms_vax_vec=1","VMS_DEBUG")
34 endif
35 CFLAGS=/include=([],[-.include])$(DEFS)
36 else
37 ifeq ($(ARCH),ALPHA)
38 DEFS=/define=(SELECT_VECS="&vms_alpha_vec",SELECT_ARCHITECTURES="&bfd_alpha_arch",\
39 "HAVE_vms_alpha_vec=1","unlink=remove","const=","VMS_DEBUG",)
40 else
41 DEFS=/define=(SELECT_VECS="&vms_vax_vec",SELECT_ARCHITECTURES="&bfd_vax_arch",\
42 "HAVE_vms_vax_vec=1","unlink=remove","const=","VMS_DEBUG")
43 endif
44 CFLAGS=/noopt/debug/include=([],[-.include])$(DEFS)/warnings=disable=(missingreturn,implicitfunc,longextern)
45 endif
46
47
48 libbfd.olb: sysdep.h bfd.h $(OBJS)
49 purge
50 lib/create libbfd $(OBJS)
51
52 sysdep.h: [.hosts]$(HOSTFILE) config.h
53 $(CP) $< $@
54
55 bfd.h: bfd-in2.h
56 $$ @configure
57
58 targmatch.h: bfd.h
59 config.h: bfd.h
60
61 vms.c: vms.h
62 vms-mhd.c: vms.h
63 vms-gsd.c: vms.h
64 vms-tir.c: vms.h
65 vms-misc.c: vms.h
66 targets.c: targmatch.h
67
68 clean:
69 $$ purge
70 $(RM) libbfd.olb;
71 $(RM) sysdep.h;
72 $(RM) bfd.h;
73 $(RM) targmatch.h;
74 $(RM) config.h;
75 $(RM) *.obj;
This page took 0.0338 seconds and 4 git commands to generate.