Home | History | Annotate | Line # | Download | only in lib
Makefile revision 1.31
      1 #	$NetBSD: Makefile,v 1.31 2020/02/27 00:24:40 christos Exp $
      2 
      3 .include <bsd.own.mk>
      4 
      5 .include "../Makefile.inc"
      6 
      7 CWARNFLAGS.clang+=	-Wno-error=sizeof-array-div
      8 LIB=	ssh
      9 SRCS=\
     10 addrmatch.c \
     11 atomicio.c \
     12 authfd.c \
     13 authfile.c \
     14 bcrypt_pbkdf.c \
     15 bitmap.c \
     16 blowfish.c \
     17 canohost.c \
     18 chacha.c \
     19 channels.c \
     20 cipher-chachapoly.c \
     21 cipher.c \
     22 cleanup.c \
     23 compat.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-ed25519-sk.c \
     60 ssh-pkcs11.c \
     61 ssh-xmss.c \
     62 sshbuf-getput-basic.c \
     63 sshbuf-getput-crypto.c \
     64 sshbuf-misc.c \
     65 sshbuf-io.c \
     66 sshbuf.c \
     67 ssherr.c \
     68 sshkey-xmss.c \
     69 sshkey.c \
     70 ttymodes.c \
     71 uidswap.c \
     72 umac.c \
     73 umac128.c \
     74 utf8.c \
     75 verify.c \
     76 xmalloc.c \
     77 xmss_commons.c \
     78 xmss_fast.c \
     79 xmss_hash.c \
     80 xmss_hash_address.c \
     81 xmss_wots.c
     82 
     83 OPENSSL_SRCS=\
     84 digest-openssl.c \
     85 kexc25519.c \
     86 ssh-dss.c \
     87 ssh-ecdsa.c \
     88 ssh-ecdsa-sk.c \
     89 ssh-rsa.c
     90 
     91 SRCS+=	fmt_scaled.c
     92 SRCS+=	readpassphrase.c getpeereid.c getrrsetbyname.c
     93 COPTS.monitor_fdpass.c+=-Wno-stack-protector
     94 COPTS.xmss_fast.c+=	-Wno-stack-protector
     95 COPTS.xmss_hash.c+=	-Wno-stack-protector
     96 COPTS.xmss_wots.c+=	-Wno-stack-protector
     97 COPTS.sntrup4591761.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 COPTS.hostfile.c+=	${GCC_NO_FORMAT_TRUNCATION}
    128 COPTS.sshkey.c+=	${GCC_NO_FORMAT_TRUNCATION}
    129 
    130 .include <bsd.lib.mk>
    131