freebsd-dev/usr.bin/nc/Makefile
Edward Tomasz Napierala 1e62ecedf2 Add -M option to nc(1), which makes it print the TCP connection
statistics obtained with stats(3) in JSON format to standard error.

Reviewed by:	allanjude, thj, cem (earlier version)
Tested by:	thj
MFC after:	2 weeks
Relnotes:	yes
Sponsored by:	Klara Inc.
Differential Revision:	https://reviews.freebsd.org/D21324
2019-12-14 10:53:52 +00:00

21 lines
273 B
Makefile

# $FreeBSD$
.include <src.opts.mk>
.PATH: ${SRCTOP}/contrib/netcat
PROG= nc
SRCS= netcat.c atomicio.c socks.c
CFLAGS+=-DIPSEC
LIBADD= ipsec
.if ${MK_STATS} != "no" && !defined(RESCUE)
LIBADD+= sbuf stats
CFLAGS+= -DWITH_STATS
.endif
WARNS?= 2
.include <bsd.prog.mk>