1 # $NetBSD: Makefile,v 1.11 2013/09/29 14:20:38 christos Exp $
5 .if
(defined
(HOSTPROG
) && \
6 (${TOOLCHAIN_MISSING} == "no" || defined
(EXTERNAL_TOOLCHAIN
))) || \
8 TOP
= ${NETBSDSRCDIR}/external
/gpl3
/binutils
15 CPPFLAGS
+= -I
${DIST}/bfd
-I
${DIST}/binutils
-I
${DIST}/include
17 .if
!defined
(HOSTPROG
)
18 PROGDPLIBS
+= bfd
${TOP}/${BFDSUBDIR}/libbfd
19 PROGDPLIBS
+= iberty
${TOP}/${BFDSUBDIR}/libiberty
21 CPPFLAGS
+= -I
${BFDDIR}
22 DPADD
+= ${BFDDIR}/libbfd.a
23 LDADD
+= -L
${BFDDIR} -lbfd
24 DPADD
+= ${IBERTYDIR}/libiberty.a
25 LDADD
+= -L
${IBERTYDIR} -liberty
28 .
include <bsd.prog.mk
>
31 .
include "${TOP}/${BFDSUBDIR}/libbfd/arch/${BINUTILS_MACHINE_ARCH}/defs.mk"
32 CPPFLAGS
+= -I
${TOP}/${BFDSUBDIR}/libbfd
/arch
/${BINUTILS_MACHINE_ARCH} ${G_INCLUDES}
38 # No DPADD because we don't know the format and we didn't build it.
40 .
endif # MKBINUTILS != no