Fix compilation on Windows. "dirent.h" file has been taken from https://github.com/tronkko/dirent/ Fix Python bindings Fix some warnings with x86_64-w64-mingw32-gcc: ``` protocols/dns.c: In function ‘ndpi_search_dns’: protocols/dns.c:775:41: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] 775 | unsigned long first_element_len = (unsigned long)dot - (unsigned long)_hostname; | ^ protocols/dns.c:775:62: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] 775 | unsigned long first_element_len = (unsigned long)dot - (unsigned long)_hostname; | ``` ``` In file included from ndpi_bitmap64.c:31: third_party/include/binaryfusefilter.h: In function ‘binary_fuse8_hash’: third_party/include/binaryfusefilter.h:160:32: error: left shift count >= width of type [-Werror=shift-count-overflow] 160 | uint64_t hh = hash & ((1UL << 36) - 1); ``` ``` In function ‘ndpi_match_custom_category’, inlined from ‘ndpi_fill_protocol_category.part.0’ at ndpi_main.c:7056:16: ndpi_main.c:3419:3: error: ‘strncpy’ specified bound depends on the length of the source argument [-Werror=stringop-overflow=] 3419 | strncpy(buf, name, name_len); ```
46 lines
1.7 KiB
Makefile
46 lines
1.7 KiB
Makefile
ACLOCAL_AMFLAGS = -I m4
|
|
SUBDIRS = src/lib @EXTRA_TARGETS@
|
|
|
|
if BUILD_FUZZTARGETS
|
|
SUBDIRS += fuzz
|
|
endif
|
|
|
|
pkgconfigdir = $(libdir)/pkgconfig
|
|
pkgconfig_DATA = libndpi.pc
|
|
|
|
EXTRA_DIST = README.md README.fuzzer.md CHANGELOG.md CONTRIBUTING.md \
|
|
autogen.sh wireshark windows utils packages \
|
|
influxdb/Makefile.in influxdb/metric_anomaly.c influxdb/README.txt \
|
|
rrdtool/Makefile.in rrdtool/README.txt rrdtool/rrd_anomaly.c rrdtool/rrd_similarity.c \
|
|
doc/requirements.txt doc/conf.py doc/flow_risks.rst doc/protocols.rst doc/guide/nDPI_QuickStartGuide.pages \
|
|
doc/guide/nDPI_QuickStartGuide.pdf doc/img/logo.png doc/index.rst \
|
|
doc/Makefile doc/what_is_ndpi.rst \
|
|
python/DEV_GUIDE.md python/dev_requirements.txt python/ndpi_example.py python/ndpi/__init__.py \
|
|
python/ndpi/ndpi_build.py python/ndpi/ndpi.py python/README.md \
|
|
python/requirements.txt python/setup.py python/tests.py \
|
|
lists/107_gambling.list \
|
|
lists/107_gambling_custom.list \
|
|
lists/README.md \
|
|
sonar-project.properties .github .ci-ignore
|
|
|
|
doc:
|
|
make -C doc html
|
|
|
|
doc-view:
|
|
python3 -m http.server --bind 127.0.0.1 --directory doc/_build/html 8080
|
|
|
|
coverage: all
|
|
mkdir -vp coverage_report/ndpi_coverage_report
|
|
lcov --directory . --capture --output-file lcov.info
|
|
genhtml -o coverage_report/ndpi_coverage_report lcov.info
|
|
|
|
clean-coverage:
|
|
rm -f lcov.info
|
|
find . -type f -name "*.gcda" -exec rm "{}" +
|
|
find . -type f -name "*.gcno" -exec rm "{}" +
|
|
|
|
changelog:
|
|
git log --since={`curl -s https://github.com/ntop/ndpi/releases | grep datetime | head -n1 | egrep -o "[0-9]+\-[0-9]+\-[0-9]+"`} --name-only --pretty=format:" - %s" | grep "^ " > CHANGELOG.latest
|
|
|
|
.PHONY: doc doc-view coverage clean-coverage changelog
|