1# $NetBSD: Makefile,v 1.25 2018/04/06 18:59:00 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 \ 15blowfish.c \ 16bufaux.c \ 17bufbn.c \ 18bufec.c \ 19buffer.c \ 20canohost.c \ 21channels.c \ 22cipher-chachapoly.c \ 23cipher.c \ 24chacha.c \ 25cleanup.c \ 26compat.c \ 27crc32.c \ 28dh.c \ 29dispatch.c \ 30dns.c \ 31ed25519.c \ 32fatal.c \ 33fe25519.c \ 34freezero.c \ 35ge25519.c \ 36hash.c \ 37hmac.c \ 38hostfile.c \ 39kex.c \ 40kexdh.c \ 41kexdhc.c \ 42kexecdh.c \ 43kexecdhc.c \ 44kexgex.c \ 45kexgexc.c \ 46key.c \ 47krl.c \ 48log.c \ 49mac.c \ 50match.c \ 51misc.c \ 52monitor_fdpass.c \ 53msg.c \ 54nchan.c \ 55opacket.c \ 56packet.c \ 57poly1305.c \ 58progressmeter.c \ 59readpass.c \ 60recallocarray.c \ 61sc25519.c \ 62smult_curve25519_ref.c \ 63sshbuf-getput-basic.c \ 64sshbuf-misc.c \ 65sshbuf-getput-crypto.c \ 66sshbuf.c \ 67ssherr.c \ 68sshkey.c \ 69sshkey-xmss.c \ 70ssh-ed25519.c \ 71ssh-pkcs11.c \ 72ssh-xmss.c \ 73ttymodes.c \ 74uidswap.c \ 75umac.c \ 76umac128.c \ 77utf8.c \ 78uuencode.c \ 79verify.c \ 80xmalloc.c \ 81xmss_commons.c \ 82xmss_fast.c \ 83xmss_hash.c \ 84xmss_hash_address.c \ 85xmss_wots.c 86 87 88OPENSSL_SRCS=\ 89digest-openssl.c \ 90kexc25519.c \ 91kexc25519c.c \ 92kexc25519s.c \ 93ssh-dss.c \ 94ssh-ecdsa.c \ 95ssh-rsa.c 96 97SRCS+= fmt_scaled.c 98SRCS+= readpassphrase.c getpeereid.c getrrsetbyname.c 99COPTS.monitor_fdpass.c+=-Wno-stack-protector 100COPTS.xmss_fast.c+= -Wno-stack-protector 101COPTS.xmss_hash.c+= -Wno-stack-protector 102COPTS.xmss_wots.c+= -Wno-stack-protector 103 104.if WITH_OPENSSL 105SRCS+= ${OPENSSL_SRCS} 106.else 107SRCS+= digest-libc.c 108.endif 109 110CPPFLAGS+= -DHAVE_BLF_H 111 112CPPFLAGS+= -I${SSHDIST} 113.PATH: ${SSHDIST} 114 115LIBDPLIBS+= crypto ${NETBSDSRCDIR}/crypto/external/bsd/${EXTERNAL_OPENSSL_SUBDIR}/lib/libcrypto \ 116 crypt ${NETBSDSRCDIR}/lib/libcrypt \ 117 z ${NETBSDSRCDIR}/lib/libz 118 119.for f in dns channels hostfile ssh-pkcs11 120COPTS.${f}.c+= -Wno-pointer-sign 121.endfor 122 123# XXX 124COPTS.channels.c+= -fno-strict-aliasing 125 126# XXX 127.if ${MACHINE} == "vax" 128COPTS.poly1305.c+= -O0 129COPTS.umac.c+= -O0 130.endif 131 132.include <bsd.lib.mk> 133