aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2020-08-05 16:03:28 +0200
committerToni Uhlig <matzeton@googlemail.com>2020-08-05 16:03:28 +0200
commit6031b07eb4f50af49bcd99951a28bd63dbf1c5b6 (patch)
tree88d634ad914ac06abb622393b0593c35254320ac /Makefile
parent88aa7681842e294d4cb7c440abbbd51dacf54153 (diff)
added utils module to share some code parts with other apps
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 1bee6127d..0ba17bd30 100644
--- a/Makefile
+++ b/Makefile
@@ -43,11 +43,11 @@ all: help nDPId nDPIsrvd
examples: examples/c-json-stdout/c-json-stdout
-nDPId: nDPId.c
- $(CC) $(PROJECT_CFLAGS) $(CFLAGS) $@.c -o $@ $(LDFLAGS) $(LIBS)
+nDPId: nDPId.c utils.c
+ $(CC) $(PROJECT_CFLAGS) $(CFLAGS) $^ -o $@ $(LDFLAGS) $(LIBS)
-nDPIsrvd: nDPIsrvd.c
- $(CC) $(PROJECT_CFLAGS) $(CFLAGS) $@.c -o $@ $(LDFLAGS) $(LIBS)
+nDPIsrvd: nDPIsrvd.c utils.c
+ $(CC) $(PROJECT_CFLAGS) $(CFLAGS) $^ -o $@ $(LDFLAGS) $(LIBS)
examples/c-json-stdout/c-json-stdout:
ifneq ($(DISABLE_JSMN),yes)