projects
/
open-adventure.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
The bugtype enum doesn't need explicit numbers.
[open-adventure.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index 9a5d05f5a7ef2b40d94b442a7bc8bc6d3ba89d2c..2e6997a5393c8cddecaae56cec4d95eef4fd6167 100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-24,12
+24,12
@@
#
# To build with save/resume disabled, pass CCFLAGS="-D ADVENT_NOSAVE"
#
# To build with save/resume disabled, pass CCFLAGS="-D ADVENT_NOSAVE"
-.PHONY: debug indent release refresh dist linty html clean
+VERS=$(shell sed -n <NEWS '/^[0-9]/s/:.*//p' | head -1)
-VERS=1.0
+.PHONY: debug indent release refresh dist linty html clean
CC?=gcc
CC?=gcc
-CCFLAGS+=-std=c99 -D
_DEFAULT_SOURCE
-Wpedantic -O2
+CCFLAGS+=-std=c99 -D
_DEFAULT_SOURCE -DVERSION=\"$(VERS)\"
-Wpedantic -O2
LIBS=
UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Linux)
LIBS=
UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Linux)
@@
-67,6
+67,9
@@
dungeon.c dungeon.h: make_dungeon.py adventure.yaml
python3 make_dungeon.py
linenoise.o: linenoise/linenoise.h
python3 make_dungeon.py
linenoise.o: linenoise/linenoise.h
+ $(CC) -c linenoise/linenoise.c
+
+linenoise-dbg: linenoise/linenoise.h
$(CC) $(CCFLAGS) -c linenoise/linenoise.c
clean:
$(CC) $(CCFLAGS) -c linenoise/linenoise.c
clean:
@@
-147,4
+150,4
@@
debug: CCFLAGS += -O0 --coverage -ggdb
debug: linty
debug: cheat
debug: linty
debug: cheat
-
+debug-ln: linenoise-dbg debug