1# $FreeBSD$ 2 3.include <src.opts.mk> 4 5LIB= ssh 6PRIVATELIB= true 7SHLIB_MAJOR= 5 8SRCS= ssherr.c sshbuf.c sshkey.c sshbuf-getput-basic.c \ 9 sshbuf-misc.c sshbuf-getput-crypto.c 10SRCS+= authfd.c authfile.c bufaux.c bufbn.c buffer.c \ 11 canohost.c channels.c cipher.c cipher-aes.c \ 12 cipher-bf1.c cipher-ctr.c cipher-3des1.c cleanup.c \ 13 compat.c compress.c crc32.c deattack.c fatal.c hostfile.c \ 14 log.c match.c md-sha256.c moduli.c nchan.c packet.c \ 15 readpass.c rsa.c ttymodes.c xmalloc.c addrmatch.c \ 16 atomicio.c key.c dispatch.c kex.c mac.c uidswap.c uuencode.c misc.c \ 17 monitor_fdpass.c rijndael.c ssh-dss.c ssh-ecdsa.c ssh-rsa.c dh.c \ 18 kexdh.c kexgex.c kexdhc.c kexgexc.c bufec.c kexecdh.c kexecdhc.c \ 19 msg.c progressmeter.c dns.c entropy.c umac.c umac128.c \ 20 ssh-pkcs11.c krl.c smult_curve25519_ref.c \ 21 kexc25519.c kexc25519c.c poly1305.c chacha.c cipher-chachapoly.c \ 22 ssh-ed25519.c digest-openssl.c hmac.c \ 23 sc25519.c ge25519.c fe25519.c ed25519.c verify.c hash.c blocks.c 24 25# gss-genr.c should be in $SRCS but causes linking problems, so it is 26# compiled directly into sshd instead. 27 28# Portability layer 29SRCS+= bcrypt_pbkdf.c blowfish.c bsd-misc.c explicit_bzero.c fmt_scaled.c \ 30 glob.c openssl-compat.c port-tun.c strtonum.c timingsafe_bcmp.c \ 31 vis.c xcrypt.c xmmap.c 32 33.if ${MK_LDNS} == "no" 34SRCS+= getrrsetbyname.c 35.else 36LDNSDIR= ${.CURDIR}/../../../contrib/ldns 37CFLAGS+= -DHAVE_LDNS=1 -I${LDNSDIR} 38SRCS+= getrrsetbyname-ldns.c 39LIBADD+= ldns 40.endif 41 42CFLAGS+= -I${SSHDIR} -include ssh_namespace.h 43SRCS+= ssh_namespace.h 44 45.if ${MK_KERBEROS_SUPPORT} != "no" 46CFLAGS+= -include krb5_config.h 47SRCS+= krb5_config.h 48.endif 49 50NO_LINT= 51 52LIBADD+= crypto crypt z 53 54.include <bsd.lib.mk> 55 56.PATH: ${SSHDIR} ${SSHDIR}/openbsd-compat 57