From ca28fd9a0357da62267a7b5549bdd0dc6ef55d96 Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Sun, 8 Nov 2020 15:13:43 +0100 Subject: Make sure that DAEMON_EVENT_SHUTDOWN gets transmitted before close() (hacky, but works). Signed-off-by: Toni Uhlig --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index a3d2e8170..d9d332f54 100644 --- a/Makefile +++ b/Makefile @@ -69,7 +69,7 @@ RM = rm -f all: help nDPId nDPIsrvd -examples: examples/c-json-stdout/c-json-stdout examples/go-dashboard/go-dashboard +examples: examples/c-captured/c-captured examples/c-json-stdout/c-json-stdout examples/go-dashboard/go-dashboard nDPId: nDPId.c utils.c $(CC) $(PROJECT_CFLAGS) $(CFLAGS) $(PC_CFLAGS) $^ -o $@ $(LDFLAGS) $(PC_LDFLAGS) $(STATIC_NDPI_LIB) $(LIBS) @@ -77,6 +77,9 @@ nDPId: nDPId.c utils.c nDPIsrvd: nDPIsrvd.c utils.c $(CC) $(PROJECT_CFLAGS) $(CFLAGS) $^ -o $@ $(LDFLAGS) $(STATIC_NDPI_LIB) $(LIBS) +examples/c-captured/c-captured: examples/c-captured/c-captured.c + $(CC) $(PROJECT_CFLAGS) $(CFLAGS) $(JSMN_CFLAGS) $@.c -o $@ $(LDFLAGS) $(LIBS) + examples/c-json-stdout/c-json-stdout: examples/c-json-stdout/c-json-stdout.c $(CC) $(PROJECT_CFLAGS) $(CFLAGS) $(JSMN_CFLAGS) $@.c -o $@ $(LDFLAGS) $(LIBS) -- cgit v1.2.3