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:
parent
d250b51030
commit
0f3d3f735f
1 changed files with 3 additions and 4 deletions
7
Makefile
7
Makefile
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue