1# $FreeBSD$ 2 3.include <bsd.own.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 9 10.if !defined(NO_SHARED) 11# required when linking with a dynamic libssh 12SRCS+= roaming_dummy.c 13.endif 14 15DPADD= ${LIBSSH} 16LDADD= -lssh 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