mirror of
https://github.com/vel21ripn/nDPI.git
synced 2026-05-22 11:11:02 +00:00
Build system: Apply warning flags consistently to performance tests
Ensure that performance test tools are compiled with project warning flags (NDPI_CFLAGS) for consistent code quality standards across the codebase. Previously, tests/performance/Makefile.in compiled tools (gcrypt-int, gcrypt-gnu, substringsearch, strnstr, geo, patriciasearch) with only user-provided CFLAGS, missing the project's warning flags (-W, -Wall, -Wno-address-of-packed-member). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
9587059598
commit
1bbafbd5d2
1 changed files with 6 additions and 6 deletions
|
|
@ -17,19 +17,19 @@ all: $(TESTS)
|
|||
tools: $(TOOLS)
|
||||
|
||||
gcrypt-int: $(srcdir)/gcrypt.c Makefile $(GEN_HEADERS)
|
||||
$(CC) $(INC) @CFLAGS@ $(srcdir)/gcrypt.c -o $@
|
||||
$(CC) $(INC) @NDPI_CFLAGS@ @CFLAGS@ $(srcdir)/gcrypt.c -o $@
|
||||
|
||||
gcrypt-gnu: $(srcdir)/gcrypt.c Makefile $(GEN_HEADERS)
|
||||
$(CC) $(INC) @CFLAGS@ -DHAVE_LIBGCRYPT $(srcdir)/gcrypt.c -o $@ -lgcrypt
|
||||
$(CC) $(INC) @NDPI_CFLAGS@ @CFLAGS@ -DHAVE_LIBGCRYPT $(srcdir)/gcrypt.c -o $@ -lgcrypt
|
||||
|
||||
substringsearch: $(srcdir)/substringsearch.c Makefile $(GEN_HEADERS)
|
||||
$(CC) $(INC) @CFLAGS@ $(srcdir)/substringsearch.c -o substringsearch $(LIB)
|
||||
$(CC) $(INC) @NDPI_CFLAGS@ @CFLAGS@ $(srcdir)/substringsearch.c -o substringsearch $(LIB)
|
||||
|
||||
strnstr: $(srcdir)/strnstr.cpp Makefile $(GEN_HEADERS)
|
||||
$(CXX) $(INC) @CFLAGS@ $(srcdir)/strnstr.cpp -o strnstr
|
||||
$(CXX) $(INC) @NDPI_CFLAGS@ @CFLAGS@ $(srcdir)/strnstr.cpp -o strnstr
|
||||
|
||||
geo: $(srcdir)/geo.c Makefile $(GEN_HEADERS)
|
||||
$(CC) $(INC) @CFLAGS@ $(srcdir)/geo.c -o geo $(LIB)
|
||||
$(CC) $(INC) @NDPI_CFLAGS@ @CFLAGS@ $(srcdir)/geo.c -o geo $(LIB)
|
||||
|
||||
substring_test: substringsearch top-1m.csv
|
||||
./substringsearch
|
||||
|
|
@ -43,7 +43,7 @@ geo_test: geo
|
|||
#
|
||||
|
||||
patriciasearch: $(srcdir)/patriciasearch.c Makefile $(GEN_HEADERS)
|
||||
$(CC) $(INC) @CFLAGS@ $(srcdir)/patriciasearch.c -o patriciasearch $(LIB)
|
||||
$(CC) $(INC) @NDPI_CFLAGS@ @CFLAGS@ $(srcdir)/patriciasearch.c -o patriciasearch $(LIB)
|
||||
|
||||
patricia_test: patriciasearch blacklist-ip.txt
|
||||
./patriciasearch
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue