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