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,archive64.obj,archures.obj,bfd.obj,bfdio.obj,binary.obj,\
22 cache.obj,coffgen.obj,compress.obj,corefile.obj,dwarf2.obj,elf.obj,\
23 format.obj,hash.obj,ihex.obj,init.obj,libbfd.obj,linker.obj,opncls.obj,\
24 reloc.obj,section.obj,simple.obj,srec.obj,stab-syms.obj,syms.obj,\
25 targets.obj,tekhex.obj,\
26 vms.obj,vms-hdr.obj,vms-gsd.obj,vms-tir.obj,vms-misc.obj,$(TARGETOBJS)
30 DEFS=/define=(SELECT_VECS="&vms_alpha_vec",SELECT_ARCHITECTURES="&bfd_alpha_arch",\
31 "HAVE_vms_alpha_vec=1")
33 DEFS=/define=(SELECT_VECS="&vms_vax_vec",SELECT_ARCHITECTURES="&bfd_vax_arch",\
36 CFLAGS=/include=([],[-.include])$(DEFS)
39 DEFS=/define=(SELECT_VECS="&vms_alpha_vec",\
40 SELECT_ARCHITECTURES="&bfd_alpha_arch",\
41 "HAVE_vms_alpha_vec=1","unlink=remove","DEBUGDIR=NULL")
43 DEFS=/define=(SELECT_VECS="&vms_vax_vec",SELECT_ARCHITECTURES="&bfd_vax_arch",\
44 "HAVE_vms_vax_vec=1","unlink=remove")
47 CFLAGS=/name=(as_is,shortened)/include=([],[-.include])$(DEFS)$(OPT)
51 libbfd.olb: sysdep.h bfd.h $(OBJS)
53 lib/create libbfd $(OBJS)
55 sysdep.h: [.hosts]$(HOSTFILE) config.h
69 targets.c: targmatch.h