1998-03-01 23:41:17 +00:00
|
|
|
#
|
1999-08-27 23:37:10 +00:00
|
|
|
# $FreeBSD$
|
1998-03-01 23:41:17 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
.include "../Makefile.inc0"
|
|
|
|
|
1999-03-01 04:01:57 +00:00
|
|
|
.PATH: ${SRCDIR}/bfd ${SRCDIR}/opcodes
|
1998-03-01 23:41:17 +00:00
|
|
|
|
|
|
|
LIB= bfd
|
1998-03-12 02:55:43 +00:00
|
|
|
SRCS+= archive.c archures.c bfd.c binary.c cache.c \
|
|
|
|
coffgen.c corefile.c elf.c format.c hash.c ihex.c \
|
1998-03-01 23:41:17 +00:00
|
|
|
init.c libbfd.c linker.c opncls.c reloc.c section.c \
|
1998-06-04 06:50:58 +00:00
|
|
|
srec.c stab-syms.c stabs.c syms.c targets.c tekhex.c \
|
2000-05-22 08:09:42 +00:00
|
|
|
targmatch.h dwarf1.c dwarf2.c
|
1998-03-01 23:41:17 +00:00
|
|
|
CFLAGS+= -I${SRCDIR}/bfd
|
2000-05-22 08:09:42 +00:00
|
|
|
CFLAGS+= -DBFD_VERSION=\"${VERSION}\"
|
1998-03-01 23:41:17 +00:00
|
|
|
NOPROFILE= true
|
|
|
|
NOPIC= true
|
1998-03-12 05:14:19 +00:00
|
|
|
INTERNALLIB= true
|
|
|
|
INTERNALSTATICLIB=true
|
1998-03-12 02:55:43 +00:00
|
|
|
CLEANFILES+= targmatch.h
|
1998-03-01 23:41:17 +00:00
|
|
|
|
1999-11-06 21:04:46 +00:00
|
|
|
# If set, BINUTILSDISTDIR is the path to a directory containing the full GNU
|
|
|
|
# binutils release. FreeBSD only distributes the bits that are required to
|
|
|
|
# build native architectures. BINUTILSDISTDIR is needed to build cross tools.
|
|
|
|
.if defined(BINUTILSDISTDIR) && exists(${BINUTILSDISTDIR})
|
|
|
|
.PATH: ${BINUTILSDISTDIR}/bfd ${BINUTILSDISTDIR}/opcodes
|
|
|
|
CFLAGS+= -I${BINUTILSDISTDIR}/bfd
|
|
|
|
CFLAGS+= -I${BINUTILSDISTDIR}/include
|
|
|
|
.endif
|
|
|
|
|
1998-05-04 21:16:46 +00:00
|
|
|
SELARCH=
|
2000-04-02 22:36:56 +00:00
|
|
|
.if ${BINUTIL_ARCH} == "sparc64"
|
|
|
|
SELARCH=&bfd_sparc_arch
|
|
|
|
.else
|
1998-05-04 21:16:46 +00:00
|
|
|
.for _a in ${ARCHS}
|
|
|
|
.if ${SELARCH} == ""
|
|
|
|
SELARCH+=&bfd_${_a}_arch
|
|
|
|
.else
|
|
|
|
SELARCH+=,&bfd_${_a}_arch
|
|
|
|
.endif
|
|
|
|
.endfor
|
2000-04-02 22:36:56 +00:00
|
|
|
.endif
|
1998-05-04 21:16:46 +00:00
|
|
|
CFLAGS+= -DSELECT_ARCHITECTURES="${SELARCH}"
|
|
|
|
|
|
|
|
SELVEC=
|
|
|
|
.for _v in ${VECS}
|
|
|
|
.if ${SELVEC} == ""
|
|
|
|
SELVEC+=&${_v}
|
|
|
|
.else
|
|
|
|
SELVEC+=,&${_v}
|
|
|
|
.endif
|
|
|
|
.endfor
|
|
|
|
CFLAGS+= -DSELECT_VECS="${SELVEC}"
|
|
|
|
|
1998-03-01 23:41:17 +00:00
|
|
|
targmatch.h: targmatch.sed config.bfd
|
|
|
|
sed -f ${.ALLSRC:M*.sed} ${.ALLSRC:M*.bfd} > ${.TARGET}
|
|
|
|
|
|
|
|
.include <bsd.lib.mk>
|