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