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