39013e66c1
- 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.
26 lines
578 B
Makefile
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>
|