mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-25 11:37:56 +00:00
9cfa8b3fee
as static binaries, if desired. The one exception is sshd, which runs into trouble due to libpam.a's includion of pam_ssh. Make OpenSSH use LDNS if available. This allows it to verify signed SSHFP records. Approved by: re (blanket)
33 lines
625 B
Makefile
33 lines
625 B
Makefile
# $FreeBSD$
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
PROG= sftp
|
|
SRCS= sftp.c sftp-client.c sftp-common.c sftp-glob.c progressmeter.c
|
|
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} ${LIBEDIT} ${LIBNCURSES}
|
|
LDADD= -lssh -ledit -lncurses
|
|
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
|