projects
/
open-adventure.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added 'linty' target for make
[open-adventure.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index b0b06b95c7f24896df0d99cafd81848fcbc9c88b..62a4ee4fc91dd1bb775f6af2cebaa49b6f8ed2d4 100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-25,9
+25,7
@@
VERS=1.0
CC?=gcc
VERS=1.0
CC?=gcc
-CCFLAGS+=-std=c99 -D _DEFAULT_SOURCE -Wall -Wpedantic -Wextra -g
-CCFLAGS+=-Wstrict-prototypes
-CCFLAGS+=-Wmissing-prototypes
+CCFLAGS+=-std=c99 -D _DEFAULT_SOURCE -Wpedantic
LIBS=
UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Linux)
LIBS=
UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Linux)
@@
-118,5
+116,8
@@
refresh: advent.html
dist: advent-$(VERS).tar.gz
dist: advent-$(VERS).tar.gz
+linty: CCFLAGS += -W -Wall -Wextra -Wundef -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wfloat-equal -Wcast-align -Wwrite-strings -Waggregate-return -Wcast-qual -Wswitch-enum -Wwrite-strings -Wunreachable-code -Winit-self -Wpointer-arith -O2
+linty: advent
+
debug: CCFLAGS += -O0 --coverage -g
debug: advent
debug: CCFLAGS += -O0 --coverage -g
debug: advent