* readelf.c (get_arm_section_type_name): Added support for
[deliverable/binutils-gdb.git] / bfd / makefile.vms
CommitLineData
252b5132
RH
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
10CC=cc
11
12ifeq ($(ARCH),ALPHA)
13HOSTFILE=alphavms.h
14TARGETOBJS = cpu-alpha.obj
15else
16HOSTFILE=vaxvms.h
17TARGETOBJS = cpu-vax.obj
18endif
19
20
d387240a
TG
21OBJS=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,\
d5acff2f 25 targets.obj,tekhex.obj,verilog.obj,\
d387240a 26 vms.obj,vms-hdr.obj,vms-gsd.obj,vms-tir.obj,vms-misc.obj,$(TARGETOBJS)
252b5132
RH
27
28ifeq ($(CC),gcc)
29ifeq ($(ARCH),ALPHA)
30DEFS=/define=(SELECT_VECS="&vms_alpha_vec",SELECT_ARCHITECTURES="&bfd_alpha_arch",\
31"HAVE_vms_alpha_vec=1")
32else
33DEFS=/define=(SELECT_VECS="&vms_vax_vec",SELECT_ARCHITECTURES="&bfd_vax_arch",\
d387240a 34"HAVE_vms_vax_vec=1")
252b5132
RH
35endif
36CFLAGS=/include=([],[-.include])$(DEFS)
37else
38ifeq ($(ARCH),ALPHA)
0c376465
TG
39DEFS=/define=(SELECT_VECS="&vms_alpha_vec",\
40 SELECT_ARCHITECTURES="&bfd_alpha_arch",\
41 "HAVE_vms_alpha_vec=1","unlink=remove","DEBUGDIR=NULL")
252b5132
RH
42else
43DEFS=/define=(SELECT_VECS="&vms_vax_vec",SELECT_ARCHITECTURES="&bfd_vax_arch",\
0c376465 44 "HAVE_vms_vax_vec=1","unlink=remove")
252b5132 45endif
0c376465
TG
46OPT=/noopt/debug
47CFLAGS=/name=(as_is,shortened)/include=([],[-.include])$(DEFS)$(OPT)
252b5132
RH
48endif
49
50
51libbfd.olb: sysdep.h bfd.h $(OBJS)
52 purge
53 lib/create libbfd $(OBJS)
54
55sysdep.h: [.hosts]$(HOSTFILE) config.h
56 $(CP) $< $@
57
58bfd.h: bfd-in2.h
59 $$ @configure
60
61targmatch.h: bfd.h
62config.h: bfd.h
63
64vms.c: vms.h
65vms-mhd.c: vms.h
66vms-gsd.c: vms.h
67vms-tir.c: vms.h
68vms-misc.c: vms.h
69targets.c: targmatch.h
70
71clean:
72 $$ purge
73 $(RM) libbfd.olb;
74 $(RM) sysdep.h;
75 $(RM) bfd.h;
76 $(RM) targmatch.h;
77 $(RM) config.h;
78 $(RM) *.obj;
This page took 0.504787 seconds and 4 git commands to generate.