mirror of
https://github.com/vel21ripn/nDPI.git
synced 2026-04-29 07:29:39 +00:00
- take libpcap from configure information. - clean up distclean. Signed-off-by: Vitaliy Ivanov <vitaliyi@interfacemasters.com>
27 lines
757 B
Text
27 lines
757 B
Text
#
|
|
# 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.dpdk
|
|
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) @PCAP_LIB@ -lpthread @LDFLAGS@
|
|
|
|
include $(RTE_SDK)/mk/rte.extapp.mk
|
|
|