Max out compiler warnings, and rearrange the debug build recipe.

This commit is contained in:
Jason S. Ninneman 2017-06-13 11:15:22 -07:00
parent 2d1e089caf
commit 34621b054a

View file

@ -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