aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2020-11-08 15:13:43 +0100
committerToni Uhlig <matzeton@googlemail.com>2020-11-08 15:14:08 +0100
commitca28fd9a0357da62267a7b5549bdd0dc6ef55d96 (patch)
tree571619fb4c53995b977187d75fc468e024112e8b /Makefile
parent54f6ab21925f990a2f7ab49e6b1dbb1ebb2ae65a (diff)
Make sure that DAEMON_EVENT_SHUTDOWN gets transmitted before close() (hacky, but works).
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
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)