X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=Makefile;h=80f1c121d8bb52da8b147c869670d2597bce2c9d;hb=409ffe4a8672f41501667941cf10bd2dee1bb743;hp=b0b06b95c7f24896df0d99cafd81848fcbc9c88b;hpb=a3485d2a41ae0360177c8b475972610025aec8f3;p=open-adventure.git diff --git a/Makefile b/Makefile index b0b06b9..80f1c12 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 -g 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