From 34621b054adb37028a18411db7df5dee0e9c9f00 Mon Sep 17 00:00:00 2001 From: "Jason S. Ninneman" Date: Tue, 13 Jun 2017 11:15:22 -0700 Subject: [PATCH] Max out compiler warnings, and rearrange the debug build recipe. --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 2.31.1