Max out compiler warnings, and rearrange the debug build recipe.
This commit is contained in:
parent
2d1e089caf
commit
34621b054a
1 changed files with 3 additions and 3 deletions
6
Makefile
6
Makefile
|
@ -14,7 +14,7 @@
|
||||||
VERS=1.0
|
VERS=1.0
|
||||||
|
|
||||||
CC?=gcc
|
CC?=gcc
|
||||||
CCFLAGS+=-std=c99 -D _DEFAULT_SOURCE -g
|
CCFLAGS+=-std=c99 -D _DEFAULT_SOURCE -Wall -Wpedantic
|
||||||
LIBS=
|
LIBS=
|
||||||
UNAME_S := $(shell uname -s)
|
UNAME_S := $(shell uname -s)
|
||||||
ifeq ($(UNAME_S),Linux)
|
ifeq ($(UNAME_S),Linux)
|
||||||
|
@ -53,7 +53,7 @@ database.c database.h: dungeon
|
||||||
./dungeon
|
./dungeon
|
||||||
|
|
||||||
linenoise.o: linenoise/linenoise.h
|
linenoise.o: linenoise/linenoise.h
|
||||||
$(CC) $(CCFLAGS) $(DBX) -c linenoise/linenoise.c
|
$(CC) -c linenoise/linenoise.c
|
||||||
|
|
||||||
dungeon: dungeon.o common.o
|
dungeon: dungeon.o common.o
|
||||||
$(CC) $(CCFLAGS) -o $@ dungeon.o common.o
|
$(CC) $(CCFLAGS) -o $@ dungeon.o common.o
|
||||||
|
@ -99,5 +99,5 @@ refresh: advent.html
|
||||||
|
|
||||||
dist: advent-$(VERS).tar.gz
|
dist: advent-$(VERS).tar.gz
|
||||||
|
|
||||||
debug: CCFLAGS += -O0 --coverage
|
debug: CCFLAGS += -O0 --coverage -g
|
||||||
debug: advent
|
debug: advent
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue