X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=Makefile;h=b7328e649a7fe0759877dc6addcd2607f12839d1;hb=d363a5c5643bb6f00238327607b796c8fda5d889;hp=b0b06b95c7f24896df0d99cafd81848fcbc9c88b;hpb=a3485d2a41ae0360177c8b475972610025aec8f3;p=open-adventure.git diff --git a/Makefile b/Makefile index b0b06b9..b7328e6 100644 --- a/Makefile +++ b/Makefile @@ -21,13 +21,13 @@ # # If you are using MacPorts on OS X: # port install py3{5,6}-yaml as appropriate for your Python 3 version. +# +# To build with save/resume disabled, pass CCFLAGS="-D ADVENT_NOSAVE" 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 +118,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