NetBSD/tools/dbsym/Makefile

27 lines
579 B
Makefile

# $NetBSD: Makefile,v 1.11 2017/01/06 20:27:19 christos Exp $
NOMAN= # defined
.include <bsd.own.mk>
HOSTPROGNAME= ${MACHINE_GNU_PLATFORM}-dbsym
HOST_SRCDIR= external/gpl3/binutils/usr.sbin/dbsym
TOOLCHAINOBJ!= cd ${.CURDIR}/../binutils && ${PRINTOBJDIR}
BFDDIR= ${TOOLCHAINOBJ}/build/bfd
IBERTYDIR= ${TOOLCHAINOBJ}/build/libiberty
.include "${.CURDIR}/../Makefile.host"
LDMAKEFILE=${TOOLCHAINOBJ}/build/ld/Makefile
.if exists(${LDMAKEFILE})
HAVE_LIBDL!= grep -- -ldl ${LDMAKEFILE} || echo no
.else
HAVE_LIBDL= no
.endif
.if ${HAVE_LIBDL} != "no"
LDADD+= -ldl
.endif