diff options
Diffstat (limited to 'secure/lib/libssh/Makefile')
-rw-r--r-- | secure/lib/libssh/Makefile | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/secure/lib/libssh/Makefile b/secure/lib/libssh/Makefile new file mode 100644 index 0000000..1daf972 --- /dev/null +++ b/secure/lib/libssh/Makefile @@ -0,0 +1,54 @@ +# $FreeBSD$ + +.include <bsd.own.mk> + +LIB= ssh +SHLIB_MAJOR= 5 +SRCS= authfd.c authfile.c bufaux.c bufbn.c buffer.c \ + canohost.c channels.c cipher.c cipher-aes.c \ + cipher-bf1.c cipher-ctr.c cipher-3des1.c cleanup.c \ + compat.c compress.c crc32.c deattack.c fatal.c hostfile.c \ + krl.c log.c match.c md-sha256.c moduli.c nchan.c packet.c \ + readpass.c rsa.c ttymodes.c xmalloc.c addrmatch.c \ + atomicio.c key.c dispatch.c kex.c mac.c uidswap.c uuencode.c misc.c \ + monitor_fdpass.c rijndael.c ssh-dss.c ssh-ecdsa.c ssh-rsa.c dh.c \ + kexdh.c kexgex.c kexdhc.c kexgexc.c bufec.c kexecdh.c kexecdhc.c \ + msg.c progressmeter.c dns.c entropy.c umac.c umac128.c jpake.c \ + schnorr.c ssh-pkcs11.c + +# gss-genr.c should be in $SRCS but causes linking problems, so it is +# compiled directly into sshd instead. + +# Portability layer +SRCS+= bsd-misc.c fmt_scaled.c getrrsetbyname.c glob.c \ + openssl-compat.c port-tun.c strtonum.c timingsafe_bcmp.c \ + vis.c xcrypt.c xmmap.c + +.if defined(COMPAT_GETADDRINFO) +SRCS+= getaddrinfo.c getnameinfo.c name6.c rcmd.c bindresvport.c +.endif + +CFLAGS+= -I${SSHDIR} -include ssh_namespace.h +DPADD= ${LIBZ} +LDADD= -lz + +.if ${MK_KERBEROS_SUPPORT} != "no" +CFLAGS+= -DGSSAPI -DHAVE_GSSAPI_GSSAPI_H=1 -DKRB5 -DHEIMDAL +DPADD+= ${LIBGSSAPI} ${LIBKRB5} ${LIBHX509} ${LIBASN1} ${LIBCOM_ERR} ${LIBMD} ${LIBROKEN} +LDADD+= -lgssapi -lkrb5 -lhx509 -lasn1 -lcom_err -lmd -lroken +.endif + +.if ${MK_OPENSSH_NONE_CIPHER} != "no" +CFLAGS+= -DNONE_CIPHER_ENABLED +.endif + +NO_LINT= + +DPADD+= ${LIBCRYPTO} ${LIBCRYPT} +LDADD+= -lcrypto -lcrypt + +.include <bsd.lib.mk> + +.PATH: ${SSHDIR} ${SSHDIR}/openbsd-compat + +${OBJS} ${POBJS} ${SOBJS}: ssh_namespace.h |