From 1ec52e890d2c8d6488f36fa9d212817e63e97560 Mon Sep 17 00:00:00 2001 From: lgcosta Date: Wed, 11 Nov 2026 18:50:56 -0300 Subject: [PATCH] tools: build pdivert (static), single 'all' target --- tools/Makefile | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/tools/Makefile b/tools/Makefile index 0bb21e5..7266cea 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -57,7 +57,7 @@ GOODTESTS := tests/01_basic.conf tests/02_translations.conf \ tests/03_queues_scrub.conf .PHONY: all pfctl abitest test abi clean -all: pfctl abitest +all: pfctl abitest pdivert pfctl: $(OUT)/pfctl @@ -178,3 +178,15 @@ test: $(OUT)/pfctl clean: rm -rf $(OUT) rm -f $(GENHDRS) + +# --------------------------------------------------------------------------- +# pdivert — divert(4) relay for the in-module AF_DIVERT family (self-contained) +PD := $(OUT)/pdivert + +pdivert: $(PD) + +$(PD): pdivert/pdivert.c + @mkdir -p $(OUT) + $(CC) $(CFLAGS) $(LDFLAGS) -o $@ pdivert/pdivert.c + +clean: