1# $NetBSD: Makefile,v 1.19 2016/08/02 13:45:13 christos Exp $ 2 3.include <bsd.own.mk> 4 5.include "../Makefile.inc" 6 7LIB= ssh 8SRCS=\ 9addrmatch.c \ 10atomicio.c \ 11authfd.c \ 12authfile.c \ 13bcrypt_pbkdf.c \ 14bitmap.c \ 15blocks.c \ 16blowfish.c \ 17bufaux.c \ 18bufbn.c \ 19bufec.c \ 20buffer.c \ 21canohost.c \ 22channels.c \ 23cipher-3des1.c \ 24cipher-bf1.c \ 25cipher-chachapoly.c \ 26cipher.c \ 27chacha.c \ 28cleanup.c \ 29compat.c \ 30crc32.c \ 31deattack.c \ 32dh.c \ 33dispatch.c \ 34dns.c \ 35ed25519.c \ 36fatal.c \ 37fe25519.c \ 38ge25519.c \ 39hash.c \ 40hmac.c \ 41hostfile.c \ 42kex.c \ 43kexdh.c \ 44kexdhc.c \ 45kexecdh.c \ 46kexecdhc.c \ 47kexgex.c \ 48kexgexc.c \ 49key.c \ 50krl.c \ 51log.c \ 52mac.c \ 53match.c \ 54misc.c \ 55monitor_fdpass.c \ 56msg.c \ 57nchan.c \ 58opacket.c \ 59packet.c \ 60poly1305.c \ 61progressmeter.c \ 62readpass.c \ 63rsa.c \ 64sc25519.c \ 65smult_curve25519_ref.c \ 66sshbuf-getput-basic.c \ 67sshbuf-misc.c \ 68sshbuf-getput-crypto.c \ 69sshbuf.c \ 70ssherr.c \ 71sshkey.c \ 72ssh-ed25519.c \ 73ssh-pkcs11.c \ 74ttymodes.c \ 75uidswap.c \ 76umac.c \ 77umac128.c \ 78utf8.c \ 79uuencode.c \ 80verify.c \ 81xmalloc.c 82 83OPENSSL_SRCS=\ 84digest-openssl.c \ 85kexc25519.c \ 86kexc25519c.c \ 87kexc25519s.c \ 88ssh-dss.c \ 89ssh-ecdsa.c \ 90ssh-rsa.c 91 92SRCS+= fmt_scaled.c 93SRCS+= readpassphrase.c getpeereid.c getrrsetbyname.c 94COPTS.monitor_fdpass.c = -Wno-stack-protector 95 96.if WITH_OPENSSL 97SRCS+= ${OPENSSL_SRCS} 98.else 99SRCS+= digest-libc.c 100.endif 101 102CPPFLAGS+= -DHAVE_BLF_H 103 104CPPFLAGS+= -I${SSHDIST} 105.PATH: ${SSHDIST} 106 107LIBDPLIBS+= crypto ${NETBSDSRCDIR}/crypto/external/bsd/openssl/lib/libcrypto \ 108 crypt ${NETBSDSRCDIR}/lib/libcrypt \ 109 z ${NETBSDSRCDIR}/lib/libz 110 111.for f in dns channels hostfile ssh-pkcs11 112COPTS.${f}.c+= -Wno-pointer-sign 113.endfor 114 115# XXX 116COPTS.channels.c+= -fno-strict-aliasing 117 118.include <bsd.lib.mk> 119