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