aboutsummaryrefslogtreecommitdiff
path: root/example/Makefile.dpdk.in
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2018-11-10 16:10:22 +0100
committerLuca Deri <deri@ntop.org>2018-11-10 16:10:22 +0100
commit71b2c19cf28f72ad2e876719af88c7841c2aea84 (patch)
tree8d5d8c1be904f1b8ff88aaa3adcac0bdcfbbfdff /example/Makefile.dpdk.in
parent6d929bf4cc48d54db91678a24ef0afb2e20382d7 (diff)
Added DPDK support to ndpiReader
Diffstat (limited to 'example/Makefile.dpdk.in')
-rw-r--r--example/Makefile.dpdk.in27
1 files changed, 27 insertions, 0 deletions
diff --git a/example/Makefile.dpdk.in b/example/Makefile.dpdk.in
new file mode 100644
index 000000000..8519d7d0e
--- /dev/null
+++ b/example/Makefile.dpdk.in
@@ -0,0 +1,27 @@
+#
+# Run 'make -f Makefile.dpdk' to compile the DPDK examples
+#
+# See http://core.dpdk.org/doc/quick-start/ for DPDK installation and setup
+#
+ifeq ($(RTE_SDK),)
+#$(error "Please define RTE_SDK environment variable")
+RTE_SDK = $(HOME)/DPDK
+RTE_TARGET = build
+endif
+
+# Default target, can be overridden by command line or environment
+RTE_TARGET ?= x86_64-native-linuxapp-gcc
+
+include $(RTE_SDK)/mk/rte.vars.mk
+
+APP = ndpiReader
+LIBNDPI = $(PWD)/../src/lib/libndpi.a
+
+SRCS-y := ndpi_util.c ndpiReader.c
+
+CFLAGS += -g
+CFLAGS += -Wno-strict-prototypes -Wno-missing-prototypes -Wno-missing-declarations -Wno-unused-parameter -I $(PWD)/../src/include @CFLAGS@ -DUSE_DPDK
+LDLIBS = $(LIBNDPI) -lpthread @LDFLAGS@
+
+include $(RTE_SDK)/mk/rte.extapp.mk
+