Commit | Line | Data |
---|---|---|
252b5132 | 1 | # |
11d73275 | 2 | # Makefile for bfd library under openVMS |
252b5132 RH |
3 | # |
4 | # For use with gnu-make for vms | |
5 | # | |
6 | # Created by Klaus K"ampf, kkaempf@rmi.de | |
7 | # | |
4b95cf5c | 8 | # Copyright (C) 2012-2014 Free Software Foundation, Inc. |
5bf135a7 NC |
9 | # |
10 | # This file is free software; you can redistribute it and/or modify | |
11 | # it under the terms of the GNU General Public License as published by | |
12 | # the Free Software Foundation; either version 3 of the License, or | |
13 | # (at your option) any later version. | |
14 | # | |
15 | # This program is distributed in the hope that it will be useful, | |
16 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
17 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
18 | # GNU General Public License for more details. | |
19 | # | |
20 | # You should have received a copy of the GNU General Public License | |
21 | # along with this program; see the file COPYING3. If not see | |
22 | # <http://www.gnu.org/licenses/>. | |
252b5132 RH |
23 | # |
24 | ||
11d73275 TG |
25 | ifeq ($(ARCH),IA64) |
26 | HOSTFILE=alphavms.h | |
787548c8 | 27 | OBJS:=cpu-ia64.obj,elfxx-ia64.obj,elf64-ia64-vms.obj,\ |
1222b291 | 28 | vms-misc.obj,vms-lib.obj,elf-strtab.obj,corefile.obj,stabs.obj,\ |
11d73275 | 29 | merge.obj,elf-eh-frame.obj,elflink.obj,elf-attrs.obj,dwarf1.obj,elf64.obj |
6d00b590 AM |
30 | DEFS=SELECT_VECS="&ia64_elf64_vms_vec",\ |
31 | SELECT_ARCHITECTURES="&bfd_ia64_arch","HAVE_ia64_elf64_vms_vec"=1 | |
11d73275 | 32 | endif |
252b5132 RH |
33 | ifeq ($(ARCH),ALPHA) |
34 | HOSTFILE=alphavms.h | |
1222b291 | 35 | OBJS:=vms-alpha.obj,vms-lib.obj,vms-misc.obj,cpu-alpha.obj |
6d00b590 | 36 | DEFS=SELECT_VECS="&alpha_vms_vec",SELECT_ARCHITECTURES="&bfd_alpha_arch" |
11d73275 | 37 | endif |
252b5132 | 38 | |
11d73275 TG |
39 | OBJS:=$(OBJS),archive.obj,archive64.obj,archures.obj,bfd.obj,bfdio.obj,\ |
40 | binary.obj,cache.obj,coffgen.obj,compress.obj,corefile.obj,dwarf2.obj,\ | |
41 | elf.obj,format.obj,hash.obj,ihex.obj,init.obj,libbfd.obj,linker.obj,\ | |
42 | opncls.obj,reloc.obj,section.obj,simple.obj,srec.obj,stab-syms.obj,\ | |
43 | syms.obj,targets.obj,tekhex.obj,verilog.obj | |
252b5132 RH |
44 | |
45 | ifeq ($(CC),gcc) | |
252b5132 RH |
46 | CFLAGS=/include=([],[-.include])$(DEFS) |
47 | else | |
0c376465 | 48 | OPT=/noopt/debug |
11d73275 | 49 | CFLAGS=/name=(as_is,shortened)/include=([],"../include")\ |
6cdb8d82 | 50 | /define=("unlink=remove",DEBUGDIR="""GNU$$DEBUGDIR:""",$(DEFS))\ |
52e00d50 | 51 | /warns=(infor=(missingreturn,badansialias))$(OPT) |
252b5132 RH |
52 | endif |
53 | ||
11d73275 | 54 | libbfd.olb: $(OBJS) |
252b5132 RH |
55 | purge |
56 | lib/create libbfd $(OBJS) | |
57 | ||
252b5132 RH |
58 | targmatch.h: bfd.h |
59 | config.h: bfd.h | |
252b5132 RH |
60 | vms-misc.c: vms.h |
61 | targets.c: targmatch.h | |
62 | ||
63 | clean: | |
64 | $$ purge | |
65 | $(RM) libbfd.olb; | |
252b5132 | 66 | $(RM) *.obj; |