1# $FreeBSD$ 2 3.include <src.opts.mk> 4.include "${SRCTOP}/secure/ssh.mk" 5 6LIB= ssh 7PRIVATELIB= true 8SHLIB_MAJOR= 5 9SRCS= ssh_api.c ssherr.c sshbuf.c sshkey.c sshbuf-getput-basic.c \ 10 sshbuf-misc.c sshbuf-getput-crypto.c krl.c bitmap.c 11SRCS+= authfd.c authfile.c \ 12 canohost.c channels.c cipher.c cipher-aes.c cipher-aesctr.c \ 13 cipher-ctr.c cleanup.c \ 14 compat.c crc32.c fatal.c hostfile.c \ 15 log.c match.c moduli.c nchan.c packet.c opacket.c \ 16 readpass.c ttymodes.c xmalloc.c addrmatch.c \ 17 atomicio.c dispatch.c mac.c uuencode.c misc.c utf8.c \ 18 monitor_fdpass.c rijndael.c ssh-dss.c ssh-ecdsa.c ssh-rsa.c dh.c \ 19 msg.c progressmeter.c dns.c entropy.c umac.c umac128.c \ 20 ssh-pkcs11.c smult_curve25519_ref.c \ 21 poly1305.c chacha.c cipher-chachapoly.c \ 22 ssh-ed25519.c digest-openssl.c digest-libc.c hmac.c \ 23 sc25519.c ge25519.c fe25519.c ed25519.c verify.c hash.c \ 24 kex.c kexdh.c kexgex.c kexecdh.c kexc25519.c \ 25 kexdhc.c kexgexc.c kexecdhc.c kexc25519c.c \ 26 kexdhs.c kexgexs.c kexecdhs.c kexc25519s.c \ 27 platform-pledge.c platform-tracing.c platform-misc.c 28PACKAGE= ssh 29 30# gss-genr.c should be in $SRCS but causes linking problems, so it is 31# compiled directly into sshd instead. 32 33# Portability layer 34SRCS+= bcrypt_pbkdf.c blowfish.c bsd-misc.c bsd-signal.c explicit_bzero.c \ 35 fmt_scaled.c freezero.c glob.c \ 36 libressl-api-compat.c \ 37 openssl-compat.c port-net.c \ 38 realpath.c recallocarray.c strtonum.c timingsafe_bcmp.c vis.c xcrypt.c 39 40.if ${MK_LDNS} == "no" 41SRCS+= getrrsetbyname.c 42.else 43LDNSDIR= ${SRCTOP}/contrib/ldns 44CFLAGS+= -DHAVE_LDNS=1 -I${LDNSDIR} 45SRCS+= getrrsetbyname-ldns.c 46LIBADD+= ldns 47.endif 48 49.if ${MK_GSSAPI} != "no" && ${MK_KERBEROS_SUPPORT} != "no" 50CFLAGS+= -include krb5_config.h 51SRCS+= krb5_config.h 52.endif 53 54.if defined(LOCALBASE) 55CFLAGS+= -D_PATH_SSH_ASKPASS_DEFAULT='"${LOCALBASE}/bin/ssh-askpass"' 56.endif 57 58NO_LINT= 59 60LIBADD+= crypto crypt z 61 62.include <bsd.lib.mk> 63 64.PATH: ${SSHDIR} ${SSHDIR}/openbsd-compat 65