mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 07:49:52 +03:00
add cppcheck
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -23,3 +23,4 @@ firmware
|
|||||||
/interface/build/
|
/interface/build/
|
||||||
/interface/node_modules/
|
/interface/node_modules/
|
||||||
.VSCodeCounter/
|
.VSCodeCounter/
|
||||||
|
cppcheck.out.xml
|
||||||
|
|||||||
10
makefile
10
makefile
@@ -21,6 +21,9 @@ SOURCES := src lib_standalone lib/uuid-common/src lib/uuid-console/src lib/uui
|
|||||||
INCLUDES := lib/ArduinoJson/src lib_standalone lib/uuid-common/src lib/uuid-console/src lib/uuid-log/src lib/uuid-telnet/src lib/uuid-syslog/src src/devices src
|
INCLUDES := lib/ArduinoJson/src lib_standalone lib/uuid-common/src lib/uuid-console/src lib/uuid-log/src lib/uuid-telnet/src lib/uuid-syslog/src src/devices src
|
||||||
LIBRARIES :=
|
LIBRARIES :=
|
||||||
|
|
||||||
|
CPPCHECK = cppcheck
|
||||||
|
CHECKFLAGS = -q
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
# Languages Standard
|
# Languages Standard
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
@@ -110,7 +113,7 @@ COMPILE.cpp = $(CXX) $(CXX_STANDARD) $(CXXFLAGS) $(DEPFLAGS) -c $< -o $@
|
|||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
# Targets
|
# Targets
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
all: $(OUTPUT)
|
all: cppcheck.out.xml $(OUTPUT)
|
||||||
|
|
||||||
$(OUTPUT): $(OBJS)
|
$(OUTPUT): $(OBJS)
|
||||||
@mkdir -p $(@D)
|
@mkdir -p $(@D)
|
||||||
@@ -129,11 +132,14 @@ $(BUILD)/%.o: %.s
|
|||||||
@mkdir -p $(@D)
|
@mkdir -p $(@D)
|
||||||
$(COMPILE.s)
|
$(COMPILE.s)
|
||||||
|
|
||||||
|
cppcheck.out.xml: $(SOURCES)
|
||||||
|
$(CPPCHECK) $(CHECKFLAGS) $^ --xml >$@
|
||||||
|
|
||||||
run: $(OUTPUT)
|
run: $(OUTPUT)
|
||||||
@$<
|
@$<
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
@$(RM) -r $(BUILD) $(OUTPUT)
|
@$(RM) -r $(BUILD) $(OUTPUT) cppcheck.out.xml
|
||||||
|
|
||||||
help:
|
help:
|
||||||
@echo available targets: all run clean
|
@echo available targets: all run clean
|
||||||
|
|||||||
Reference in New Issue
Block a user