add rule for static analysis
This commit is contained in:
parent
5f0ebd8c66
commit
092e760d22
5
rules.mk
5
rules.mk
@ -4,6 +4,8 @@ OBJS = $(addprefix $(BUILD)/, $(notdir %/$(subst .c,.o, $(SRCS))))
|
||||
|
||||
SUBMODULES = tinyusb
|
||||
|
||||
COBRA = cobra -f
|
||||
|
||||
ifndef EMSCRIPTEN
|
||||
all: directory $(SUBMODULES) $(BUILD)/$(BIN).elf $(BUILD)/$(BIN).hex $(BUILD)/$(BIN).bin $(BUILD)/$(BIN).uf2 size
|
||||
else
|
||||
@ -54,4 +56,7 @@ clean:
|
||||
@echo clean
|
||||
@-rm -rf $(BUILD)
|
||||
|
||||
analyze:
|
||||
@$(COBRA) basic $(INCLUDES) $(DEFINES) $(SRCS)
|
||||
|
||||
-include $(wildcard $(BUILD)/*.d)
|
||||
|
Loading…
x
Reference in New Issue
Block a user