-
Notifications
You must be signed in to change notification settings - Fork 8
/
check.mak
31 lines (26 loc) · 1.32 KB
/
check.mak
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
default: check
clean:
@rm -rf build/
check:
@echo try:
@echo make -f check.mak checksyntax
@echo make -f check.mak checksparse
@echo make -f check.mak checkpatch
checksparse:
@echo checksparse
@sparse hypatia.h
@sparse -I. test/implementation.c
@sparse -I. test/main.c
checksyntax:
@echo checksyntax
@gcc -fsyntax-only -std=c90 -Wno-missing-braces -Wextra -Wmissing-prototypes -Wall -Wold-style-definition -Wdeclaration-after-statement -Wundef -Wpointer-arith -Werror -Wcast-qual -Wcast-align -Wfloat-equal -Wconversion hypatia.h
@gcc -fsyntax-only -std=c90 -Wno-missing-braces -Wextra -Wmissing-prototypes -Wall -Wold-style-definition -Wdeclaration-after-statement -Wundef -Wpointer-arith -Werror -Wcast-qual -Wcast-align -Wfloat-equal -Wconversion -I. test/implementation.c
@gcc -fsyntax-only -std=c90 -Wno-missing-braces -Wextra -Wmissing-prototypes -Wall -Wold-style-definition -Wdeclaration-after-statement -Wundef -Wpointer-arith -Werror -Wcast-qual -Wcast-align -Wfloat-equal -Wconversion -I. test/main.c
checkpatch:
@echo checkpatch
@/usr/src/kernels/`uname -r`/scripts/checkpatch.pl \
-f --no-tree --no-summary --terse --show-types --subjective \
--ignore INLINE,BRACES,LONG_LINE,CAMELCASE,SPACING,\
PREFER_KERNEL_TYPES,SPDX_LICENSE_TAG,\
PARENTHESIS_ALIGNMENT,LINE_SPACING \
test/*.c hypatia.h test/implementation.c