This commit is contained in:
tkl 2016-07-23 11:19:32 +02:00
parent f67dadf938
commit 161abd76cf
2 changed files with 6 additions and 2 deletions

View File

@ -15,7 +15,11 @@ CFLAGS += \
$(addprefix -I, $(INCLUDES)) \
-Wall
CPPCHECK_FLAGS = --template=gcc --error-exitcode=1 --enable=all --inline-suppr
CPPCHECK_FLAGS = \
--template=gcc \
--error-exitcode=1 \
--enable=warning,performance,information,style \
--inline-suppr
include $(ROOT_DIR)/config/make/tools.mk

View File

@ -28,7 +28,7 @@ SOURCES += $(foreach folder, $(SUB_FOLDER), $(wildcard $(SRC_DIR)/$(folder)/*.c)
CHECKSOURCES += $(foreach folder, $(CHECK_FOLDER), $(wildcard $(SRC_DIR)/$(folder)/*.c))
ASMSOURCES += $(foreach folder, $(SUB_FOLDER), $(wildcard $(SRC_DIR)/$(folder)/*.s))
all: $(MAINFILE)
all: check $(MAINFILE)
check:
$(CPPCHECK) $(CPPCHECK_FLAGS) $(CHECKSOURCES)