1# $NetBSD: Makefile,v 1.17 2018/05/01 19:59:47 christos Exp $ 2 3.include <bsd.hostinit.mk> 4 5HOSTPROGNAME= ${MACHINE_GNU_PLATFORM}-mdsetimage 6 7HOST_SRCDIR= external/gpl3/binutils/usr.sbin/mdsetimage 8 9TOOLCHAINOBJ!= cd ${.CURDIR}/../binutils && ${PRINTOBJDIR} 10BFDDIR?= ${TOOLCHAINOBJ}/build/bfd 11IBERTYDIR?= ${TOOLCHAINOBJ}/build/libiberty 12 13.include "${.CURDIR}/../Makefile.host" 14 15 16LDMAKEFILE=${TOOLCHAINOBJ}/build/ld/Makefile 17.if exists(${LDMAKEFILE}) 18HAVE_LIBDL!= grep -- -ldl ${LDMAKEFILE} || echo no 19.else 20HAVE_LIBDL= no 21.endif 22 23.if ${HAVE_LIBDL} != "no" 24LDADD+= -ldl 25.endif 26