etc/protocols - sync with NetBSD-8
[minix.git] / external / gpl3 / binutils / usr.sbin / dbsym / Makefile
blobcac96f2406947266bfc0bab8e1b2278091be6c20
1 # $NetBSD: Makefile,v 1.11 2013/09/29 14:20:38 christos Exp $
3 .include <bsd.own.mk>
5 .if (defined(HOSTPROG) && \
6 (${TOOLCHAIN_MISSING} == "no" || defined(EXTERNAL_TOOLCHAIN))) || \
7 ${MKBINUTILS} != "no"
8 TOP= ${NETBSDSRCDIR}/external/gpl3/binutils
9 DIST= ${TOP}/dist
10 BFDSUBDIR= lib
12 PROG= dbsym
13 MAN= dbsym.8
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
20 .else
21 CPPFLAGS+= -I${BFDDIR}
22 DPADD+= ${BFDDIR}/libbfd.a
23 LDADD+= -L${BFDDIR} -lbfd
24 DPADD+= ${IBERTYDIR}/libiberty.a
25 LDADD+= -L${IBERTYDIR} -liberty
26 .endif
28 .include <bsd.prog.mk>
30 .ifndef HOSTPROG
31 .include "${TOP}/${BFDSUBDIR}/libbfd/arch/${BINUTILS_MACHINE_ARCH}/defs.mk"
32 CPPFLAGS+= -I${TOP}/${BFDSUBDIR}/libbfd/arch/${BINUTILS_MACHINE_ARCH} ${G_INCLUDES}
33 LDADD+= -lintl
34 DPADD+= ${LIBINTL}
35 .endif # HOSTPROG
37 LDADD+= -lz
38 # No DPADD because we don't know the format and we didn't build it.
40 .endif # MKBINUTILS != no