X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;ds=sidebyside;f=Makefile;h=62a4ee4fc91dd1bb775f6af2cebaa49b6f8ed2d4;hb=d844c2a3913e1c7d331b080a4a09631e515d9364;hp=b0b06b95c7f24896df0d99cafd81848fcbc9c88b;hpb=a3485d2a41ae0360177c8b475972610025aec8f3;p=open-adventure.git diff --git a/Makefile b/Makefile index b0b06b9..62a4ee4 100644 --- a/Makefile +++ b/Makefile @@ -25,9 +25,7 @@ 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) @@ -118,5 +116,8 @@ refresh: advent.html 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