aboutsummaryrefslogtreecommitdiff
path: root/secure/libexec/ssh-pkcs11-helper/Makefile
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2013-09-10 22:26:11 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2013-09-10 22:26:11 +0000
commit9cfa8b3fee2f79940b0b9e5a4ffbc5f095861529 (patch)
treeab68ba5a5b6f4e8ee717558d70c0221f0b1ef6dc /secure/libexec/ssh-pkcs11-helper/Makefile
parent27789e56b28fd6d95ebb2bc7d9436305b193fe40 (diff)
Notes
Diffstat (limited to 'secure/libexec/ssh-pkcs11-helper/Makefile')
-rw-r--r--secure/libexec/ssh-pkcs11-helper/Makefile22
1 files changed, 19 insertions, 3 deletions
diff --git a/secure/libexec/ssh-pkcs11-helper/Makefile b/secure/libexec/ssh-pkcs11-helper/Makefile
index ec57a613b0b4..4682929e2d93 100644
--- a/secure/libexec/ssh-pkcs11-helper/Makefile
+++ b/secure/libexec/ssh-pkcs11-helper/Makefile
@@ -1,15 +1,31 @@
# $FreeBSD$
+.include <bsd.own.mk>
+
PROG= ssh-pkcs11-helper
SRCS= ssh-pkcs11.c ssh-pkcs11-helper.c
-SRCS+= roaming_dummy.c
MAN= ssh-pkcs11-helper.8
CFLAGS+=-I${SSHDIR} -include ssh_namespace.h
-DPADD= ${LIBSSH} ${LIBCRYPT} ${LIBCRYPTO} ${LIBZ}
-LDADD= -lssh -lcrypt -lcrypto -lz
+.if !defined(NO_SHARED)
+# required when linking with a dynamic libssh
+SRCS+= roaming_dummy.c
+.endif
+
+DPADD= ${LIBSSH}
+LDADD= -lssh
USEPRIVATELIB= ssh
+.if ${MK_LDNS} != "no"
+CFLAGS+= -DHAVE_LDNS=1
+#DPADD+= ${LIBLDNS}
+#LDADD+= -lldns
+#USEPRIVATELIB+= ldns
+.endif
+
+DPADD+= ${LIBCRYPT} ${LIBCRYPTO} ${LIBZ}
+LDADD+= -lcrypt -lcrypto -lz
+
.include <bsd.prog.mk>
.PATH: ${SSHDIR}