ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/src/trunk/gnu/usr.bin/binutils/libbfd/Makefile
Revision: 10945
Committed: Fri Jun 15 13:19:26 2018 UTC (5 years, 10 months ago) by laffer1
File size: 2192 byte(s)
Log Message:
 add architectures

File Contents

# Content
1 # $MidnightBSD$
2 # $FreeBSD: stable/10/gnu/usr.bin/binutils/libbfd/Makefile 267734 2014-06-22 16:48:21Z gavin $
3
4 .include "../Makefile.inc0"
5
6 .PATH: ${SRCDIR}/bfd ${SRCDIR}/opcodes
7
8 LIB= bfd
9 SRCS+= archive.c \
10 archive64.c \
11 archures.c \
12 bfd.c \
13 bfdio.c \
14 bfdver.h \
15 bfdwin.c \
16 binary.c \
17 cache.c \
18 coffgen.c \
19 config.h \
20 corefile.c \
21 dwarf1.c \
22 dwarf2.c \
23 elf-attrs.c \
24 elf-eh-frame.c \
25 elf-strtab.c \
26 elf-vxworks.c \
27 elf.c \
28 format.c \
29 hash.c \
30 ihex.c \
31 init.c \
32 libbfd.c \
33 linker.c \
34 merge.c \
35 opncls.c \
36 reloc.c \
37 section.c \
38 simple.c \
39 srec.c \
40 stab-syms.c \
41 stabs.c \
42 syms.c \
43 targets.c \
44 targmatch.h \
45 tekhex.c
46 .if (${TARGET_ARCH} == "ia64" || ${TARGET_ARCH} == "sparc64")
47 WARNS?= 2
48 .endif
49 CFLAGS+= -D_GNU_SOURCE
50 CFLAGS+= -I${SRCDIR}/bfd
51 INTERNALLIB=
52 CLEANFILES+= bfdver.h config.h targmatch.h
53
54 SELARCH=
55 .if ${TARGET_ARCH} == "amd64"
56 SELARCH= &bfd_i386_arch
57 .elif ${TARGET_ARCH} == "sparc64"
58 SELARCH= &bfd_sparc_arch
59 .else
60 .for _a in ${ARCHS}
61 .if ${SELARCH} == ""
62 SELARCH+= &bfd_${_a}_arch
63 .else
64 SELARCH+= ,&bfd_${_a}_arch
65 .endif
66 .endfor
67 .endif
68 CFLAGS+= -DSELECT_ARCHITECTURES="${SELARCH}"
69
70 SELVEC=
71 .for _v in ${VECS}
72 CFLAGS+= -DHAVE_${_v}
73 .if ${SELVEC} == ""
74 SELVEC+= &${_v}
75 .else
76 SELVEC+= ,&${_v}
77 .endif
78 .endfor
79 CFLAGS+= -DSELECT_VECS="${SELVEC}"
80 CFLAGS+= -DDEFAULT_VECTOR=${DEFAULT_VECTOR}
81 CFLAGS+= -DDEBUGDIR="NULL"
82
83 # XXX:DEO should grab BFD_VERSION_DATE from ${VERSION}...
84 bfdver.h: Makefile
85 echo '#define BFD_VERSION 217500000' > ${.TARGET}
86 echo '#define BFD_VERSION_DATE 20070703' >> ${.TARGET}
87 echo '#define BFD_VERSION_STRING ${VERSION}' >> ${.TARGET}
88 echo '#define REPORT_BUGS_TO "<http://bugreport.midnightbsd.org>"' >> ${.TARGET}
89
90 targmatch.h: targmatch.sed config.bfd
91 sed -f ${.ALLSRC:M*.sed} ${.ALLSRC:M*.bfd} > ${.TARGET}
92
93 config.h: config.h.fbsd
94 .if ${TARGET_ARCH} == "i386"
95 sed -e 's,!!TRAD_HEADER!!,"hosts/i386bsd.h",g' ${.ALLSRC} > ${.TARGET}
96 .else
97 sed -e 's,!!TRAD_HEADER!!,,g' ${.ALLSRC} > ${.TARGET}
98 .endif
99
100 CLEANFILES+= elf32-target.h elf64-target.h
101 elf32-target.h: elfxx-target.h
102 sed -e s/NN/32/g ${.ALLSRC} > ${.TARGET}
103
104 elf64-target.h: elfxx-target.h
105 sed -e s/NN/64/g ${.ALLSRC} > ${.TARGET}
106
107 .include <bsd.lib.mk>

Properties

Name Value
svn:keywords MidnightBSD=%H