2018-05-05 22:25:55 +03:00
|
|
|
# $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
|
2001-10-22 03:10:46 +04:00
|
|
|
|
2018-05-05 22:25:55 +03:00
|
|
|
.include <bsd.init.mk>
|
2001-10-25 03:57:45 +04:00
|
|
|
|
2001-11-13 02:16:17 +03:00
|
|
|
HOSTPROGNAME= ${MACHINE_GNU_PLATFORM}-mdsetimage
|
2009-10-27 17:20:21 +03:00
|
|
|
|
|
|
|
HOST_SRCDIR= external/gpl3/binutils/usr.sbin/mdsetimage
|
2001-10-25 03:57:45 +04:00
|
|
|
|
2003-07-25 20:26:51 +04:00
|
|
|
TOOLCHAINOBJ!= cd ${.CURDIR}/../binutils && ${PRINTOBJDIR}
|
2001-11-13 02:16:17 +03:00
|
|
|
BFDDIR= ${TOOLCHAINOBJ}/build/bfd
|
|
|
|
IBERTYDIR= ${TOOLCHAINOBJ}/build/libiberty
|
2001-10-22 03:10:46 +04:00
|
|
|
|
|
|
|
.include "${.CURDIR}/../Makefile.host"
|
2016-02-01 16:44:52 +03:00
|
|
|
|
|
|
|
|
2017-01-06 20:22:51 +03:00
|
|
|
LDMAKEFILE=${TOOLCHAINOBJ}/build/ld/Makefile
|
|
|
|
.if exists(${LDMAKEFILE})
|
2017-01-06 23:27:19 +03:00
|
|
|
HAVE_LIBDL!= grep -- -ldl ${LDMAKEFILE} || echo no
|
|
|
|
.else
|
|
|
|
HAVE_LIBDL= no
|
2017-01-06 20:22:51 +03:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${HAVE_LIBDL} != "no"
|
2016-02-01 16:44:52 +03:00
|
|
|
LDADD+= -ldl
|
|
|
|
.endif
|