From: Jason S. Ninneman Date: Tue, 13 Jun 2017 18:15:22 +0000 (-0700) Subject: Max out compiler warnings, and rearrange the debug build recipe. X-Git-Tag: 1.1~341 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=34621b054adb37028a18411db7df5dee0e9c9f00;p=open-adventure.git Max out compiler warnings, and rearrange the debug build recipe. --- diff --git a/Makefile b/Makefile index f9cbb85..31f35a9 100644 --- a/Makefile +++ b/Makefile @@ -14,7 +14,7 @@ VERS=1.0 CC?=gcc -CCFLAGS+=-std=c99 -D _DEFAULT_SOURCE -g +CCFLAGS+=-std=c99 -D _DEFAULT_SOURCE -Wall -Wpedantic LIBS= UNAME_S := $(shell uname -s) ifeq ($(UNAME_S),Linux) @@ -53,7 +53,7 @@ database.c database.h: dungeon ./dungeon linenoise.o: linenoise/linenoise.h - $(CC) $(CCFLAGS) $(DBX) -c linenoise/linenoise.c + $(CC) -c linenoise/linenoise.c dungeon: dungeon.o common.o $(CC) $(CCFLAGS) -o $@ dungeon.o common.o @@ -99,5 +99,5 @@ refresh: advent.html dist: advent-$(VERS).tar.gz -debug: CCFLAGS += -O0 --coverage +debug: CCFLAGS += -O0 --coverage -g debug: advent