1# This version of nc(1) is from LibreSSL 2.PATH: ${.CURDIR}/../../crypto/libressl/apps/nc 3.PATH: ${.CURDIR}/../../crypto/libressl/tls 4 5PROG= nc 6SRCS= netcat.c atomicio.c socks.c 7 8# TLS block (no separate libtls.a) 9SRCS+= tls_bio_cb.c \ 10 tls_client.c \ 11 tls_config.c \ 12 tls_conninfo.c \ 13 tls_keypair.c \ 14 tls_peer.c \ 15 tls_ocsp.c \ 16 tls_server.c \ 17 tls_util.c \ 18 tls_verify.c \ 19 tls.c 20 21WARNS?= 2 22 23CFLAGS+= -DLIBRESSL_INTERNAL -D__BEGIN_HIDDEN_DECLS= -D__END_HIDDEN_DECLS= 24CFLAGS+=-I${.CURDIR}/../../crypto/libressl/include 25 26DPADD= ${LIBCRYPTO} ${LIBSSL} 27LDADD= -lprivate_ssl -lprivate_crypto 28LDFLAGS+= ${PRIVATELIB_LDFLAGS} 29 30.include <bsd.prog.mk> 31