1 1.9.2.1 pgoyette # $NetBSD: Makefile,v 1.9.2.1 2017/01/07 08:56:57 pgoyette Exp $ 2 1.3 lukem 3 1.3 lukem NOMAN= # defined 4 1.1 thorpej 5 1.2 tv .include <bsd.own.mk> 6 1.1 thorpej 7 1.2 tv HOSTPROGNAME= ${MACHINE_GNU_PLATFORM}-dbsym 8 1.6 tsutsui 9 1.6 tsutsui HOST_SRCDIR= external/gpl3/binutils/usr.sbin/dbsym 10 1.1 thorpej 11 1.4 mrg TOOLCHAINOBJ!= cd ${.CURDIR}/../binutils && ${PRINTOBJDIR} 12 1.2 tv BFDDIR= ${TOOLCHAINOBJ}/build/bfd 13 1.2 tv IBERTYDIR= ${TOOLCHAINOBJ}/build/libiberty 14 1.1 thorpej 15 1.1 thorpej .include "${.CURDIR}/../Makefile.host" 16 1.8 christos 17 1.9.2.1 pgoyette LDMAKEFILE=${TOOLCHAINOBJ}/build/ld/Makefile 18 1.9.2.1 pgoyette .if exists(${LDMAKEFILE}) 19 1.9.2.1 pgoyette HAVE_LIBDL!= grep -- -ldl ${LDMAKEFILE} || echo no 20 1.9.2.1 pgoyette .else 21 1.9.2.1 pgoyette HAVE_LIBDL= no 22 1.9.2.1 pgoyette .endif 23 1.8 christos 24 1.9.2.1 pgoyette .if ${HAVE_LIBDL} != "no" 25 1.9.2.1 pgoyette LDADD+= -ldl 26 1.8 christos .endif 27