157434Smarkm# $FreeBSD: stable/11/secure/lib/libssh/Makefile 323134 2017-09-02 21:58:42Z des $ 257434Smarkm 3265420Simp.include <src.opts.mk> 4156813Sru 557434SmarkmLIB= ssh 6255386SdesPRIVATELIB= true 7195767SkensmithSHLIB_MAJOR= 5 8294332SdesSRCS= ssh_api.c ssherr.c sshbuf.c sshkey.c sshbuf-getput-basic.c \ 9294365Sjhb sshbuf-misc.c sshbuf-getput-crypto.c krl.c bitmap.c 10294332SdesSRCS+= authfd.c authfile.c bufaux.c bufbn.c bufec.c buffer.c \ 11294332Sdes canohost.c channels.c cipher.c cipher-aes.c cipher-aesctr.c \ 12126282Sdes cipher-bf1.c cipher-ctr.c cipher-3des1.c cleanup.c \ 13294332Sdes compat.c crc32.c deattack.c fatal.c hostfile.c \ 14294332Sdes log.c match.c md-sha256.c moduli.c nchan.c packet.c opacket.c \ 15181111Sdes readpass.c rsa.c ttymodes.c xmalloc.c addrmatch.c \ 16323129Sdes atomicio.c key.c dispatch.c mac.c uidswap.c uuencode.c misc.c utf8.c \ 17221420Sdes monitor_fdpass.c rijndael.c ssh-dss.c ssh-ecdsa.c ssh-rsa.c dh.c \ 18261320Sdes msg.c progressmeter.c dns.c entropy.c umac.c umac128.c \ 19294332Sdes ssh-pkcs11.c smult_curve25519_ref.c \ 20294332Sdes poly1305.c chacha.c cipher-chachapoly.c \ 21294332Sdes ssh-ed25519.c digest-openssl.c digest-libc.c hmac.c \ 22294332Sdes sc25519.c ge25519.c fe25519.c ed25519.c verify.c hash.c blocks.c \ 23294332Sdes kex.c kexdh.c kexgex.c kexecdh.c kexc25519.c \ 24294332Sdes kexdhc.c kexgexc.c kexecdhc.c kexc25519c.c \ 25296633Sdes kexdhs.c kexgexs.c kexecdhs.c kexc25519s.c \ 26323129Sdes platform-pledge.c platform-tracing.c 27298107SgjbPACKAGE= ssh 28147098Sdes 29147098Sdes# gss-genr.c should be in $SRCS but causes linking problems, so it is 30147098Sdes# compiled directly into sshd instead. 31147098Sdes 3298820Sdes# Portability layer 33263712SdesSRCS+= bcrypt_pbkdf.c blowfish.c bsd-misc.c explicit_bzero.c fmt_scaled.c \ 34294464Sdes glob.c openssl-compat.c port-tun.c realpath.c strtonum.c \ 35323134Sdes timingsafe_bcmp.c vis.c xcrypt.c 3657434Smarkm 37255460Sdes.if ${MK_LDNS} == "no" 38255460SdesSRCS+= getrrsetbyname.c 39255460Sdes.else 40319189SngieLDNSDIR= ${SRCTOP}/contrib/ldns 41255460SdesCFLAGS+= -DHAVE_LDNS=1 -I${LDNSDIR} 42255460SdesSRCS+= getrrsetbyname-ldns.c 43275077SbaptLIBADD+= ldns 44106538Sobrien.endif 45103960Smarkm 46158519SdesCFLAGS+= -I${SSHDIR} -include ssh_namespace.h 47291941SbdrewerySRCS+= ssh_namespace.h 48124250Sru 49312268Sngie.if ${MK_GSSAPI} != "no" && ${MK_KERBEROS_SUPPORT} != "no" 50255829SdesCFLAGS+= -include krb5_config.h 51291941SbdrewerySRCS+= krb5_config.h 52106132Sdes.endif 53106132Sdes 54139106SruNO_LINT= 5557434Smarkm 56275077SbaptLIBADD+= crypto crypt z 5790405Sru 5857434Smarkm.include <bsd.lib.mk> 5974818Sru 60106538Sobrien.PATH: ${SSHDIR} ${SSHDIR}/openbsd-compat 61