Commit 20c8e332 authored by Federico Vaga's avatar Federico Vaga

bld: add flawfinder

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent 0f5308b1
......@@ -29,5 +29,5 @@ modules_install: TARGET = modules_install
$(DIRS):
$(MAKE) -C $@ $(TARGET)
cppcheck:
flawfinder cppcheck:
for d in $(DIRS); do $(MAKE) -C $$d $@ || exit 1; done
......@@ -9,6 +9,7 @@ REPO_PARENT ?= $(shell pwd)/../../..
-include $(REPO_PARENT)/parent_common.mk
CPPCHECK ?= cppcheck
FLAWFINDER ?= flawfinder
DKMS ?= 0
CURDIR := $(shell /bin/pwd)
KVERSION ?= $(shell uname -r)
......@@ -59,4 +60,7 @@ install modules_install: modules
cppcheck:
$(CPPCHECK) -q -I. -I$(ZIO_ABS)/include -I$(FMC_BUS_ABS)/ --enable=all *.c *.h
.PHONY: all cppcheck clean clean install modules modules_install
flawfinder:
$(FLAWFINDER) -SQDC --error-level=3 .
.PHONY: all cppcheck clean clean flawfinder install modules modules_install
......@@ -44,6 +44,7 @@ LDFLAGS = -L. -lfdelay
DESTDIR ?= /usr/local
CPPCHECK ?= cppcheck
FLAWFINDER ?= flawfinder
modules all: lib
......@@ -80,6 +81,9 @@ modules_install:
cppcheck:
$(CPPCHECK) -q -I. -I../kernel -I $(ZIO_ABS)/include --suppress=missingIncludeSystem --enable=warning,style,information,missingInclude *.c *.h
flawfinder:
$(FLAWFINDER) -SQDC --error-level=6 .
-include .depend
.PHONY: cppcheck
.PHONY: cppcheck flawfinder
......@@ -31,6 +31,7 @@ progs += fmc-fdelay-pulse
progs += fmc-fdelay-status
CPPCHECK ?= cppcheck
FLAWFINDER ?= flawfinder
# we are not in the kernel, so we need to piggy-back on "make modules"
all modules: $(progs) fmc-fdelay-calibration
......@@ -55,4 +56,7 @@ install:
cppcheck:
$(CPPCHECK) -q -I. -I../kernel -I$(LIBFD) --suppress=missingIncludeSystem --enable=all *.c *.h
.PHONY: cppcheck
flawfinder:
$(FLAWFINDER) -SQDC --error-level=5 .
.PHONY: cppcheck flawfinder
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment