projects
/
open-adventure.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove gaps from arbitrary_messages, there are no more number sependencies.
[open-adventure.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index 758408ab571a1d0ade40024445de83117d0ea7c5..c58e6d7b020088cad3cdfb382ad05c710c466048 100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-24,9
+24,9
@@
#
# 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
CCFLAGS+=-std=c99 -D _DEFAULT_SOURCE -Wpedantic -O2
CC?=gcc
CCFLAGS+=-std=c99 -D _DEFAULT_SOURCE -Wpedantic -O2
@@
-38,7
+38,7
@@
endif
OBJS=main.o init.o actions.o score.o misc.o saveresume.o
CHEAT_OBJS=cheat.o init.o actions.o score.o misc.o saveresume.o
OBJS=main.o init.o actions.o score.o misc.o saveresume.o
CHEAT_OBJS=cheat.o init.o actions.o score.o misc.o saveresume.o
-SOURCES=$(OBJS:.o=.c) advent.h adventure.
text adventure.
yaml Makefile control linenoise/linenoise.[ch] make_dungeon.py
+SOURCES=$(OBJS:.o=.c) advent.h adventure.yaml Makefile control linenoise/linenoise.[ch] make_dungeon.py
.c.o:
$(CC) $(CCFLAGS) $(DBX) -c $<
.c.o:
$(CC) $(CCFLAGS) $(DBX) -c $<
@@
-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