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
14 TARGETOBJS = cpu-alpha.obj
17 TARGETOBJS = cpu-vax.obj
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)
29 DEFS=/define=(SELECT_VECS="&vms_alpha_vec",SELECT_ARCHITECTURES="&bfd_alpha_arch",\
30 "HAVE_vms_alpha_vec=1")
32 DEFS=/define=(SELECT_VECS="&vms_vax_vec",SELECT_ARCHITECTURES="&bfd_vax_arch",\
33 "HAVE_vms_vax_vec=1","VMS_DEBUG")
35 CFLAGS=/include=([],[-.include])$(DEFS)
38 DEFS=/define=(SELECT_VECS="&vms_alpha_vec",SELECT_ARCHITECTURES="&bfd_alpha_arch",\
39 "HAVE_vms_alpha_vec=1","unlink=remove","const=","VMS_DEBUG",)
41 DEFS=/define=(SELECT_VECS="&vms_vax_vec",SELECT_ARCHITECTURES="&bfd_vax_arch",\
42 "HAVE_vms_vax_vec=1","unlink=remove","const=","VMS_DEBUG")
44 CFLAGS=/noopt/debug/include=([],[-.include])$(DEFS)/warnings=disable=(missingreturn,implicitfunc,longextern)
48 libbfd.olb: sysdep.h bfd.h $(OBJS)
50 lib/create libbfd $(OBJS)
52 sysdep.h: [.hosts]$(HOSTFILE) config.h
66 targets.c: targmatch.h