3 .include "../Makefile.inc0"
5 .PATH: ${SRCDIR}/bfd ${SRCDIR}/opcodes
45 .if (${TARGET_ARCH} == "ia64" || ${TARGET_ARCH} == "sparc64")
48 CFLAGS+= -D_GNU_SOURCE
49 CFLAGS+= -I${SRCDIR}/bfd
51 CLEANFILES+= bfdver.h config.h targmatch.h
54 .if ${TARGET_ARCH} == "amd64"
55 SELARCH= &bfd_i386_arch
56 .elif ${TARGET_ARCH} == "sparc64"
57 SELARCH= &bfd_sparc_arch
61 SELARCH+= &bfd_${_a}_arch
63 SELARCH+= ,&bfd_${_a}_arch
67 CFLAGS+= -DSELECT_ARCHITECTURES="${SELARCH}"
78 CFLAGS+= -DSELECT_VECS="${SELVEC}"
79 CFLAGS+= -DDEFAULT_VECTOR=${DEFAULT_VECTOR}
80 CFLAGS+= -DDEBUGDIR="NULL"
82 # XXX:DEO should grab BFD_VERSION_DATE from ${VERSION}...
84 echo '#define BFD_VERSION 217500000' > ${.TARGET}
85 echo '#define BFD_VERSION_DATE 20070703' >> ${.TARGET}
86 echo '#define BFD_VERSION_STRING ${VERSION}' >> ${.TARGET}
87 echo '#define REPORT_BUGS_TO "<http://www.freebsd.org/send-pr.html>"' >> ${.TARGET}
89 targmatch.h: targmatch.sed config.bfd
90 sed -f ${.ALLSRC:M*.sed} ${.ALLSRC:M*.bfd} > ${.TARGET}
92 config.h: config.h.fbsd
93 .if ${TARGET_ARCH} == "i386"
94 sed -e 's,!!TRAD_HEADER!!,"hosts/i386bsd.h",g' ${.ALLSRC} > ${.TARGET}
96 sed -e 's,!!TRAD_HEADER!!,,g' ${.ALLSRC} > ${.TARGET}
99 CLEANFILES+= elf32-target.h elf64-target.h
100 elf32-target.h: elfxx-target.h
101 sed -e s/NN/32/g ${.ALLSRC} > ${.TARGET}
103 elf64-target.h: elfxx-target.h
104 sed -e s/NN/64/g ${.ALLSRC} > ${.TARGET}
106 .include <bsd.lib.mk>