NetBSD/tools/dbsym/Makefile
christos bf7113376a Create a new bsd.hostinit.mk file and put the build definitions for all host
programs there; make all Makefiles that use bsd.hostprog.mk include it.
Namely turn off MKREPRO and don't make lint, man pages, info files etc.
Remove the Makefile.inc files that contained these same settings, and
remove the settings from Makefile.host
2018-05-01 19:59:42 +00:00

25 lines
567 B
Makefile

# $NetBSD: Makefile,v 1.15 2018/05/01 19:59:46 christos Exp $
.include <bsd.hostinit.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