tools: build pdivert (static), single 'all' target

This commit is contained in:
lgcosta committed 2026-11-11 18:50:56 -03:00
1 parent 0fe4d83b93
commit 1ec52e890d
1 file changed
+13 -1
+13 -1
View File
@@ -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: