NetBSD/usr.sbin/npf/npfctl/Makefile
rmind 39013e66c1 NPF: Major rework -- migrate NPF to the libnv library.
- This conversion significantly simplifies the code and moves NPF to
  a binary serialisation format (replacing the XML-like format).
- Fix some memory/reference leaks and possibly use-after-free bugs.
- Bump NPF_VERSION as this change makes libnpf incompatible with the
  previous versions.  Also, different serialisation format means NPF
  connection/config saving and loading is not compatible with the
  previous versions either.

Thanks to christos@ for extra testing.
2018-09-29 14:41:35 +00:00

26 lines
578 B
Makefile

# $NetBSD: Makefile,v 1.13 2018/09/29 14:41:36 rmind Exp $
.include <bsd.own.mk>
PROG= npfctl
MAN= npfctl.8 npf.conf.5
BINDIR= /sbin
SRCS= npfctl.c npf_var.c npf_data.c npf_build.c npf_extmod.c
SRCS+= npf_bpf_comp.c npf_show.c
CPPFLAGS+= -I${.CURDIR}
SRCS+= npf_scan.l npf_parse.y
YHEADER= 1
PROGDPLIBS+= nv ${NETBSDSRCDIR}/external/bsd/libnv/lib
CPPFLAGS+= -I ${NETBSDSRCDIR}/sys/external/bsd/libnv/dist
LDADD+= -lnpf -lpcap -lutil -ly
DPADD+= ${LIBNPF} ${LIBUTIL} ${LIBPCAP} ${LIBUTIL} ${LIBY}
WARNS= 5
NOLINT= # disabled deliberately
.include <bsd.prog.mk>