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