mirror of
https://github.com/tailix/libclayer.git
synced 2024-11-13 11:04:17 -05:00
33 lines
699 B
Text
33 lines
699 B
Text
|
# 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)
|
||
|
|
||
|
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 = \
|
||
|
--suppress='unusedVariable'
|
||
|
|
||
|
CPPCHECK_PATHS = \
|
||
|
$(top_builddir)/include \
|
||
|
$(top_srcdir)/include \
|
||
|
$(top_builddir)/src \
|
||
|
$(top_srcdir)/src \
|
||
|
$(top_builddir)/tests \
|
||
|
$(top_srcdir)/tests
|
||
|
endif
|