1
0
Fork 0
mirror of https://github.com/tailix/libclayer.git synced 2024-11-20 11:06:24 -05:00
libclayer/make/checks.am

31 lines
645 B
Text
Raw Normal View History

2022-12-25 03:58:00 -05:00
# vim: set syntax=automake:
MY_CHECKS =
check: $(MY_CHECKS)
if ENABLE_CHECKS_CPPCHECK
MY_CHECKS += check-cppcheck
check-cppcheck:
2022-12-25 05:31:42 -05:00
$(CPPCHECK) $(CPPCHECK_ARGS) $(CPPCHECK_INC) $(CPPCHECK_PATHS)
2022-12-25 03:58:00 -05:00
CPPCHECK_ARGS = \
--quiet \
--error-exitcode=1 \
--std=c99 \
--inline-suppr \
2022-12-25 06:56:53 -05:00
-ULIBCLAYER_PREFIX \
2022-12-25 03:58:00 -05:00
--enable=warning,style,performance,portability
CPPCHECK_INC = \
-I$(top_builddir)/include \
2022-12-25 05:31:42 -05:00
-I$(top_srcdir)/include
2022-12-25 03:58:00 -05:00
CPPCHECK_PATHS = \
2022-12-25 06:54:25 -05:00
$(top_builddir)/include \
$(top_srcdir)/include \
$(top_builddir)/src \
$(top_srcdir)/src \
$(top_builddir)/tests \
2022-12-25 03:58:00 -05:00
$(top_srcdir)/tests
endif