1 # $NetBSD: Makefile,v 1.27 2019/04/20 17:16:41 christos 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 chacha.c \ 18 channels.c \ 19 cipher-chachapoly.c \ 20 cipher.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 kexecdh.c \ 38 kexgen.c \ 39 kexgex.c \ 40 kexgexc.c \ 41 kexsntrup4591761x25519.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 packet.c \ 51 poly1305.c \ 52 progressmeter.c \ 53 readpass.c \ 54 recallocarray.c \ 55 sc25519.c \ 56 smult_curve25519_ref.c \ 57 sntrup4591761.c \ 58 ssh-ed25519.c \ 59 ssh-pkcs11.c \ 60 ssh-xmss.c \ 61 sshbuf-getput-basic.c \ 62 sshbuf-getput-crypto.c \ 63 sshbuf-misc.c \ 64 sshbuf.c \ 65 ssherr.c \ 66 sshkey-xmss.c \ 67 sshkey.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 OPENSSL_SRCS=\ 83 digest-openssl.c \ 84 kexc25519.c \ 85 ssh-dss.c \ 86 ssh-ecdsa.c \ 87 ssh-rsa.c 88 89 SRCS+= fmt_scaled.c 90 SRCS+= readpassphrase.c getpeereid.c getrrsetbyname.c 91 COPTS.monitor_fdpass.c+=-Wno-stack-protector 92 COPTS.xmss_fast.c+= -Wno-stack-protector 93 COPTS.xmss_hash.c+= -Wno-stack-protector 94 COPTS.xmss_wots.c+= -Wno-stack-protector 95 COPTS.sntrup4591761.c+= -Wno-stack-protector 96 97 .if WITH_OPENSSL 98 SRCS+= ${OPENSSL_SRCS} 99 .else 100 SRCS+= digest-libc.c 101 .endif 102 103 CPPFLAGS+= -DHAVE_BLF_H 104 105 CPPFLAGS+= -I${SSHDIST} 106 .PATH: ${SSHDIST} 107 108 LIBDPLIBS+= crypto ${NETBSDSRCDIR}/crypto/external/bsd/${EXTERNAL_OPENSSL_SUBDIR}/lib/libcrypto \ 109 crypt ${NETBSDSRCDIR}/lib/libcrypt \ 110 z ${NETBSDSRCDIR}/lib/libz 111 112 .for f in dns channels hostfile ssh-pkcs11 113 COPTS.${f}.c+= -Wno-pointer-sign 114 .endfor 115 116 # XXX 117 COPTS.channels.c+= -fno-strict-aliasing 118 119 # XXX 120 .if ${MACHINE} == "vax" 121 COPTS.poly1305.c+= -O0 122 COPTS.umac.c+= -O0 123 .endif 124 125 .include <bsd.lib.mk> 126