nDPI/tests/performance/Makefile.in
Toni df0ff9bcbd
Added gprof CPU/HEAP profiling support. (#1592)
* Some small auto{conf,make} improvements

Signed-off-by: lns <matzeton@googlemail.com>
2022-06-12 21:00:41 +02:00

44 lines
1,001 B
Makefile

INC=-I ../../src/include/ -I ../../src/lib/third_party/include/
LIB=../../src/lib/libndpi.a @ADDITIONAL_LIBS@ @LIBS@
TOOLS=substringsearch patriciasearch gcrypt-int gcrypt-gnu
TESTS=substring_test patricia_test
all: $(TESTS)
tools: $(TOOLS)
gcrypt-int: gcrypt.c Makefile
$(CC) $(INC) @CFLAGS@ gcrypt.c -o $@
gcrypt-gnu: gcrypt.c Makefile
$(CC) $(INC) @CFLAGS@ -DHAVE_LIBGCRYPT gcrypt.c -o $@ -lgcrypt
substringsearch: substringsearch.c Makefile
$(CC) $(INC) @CFLAGS@ substringsearch.c -o substringsearch $(LIB)
substring_test: substringsearch top-1m.csv
./substringsearch
#
patriciasearch: patriciasearch.c Makefile
$(CC) $(INC) @CFLAGS@ patriciasearch.c -o patriciasearch $(LIB)
patricia_test: patriciasearch blacklist-ip.txt
./patriciasearch
# Alexa Top 1 Million
top-1m.csv:
wget http://s3.amazonaws.com/alexa-static/top-1m.csv.zip
unzip top-1m.csv.zip
blacklist-ip.txt:
wget http://blacklists.ntop.org/blacklist-ip.txt
clean:
/bin/rm -f *zip top-1m.csv blacklist-ip.txt