json2tlv tool to convert from JSON to TLV and run performance tests

This commit is contained in:
Alfredo Cardigliano
2019-07-16 13:31:26 +00:00
parent 2ce4adf09d
commit 4b2fbdb277
2 changed files with 276 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
JSON_INC = $(shell pkg-config --cflags json-c)
JSON_LIB = $(shell pkg-config --libs json-c)
NDPI_HOME = ../../
NDPI_LIB = $(NDPI_HOME)/src/lib/libndpi.a
NDPI_INC = -I$(NDPI_HOME)/src/include -I$(NDPI_HOME)/src/lib/third_party/include
FLAGS=-g
json2tlv: json2tlv.cpp
$(CXX) -std=c++11 $(FLAGS) -o $@ json2tlv.cpp $(JSON_INC) $(NDPI_INC) -Iinclude -march=native $(JSON_LIB) $(NDPI_LIB) -lm -Wall -Wextra
clean:
rm -f json2tlv