diff options
author | Joey Castillo <joeycastillo@utexas.edu> | 2022-04-10 12:45:21 -0400 |
---|---|---|
committer | Joey Castillo <joeycastillo@utexas.edu> | 2022-04-10 12:45:21 -0400 |
commit | 092e760d22c1a8e70a86d16fd3fe3d9d4819d922 (patch) | |
tree | 66d4fee075799de032114f5449f9e2cf6e2949b5 /rules.mk | |
parent | 5f0ebd8c66b3512d67efc8174c5f65a86488a4ea (diff) | |
download | Sensor-Watch-092e760d22c1a8e70a86d16fd3fe3d9d4819d922.tar.gz Sensor-Watch-092e760d22c1a8e70a86d16fd3fe3d9d4819d922.tar.bz2 Sensor-Watch-092e760d22c1a8e70a86d16fd3fe3d9d4819d922.zip |
add rule for static analysis
Diffstat (limited to 'rules.mk')
-rw-r--r-- | rules.mk | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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) |