From 14df89ffb00264b014bca355b2f34941fe4f0d03 Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Mon, 19 Jul 2021 22:41:11 +0200 Subject: Added benchmarking support via Google's libbenchmark. * disabled confusing GMake builtin rules which are not used anyway * updated .gitignore Signed-off-by: Toni Uhlig --- tests/unit/Makefile.in | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'tests/unit') diff --git a/tests/unit/Makefile.in b/tests/unit/Makefile.in index 88f100ae1..61d468444 100644 --- a/tests/unit/Makefile.in +++ b/tests/unit/Makefile.in @@ -1,11 +1,13 @@ +MAKEFLAGS += --no-builtin-rules + CC=@CC@ CXX=@CXX@ SRCHOME=../../src -CFLAGS=-g -fPIC -DPIC -I$(SRCHOME)/include @JSONC_CFLAGS@ @PCAP_INC@ @CFLAGS@ +CFLAGS=-g -fPIC -DPIC -I$(SRCHOME)/include @PCAP_INC@ @CFLAGS@ LIBNDPI=$(SRCHOME)/lib/libndpi.a -LDFLAGS=$(LIBNDPI) @PCAP_LIB@ @LIBS@ @ADDITIONAL_LIBS@ @JSONC_LIBS@ -lpthread -lm @LDFLAGS@ +LDFLAGS=$(LIBNDPI) @PCAP_LIB@ @LIBS@ @ADDITIONAL_LIBS@ -lpthread -lm @LDFLAGS@ HEADERS=$(SRCHOME)/include/ndpi_api.h $(SRCHOME)/include/ndpi_typedefs.h $(SRCHOME)/include/ndpi_protocol_ids.h OBJS=unit PREFIX?=@prefix@ @@ -30,7 +32,7 @@ install: echo "" distdir: - + find . -maxdepth 1 -type f -name '*.c' -o -name '*.h' -o -name '*.py' | xargs -I'{}' cp '{}' '$(distdir)/{}' distclean: clean /bin/rm -f Makefile -- cgit v1.2.3