aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKamen Mladenov <kamen@syndamia.com>2024-01-08 20:20:32 +0200
committerGitHub <noreply@github.com>2024-01-08 20:20:32 +0200
commit9aca1ce669eb23b734670640a90cc58adeb48807 (patch)
tree9baf38b7f278afb35e3aaa0bf1ddb98949586767 /Makefile
parentf891b7daabf33d50913edb11dbbfb82a9216327b (diff)
parentfe3e25494bd4472f40e843f75463d49316ff2585 (diff)
downloadpico-web-9aca1ce669eb23b734670640a90cc58adeb48807.tar
pico-web-9aca1ce669eb23b734670640a90cc58adeb48807.tar.gz
pico-web-9aca1ce669eb23b734670640a90cc58adeb48807.zip
Merge pull request #2 from Syndamia/devv0.1.0
Major changes
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 692aba2..d3c2522 100644
--- a/Makefile
+++ b/Makefile
@@ -2,6 +2,10 @@
CC_SANA ?= clang
CFLAGS_SANA ?= --analyze -Xclang -analyzer-output=text
+# Security analysis
+CC_CANA ?= flawfinder
+CFLAGS_CANA ?= --error-level=3
+
.PHONY: all
all: build
@@ -21,6 +25,10 @@ tests:
static-analysis:
$(CC_SANA) $(CFLAGS_SANA) ./src/*
+.PHONY: security-analysis
+security-analysis:
+ $(CC_CANA) $(CFLAGS_CANA) $$(find ./src -maxdepth 1 -type f -name "*.c" -o -name "*.h")
+
.PHONY: clean
clean:
cd ./src/ && $(MAKE) clean