diff options
author | Kristof Provost <kp@FreeBSD.org> | 2021-03-26 10:38:58 +0000 |
---|---|---|
committer | Kristof Provost <kp@FreeBSD.org> | 2021-04-10 09:16:02 +0000 |
commit | 0d71f9f36e6c1849fdaf6c1edc1178be07357034 (patch) | |
tree | 44a3863fc26a749f84e7cf15e547ca8677032937 /sbin/pfctl/Makefile | |
parent | 0dd13c77432ade1ae94c9661cbad5537e3e6ab1d (diff) | |
download | src-0d71f9f36e6c1849fdaf6c1edc1178be07357034.tar.gz src-0d71f9f36e6c1849fdaf6c1edc1178be07357034.zip |
pfctl: Move ioctl abstraction functions into libpfctl
Introduce a library to wrap the pf ioctl interface.
MFC after: 4 weeks
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D29562
Diffstat (limited to 'sbin/pfctl/Makefile')
-rw-r--r-- | sbin/pfctl/Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sbin/pfctl/Makefile b/sbin/pfctl/Makefile index c84d558c989d..49bdfb9e3733 100644 --- a/sbin/pfctl/Makefile +++ b/sbin/pfctl/Makefile @@ -9,13 +9,14 @@ MAN= pfctl.8 SRCS = pfctl.c parse.y pfctl_parser.c pf_print_state.c pfctl_altq.c SRCS+= pfctl_osfp.c pfctl_radix.c pfctl_table.c pfctl_qstats.c -SRCS+= pfctl_optimize.c pfctl_ioctl.c +SRCS+= pfctl_optimize.c SRCS+= pf_ruleset.c WARNS?= 2 CFLAGS+= -Wall -Wmissing-prototypes -Wno-uninitialized CFLAGS+= -Wstrict-prototypes CFLAGS+= -DENABLE_ALTQ -I${.CURDIR} +CFLAGS+= -I${SRCTOP}/lib/libpfctl -I${OBJTOP}/lib/libpfctl # Need to use "WITH_" prefix to not conflict with the l/y INET/INET6 keywords .if ${MK_INET6_SUPPORT} != "no" @@ -27,7 +28,7 @@ CFLAGS+= -DWITH_INET YFLAGS= -LIBADD= m md nv +LIBADD= m md pfctl HAS_TESTS= SUBDIR.${MK_TESTS}+= tests |