bfd/
[deliverable/binutils-gdb.git] / bfd / makefile.vms
1 #
2 # Makefile for bfd library under openVMS
3 #
4 # For use with gnu-make for vms
5 #
6 # Created by Klaus K"ampf, kkaempf@rmi.de
7 #
8 #
9
10 ifeq ($(ARCH),IA64)
11 HOSTFILE=alphavms.h
12 OBJS:=cpu-ia64.obj,elf64-ia64.obj,elfxx-ia64.obj,elf64-ia64.obj,\
13 vms-misc.obj,vms-lib.obj,elf-strtab.obj,corefile.obj,stabs.obj,\
14 merge.obj,elf-eh-frame.obj,elflink.obj,elf-attrs.obj,dwarf1.obj,elf64.obj
15 DEFS=SELECT_VECS="&bfd_elf64_ia64_vms_vec",\
16 SELECT_ARCHITECTURES="&bfd_ia64_arch","HAVE_bfd_elf64_ia64_vms_vec"=1
17 endif
18 ifeq ($(ARCH),ALPHA)
19 HOSTFILE=alphavms.h
20 OBJS:=vms-alpha.obj,vms-lib.obj,vms-misc.obj,cpu-alpha.obj
21 DEFS=SELECT_VECS="&vms_alpha_vec",SELECT_ARCHITECTURES="&bfd_alpha_arch"
22 endif
23
24 OBJS:=$(OBJS),archive.obj,archive64.obj,archures.obj,bfd.obj,bfdio.obj,\
25 binary.obj,cache.obj,coffgen.obj,compress.obj,corefile.obj,dwarf2.obj,\
26 elf.obj,format.obj,hash.obj,ihex.obj,init.obj,libbfd.obj,linker.obj,\
27 opncls.obj,reloc.obj,section.obj,simple.obj,srec.obj,stab-syms.obj,\
28 syms.obj,targets.obj,tekhex.obj,verilog.obj
29
30 ifeq ($(CC),gcc)
31 CFLAGS=/include=([],[-.include])$(DEFS)
32 else
33 OPT=/noopt/debug
34 CFLAGS=/name=(as_is,shortened)/include=([],"../include")\
35 /define=("unlink=remove",DEBUGDIR="""GNU$$DEBUGDIR:""",$(DEFS))\
36 /warns=(infor=(missingreturn,badansialias))$(OPT)
37 endif
38
39 libbfd.olb: $(OBJS)
40 purge
41 lib/create libbfd $(OBJS)
42
43 targmatch.h: bfd.h
44 config.h: bfd.h
45 vms-misc.c: vms.h
46 targets.c: targmatch.h
47
48 clean:
49 $$ purge
50 $(RM) libbfd.olb;
51 $(RM) *.obj;
This page took 0.041875 seconds and 4 git commands to generate.