1# $FreeBSD$ 2 3.include <src.opts.mk> 4 5PROG= sftp-server 6SRCS= sftp-server.c sftp-common.c sftp-server-main.c 7MAN= sftp-server.8 8CFLAGS+=-I${SSHDIR} -include ssh_namespace.h 9SRCS+= ssh_namespace.h 10 11.if !defined(NO_SHARED) 12# required when linking with a dynamic libssh 13SRCS+= roaming_dummy.c 14.endif 15 16LIBADD= ssh 17 18.if ${MK_LDNS} != "no" 19CFLAGS+= -DHAVE_LDNS=1 20#DPADD+= ${LIBLDNS} 21#LDADD+= -lldns 22.endif 23 24.include <bsd.prog.mk> 25 26.PATH: ${SSHDIR} 27