aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 105a90b1b..09aa23b5d 100644
--- a/Makefile
+++ b/Makefile
@@ -4,6 +4,10 @@ LIBS = -pthread -lpcap -lm
ifneq ($(CUSTOM_LIBNDPI),)
LIBS += '$(CUSTOM_LIBNDPI)'
+CFLAGS += '-I$(shell dirname $(CUSTOM_LIBNDPI))/../include'
+ifeq ($(findstring $*.so, $(CUSTOM_LIBNDPI)),.so)
+LDFLAGS += -Wl,-rpath='$(shell dirname $(CUSTOM_LIBNDPI))'
+endif
else
LIBS += -lndpi
endif