Reorganize debug build options.

* 'make advent' by itself can be considered the 'release' build.
* 'make debug' now does 'make linty'.
This commit is contained in:
Jason S. Ninneman 2017-06-18 21:11:06 -07:00
parent d250b51030
commit 0f3d3f735f

View file

@ -29,7 +29,7 @@
VERS=1.0 VERS=1.0
CC?=gcc CC?=gcc
CCFLAGS+=-std=c99 -D _DEFAULT_SOURCE -Wpedantic -g CCFLAGS+=-std=c99 -D _DEFAULT_SOURCE -Wpedantic -O2
LIBS= LIBS=
UNAME_S := $(shell uname -s) UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Linux) ifeq ($(UNAME_S),Linux)
@ -138,8 +138,7 @@ linty: CCFLAGS += -Wwrite-strings
linty: CCFLAGS += -Wunreachable-code linty: CCFLAGS += -Wunreachable-code
linty: CCFLAGS += -Winit-self linty: CCFLAGS += -Winit-self
linty: CCFLAGS += -Wpointer-arith linty: CCFLAGS += -Wpointer-arith
linty: CCFLAGS +=-O2
linty: advent linty: advent
debug: CCFLAGS += -O0 --coverage -g debug: CCFLAGS += -O0 --coverage -ggdb
debug: advent debug: linty