nrelease: Add root_rw_mount="NO" to rc.conf to fix ISO boot
[dragonfly.git] / lib / libssh / Makefile
blobc0d3b75d1e6d511595e8f6ec41f1d01cc6d845ba
1 LIB= private_ssh
2 SHLIB_MAJOR= 5
3 PRIVATELIB= shpub
5 .PATH: ${.CURDIR}/../../crypto/openssh
7 # SRCS built from /usr/src/crypto/openssh/Makefile.inc,
8 # XMSS_OBJS
9 # LIBOPENSSH_OBJS
10 # LIBSHS_OBJS
11 # + ssh-sk-client.c
13 # ssh-sk-client.c is used by sshkey.c from LIBOPENSSH_OBJS and had
14 # to be included in libssh in order for initrd rescue to build.
16 SRCS= ssh_api.c \
17 ssherr.c \
18 sshbuf.c \
19 sshkey.c \
20 sshbuf-getput-basic.c \
21 sshbuf-misc.c \
22 sshbuf-getput-crypto.c \
23 krl.c \
24 bitmap.c \
26 ssh-xmss.c \
27 sshkey-xmss.c \
28 xmss_commons.c \
29 xmss_fast.c \
30 xmss_hash.c \
31 xmss_hash_address.c \
32 xmss_wots.c \
34 authfd.c authfile.c \
35 canohost.c channels.c cipher.c cipher-aes.c cipher-aesctr.c \
36 cleanup.c \
37 compat.c fatal.c hostfile.c \
38 log.c match.c moduli.c nchan.c packet.c \
39 readpass.c ttymodes.c xmalloc.c addr.c addrmatch.c \
40 atomicio.c dispatch.c mac.c misc.c utf8.c \
41 monitor_fdpass.c rijndael.c ssh-dss.c ssh-ecdsa.c ssh-ecdsa-sk.c \
42 ssh-ed25519-sk.c ssh-rsa.c dh.c \
43 msg.c progressmeter.c dns.c entropy.c gss-genr.c umac.c umac128.c \
44 ssh-pkcs11.c smult_curve25519_ref.c \
45 poly1305.c chacha.c cipher-chachapoly.c cipher-chachapoly-libcrypto.c \
46 ssh-ed25519.c digest-openssl.c digest-libc.c \
47 hmac.c ed25519.c hash.c \
48 kex.c kex-names.c kexdh.c kexgex.c kexecdh.c kexc25519.c \
49 kexgexc.c kexgexs.c \
50 kexsntrup761x25519.c sntrup761.c kexgen.c \
51 sftp-realpath.c platform-pledge.c platform-tracing.c platform-misc.c \
52 sshbuf-io.c \
54 ssh-sk-client.c
56 # not implemented: platform-pledge.c platform-tracing.c
57 # only for scp/sftp: progressmeter.c
58 # disabled: ssh-pkcs11.c
59 # no GSSAPI: gss-genr.c
60 # no openssl: cipher-aes.c cipher-aesctr.c cipher-ctr.c crc32.c digest-libc.c rijndael.c
61 # no xmss: ssh-xmss.c sshkey-xmss.c xmss_commons.c xmss_fast.c xmss_hash.c
62 # xmss_hash_address.c xmss_wots.c
64 # Portability layer
65 .PATH: ${.CURDIR}/openbsd-compat
66 SRCS+= bcrypt_pbkdf.c blowfish.c bsd-misc.c bsd-signal.c fmt_scaled.c \
67 getrrsetbyname-ldns.c glob.c openssl-compat.c port-net.c xcrypt.c
69 # not needed compat:
70 # arc4random.c base64.c basename.c bindresvport.c bsd-asprintf.c
71 # bsd-closefrom.c bsd-cygwin_util.c bsd-err.c bsd-flock.c bsd-getline.c
72 # bsd-getpagesize.c bsd-getpeereid.c bsd-malloc.c bsd-nextstep.c bsd-openpty.c
73 # bsd-poll.c bsd-setres_id.c bsd-snprintf.c bsd-statvfs.c bsd-waitpid.c
74 # daemon.c dirname.c explicit_bzero.c fake-rfc2553.c freezero.c getcwd.c
75 # getgrouplist.c getopt_long.c inet_aton.c inet_ntoa.c inet_ntop.c
76 # kludge-fd_set.c libressl-api-compat.c md5.c mktemp.c
77 # port-aix.c port-irix.c port-linux.c port-solaris.c port-uw.c
78 # pwcache.c readpassphrase.c reallocarray.c recallocarray.c rmd160.c
79 # rresvport.c setenv.c setproctitle.c sha1.c sha2.c sigact.c
80 # strcasestr.c strlcat.c strlcpy.c strmode.c strndup.c strnlen.c strptime.c
81 # strsep.c strtoll.c strtonum.c strtoul.c strtoull.c timingsafe_bcmp.c vis.c
83 MAN= moduli.5
85 WARNS?= 2
86 NO_STRICT_ALIASING=
88 CFLAGS+= -I${.CURDIR} -I${.CURDIR}/../../crypto/openssh
89 CFLAGS+= -I${.CURDIR}/../../crypto/libressl/include
90 CFLAGS+= -I${.CURDIR}/../../contrib/ldns
91 CFLAGS+= -I${.CURDIR}/../libldns
92 DPADD= ${LIBCRYPTO} ${LIBLDNS} ${LIBUTIL} ${LIBZ}
93 LDADD= -lprivate_crypto -lprivate_ldns -lutil -lz
94 LDFLAGS+= -rpath /usr/lib/priv ${PRIVATELIB_LDFLAGS}
96 .include <bsd.lib.mk>