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