* elfcpp.h (NT_VERSION, NT_ARCH): Define as enum constants.
[binutils.git] / bfd / makefile.vms
blobad6b1fff92ace6078f96e11a881185328b431c85
2 # Makefile for bfd library under openVMS (Alpha and Vax)
4 # For use with gnu-make for vms
6 # Created by Klaus K"ampf, kkaempf@rmi.de
10 CC=cc
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
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)
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
48 libbfd.olb: sysdep.h bfd.h $(OBJS)
49         purge
50         lib/create libbfd $(OBJS)
52 sysdep.h: [.hosts]$(HOSTFILE) config.h
53         $(CP) $< $@
55 bfd.h: bfd-in2.h
56         $$ @configure
58 targmatch.h: bfd.h
59 config.h: bfd.h
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
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;