2001-05-04 04:21:25 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2013-09-10 22:26:11 +00:00
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
2001-05-04 04:21:25 +00:00
|
|
|
PROG= sftp
|
2004-02-26 11:26:46 +00:00
|
|
|
SRCS= sftp.c sftp-client.c sftp-common.c sftp-glob.c progressmeter.c
|
2006-05-13 13:47:45 +00:00
|
|
|
CFLAGS+=-I${SSHDIR} -include ssh_namespace.h
|
2001-05-04 04:21:25 +00:00
|
|
|
|
2013-09-10 22:26:11 +00:00
|
|
|
.if !defined(NO_SHARED)
|
|
|
|
# required when linking with a dynamic libssh
|
2009-10-01 17:12:52 +00:00
|
|
|
SRCS+= roaming_dummy.c
|
2013-09-10 22:26:11 +00:00
|
|
|
.endif
|
2009-10-01 17:12:52 +00:00
|
|
|
|
2013-09-10 22:26:11 +00:00
|
|
|
DPADD= ${LIBSSH} ${LIBEDIT} ${LIBNCURSES}
|
|
|
|
LDADD= -lssh -ledit -lncurses
|
2013-09-08 10:04:26 +00:00
|
|
|
USEPRIVATELIB= ssh
|
2001-05-04 04:21:25 +00:00
|
|
|
|
2013-09-10 22:26:11 +00:00
|
|
|
.if ${MK_LDNS} != "no"
|
|
|
|
CFLAGS+= -DHAVE_LDNS=1
|
|
|
|
#DPADD+= ${LIBLDNS}
|
|
|
|
#LDADD+= -lldns
|
|
|
|
#USEPRIVATELIB+= ldns
|
|
|
|
.endif
|
|
|
|
|
|
|
|
DPADD+= ${LIBCRYPT} ${LIBCRYPTO} ${LIBZ}
|
|
|
|
LDADD+= -lcrypt -lcrypto -lz
|
|
|
|
|
2001-05-04 04:21:25 +00:00
|
|
|
.include <bsd.prog.mk>
|
|
|
|
|
|
|
|
.PATH: ${SSHDIR}
|
2006-05-13 21:38:16 +00:00
|
|
|
|
|
|
|
${OBJS} ${POBJS} ${SOBJS}: ssh_namespace.h
|