1# $FreeBSD$ 2 3.include <src.opts.mk> 4 5PROG= ssh-pkcs11-helper 6SRCS= ssh-pkcs11.c ssh-pkcs11-helper.c 7MAN= ssh-pkcs11-helper.8 8CFLAGS+=-I${SSHDIR} -include ssh_namespace.h 9 10.if !defined(NO_SHARED) 11# required when linking with a dynamic libssh 12SRCS+= roaming_dummy.c 13.endif 14 15DPADD= ${LIBSSH} 16LDADD= ${LDSSH} 17USEPRIVATELIB= ssh 18 19.if ${MK_LDNS} != "no" 20CFLAGS+= -DHAVE_LDNS=1 21#DPADD+= ${LIBLDNS} 22#LDADD+= -lldns 23#USEPRIVATELIB+= ldns 24.endif 25 26DPADD+= ${LIBCRYPT} ${LIBCRYPTO} ${LIBZ} 27LDADD+= -lcrypt -lcrypto -lz 28 29.include <bsd.prog.mk> 30 31.PATH: ${SSHDIR} 32 33${OBJS} ${POBJS} ${SOBJS}: ssh_namespace.h 34