NetBSD/tools/mdsetimage/Makefile

28 lines
590 B
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.13.6.1 2018/05/05 19:25:55 martin Exp $
2001-12-13 06:44:37 +03:00
NOMAN= # defined
.include <bsd.init.mk>
HOSTPROGNAME= ${MACHINE_GNU_PLATFORM}-mdsetimage
HOST_SRCDIR= external/gpl3/binutils/usr.sbin/mdsetimage
TOOLCHAINOBJ!= cd ${.CURDIR}/../binutils && ${PRINTOBJDIR}
BFDDIR= ${TOOLCHAINOBJ}/build/bfd
IBERTYDIR= ${TOOLCHAINOBJ}/build/libiberty
.include "${.CURDIR}/../Makefile.host"
2016-02-01 16:44:52 +03:00
LDMAKEFILE=${TOOLCHAINOBJ}/build/ld/Makefile
.if exists(${LDMAKEFILE})
HAVE_LIBDL!= grep -- -ldl ${LDMAKEFILE} || echo no
.else
HAVE_LIBDL= no
.endif
.if ${HAVE_LIBDL} != "no"
2016-02-01 16:44:52 +03:00
LDADD+= -ldl
.endif