1
0
Fork 0
mirror of https://github.com/tailix/libkernaux.git synced 2024-11-13 11:04:27 -05:00
libkernaux/make/checks.am

41 lines
1.1 KiB
Text
Raw Normal View History

2022-12-03 05:23:52 -05:00
# vim: set syntax=automake:
MY_CHECKS =
check: $(MY_CHECKS)
if ENABLE_CHECKS_CPPCHECK
MY_CHECKS += check-cppcheck
check-cppcheck:
$(CPPCHECK) $(CPPCHECK_ARGS) $(CPPCHECK_INC) $(CPPCHECK_SUPPRESS) $(CPPCHECK_PATHS)
2022-12-03 16:44:40 -05:00
CPPCHECK_ARGS = \
--quiet \
--error-exitcode=1 \
--std=c99 \
--inline-suppr \
--enable=warning,style,performance,portability
CPPCHECK_INC = \
-I$(top_builddir)/include \
-I$(top_srcdir)/include
CPPCHECK_SUPPRESS = \
2022-12-12 21:55:09 -05:00
--suppress='constArgument:$(top_srcdir)/examples/macro_cast.c' \
--suppress='constParameter:$(top_srcdir)/examples/printf_file*.c' \
--suppress='unusedStructMember:$(top_srcdir)/examples/*.c' \
--suppress='unusedStructMember:$(top_srcdir)/tests/test_multiboot2_info_*.c' \
--suppress='unusedVariable'
2022-12-03 16:44:40 -05:00
CPPCHECK_PATHS = \
$(top_builddir)/examples \
$(top_srcdir)/examples \
$(top_builddir)/include \
$(top_srcdir)/include \
$(top_builddir)/libc \
$(top_srcdir)/libc \
$(top_builddir)/src \
$(top_srcdir)/src \
$(top_builddir)/tests \
$(top_srcdir)/tests
2022-12-03 05:23:52 -05:00
endif