projects
/
open-adventure.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Max out compiler warnings, and rearrange the debug build recipe.
[open-adventure.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index f9cbb85413a548dc98e23192611e10123af7d19b..31f35a96f24a14e57466e4307503a503c71538a0 100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-14,7
+14,7
@@
VERS=1.0
CC?=gcc
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)
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
./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
dungeon: 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