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