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