c6063d0da8
from the latter.
34 lines
597 B
Makefile
34 lines
597 B
Makefile
# $FreeBSD$
|
|
|
|
.include <src.opts.mk>
|
|
|
|
PROG= sftp-server
|
|
SRCS= sftp-server.c sftp-common.c sftp-server-main.c
|
|
MAN= sftp-server.8
|
|
CFLAGS+=-I${SSHDIR} -include ssh_namespace.h
|
|
|
|
.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}
|
|
|
|
${OBJS} ${POBJS} ${SOBJS}: ssh_namespace.h
|