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.
37 lines
610 B
Makefile
37 lines
610 B
Makefile
# $NetBSD: Makefile,v 1.17 2018/09/29 14:41:37 rmind Exp $
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
PROG= identd
|
|
SRCS= identd.c
|
|
MAN= identd.8
|
|
|
|
# Build with IP Filter support?
|
|
.if (${MKIPFILTER} != "no")
|
|
SRCS+= ipf.c
|
|
CPPFLAGS+=-DWITH_IPF
|
|
.endif
|
|
|
|
# Build with pf support?
|
|
.if (${MKPF} != "no")
|
|
SRCS+= pf.c
|
|
CPPFLAGS+=-DWITH_PF
|
|
.endif
|
|
|
|
# Build with npf support?
|
|
.if (${MKNPF} != "no")
|
|
SRCS+= npf.c
|
|
CPPFLAGS+=-DWITH_NPF
|
|
|
|
PROGDPLIBS+= nv ${NETBSDSRCDIR}/external/bsd/libnv/lib
|
|
CPPFLAGS+= -I ${NETBSDSRCDIR}/sys/external/bsd/libnv/dist
|
|
|
|
LDADD+=-lnpf
|
|
DPADD+=${LIBNPF}
|
|
.endif
|
|
|
|
# XXX
|
|
COPTS+= -fno-strict-aliasing
|
|
|
|
.include <bsd.prog.mk>
|