projects
/
open-adventure.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove L19999
[open-adventure.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index 46fe7ca70c1f3a0dc81dce12745e492ab8ffbe7d..f9cbb85413a548dc98e23192611e10123af7d19b 100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-21,8
+21,8
@@
ifeq ($(UNAME_S),Linux)
LIBS=-lrt
endif
LIBS=-lrt
endif
-OBJS=main.o init.o actions.o score.o misc.o saveresume.o
-SOURCES=$(OBJS:.o=.c) dungeon.c advent.h
sizes
.h adventure.text Makefile control linenoise/linenoise.[ch]
+OBJS=main.o init.o actions.o score.o misc.o saveresume.o
common.o newdb.o
+SOURCES=$(OBJS:.o=.c) dungeon.c advent.h
common
.h adventure.text Makefile control linenoise/linenoise.[ch]
.c.o:
$(CC) $(CCFLAGS) $(DBX) -c $<
.c.o:
$(CC) $(CCFLAGS) $(DBX) -c $<
@@
-30,29
+30,33
@@
SOURCES=$(OBJS:.o=.c) dungeon.c advent.h sizes.h adventure.text Makefile control
advent: $(OBJS) database.o linenoise.o
$(CC) $(CCFLAGS) $(DBX) -o advent $(OBJS) database.o linenoise.o $(LDFLAGS) $(LIBS)
advent: $(OBJS) database.o linenoise.o
$(CC) $(CCFLAGS) $(DBX) -o advent $(OBJS) database.o linenoise.o $(LDFLAGS) $(LIBS)
-main.o: advent.h database.h database.c
sizes
.h
+main.o: advent.h database.h database.c
common
.h
-init.o: advent.h database.h database.c
sizes
.h
+init.o: advent.h database.h database.c
common
.h
-actions.o: advent.h database.h database.c
sizes
.h
+actions.o: advent.h database.h database.c
common
.h
-score.o: advent.h database.h database.c
sizes
.h
+score.o: advent.h database.h database.c
common
.h
-misc.o: advent.h database.h database.c
sizes
.h
+misc.o: advent.h database.h database.c
common.h newdb
.h
-saveresume.o: advent.h database.h database.c
sizes
.h
+saveresume.o: advent.h database.h database.c
common
.h
-database.o: database.c database.h sizes.h
+common.o: common.h
+
+database.o: database.c database.h common.h
$(CC) $(CCFLAGS) $(DBX) -c database.c
$(CC) $(CCFLAGS) $(DBX) -c database.c
+newdb.o: newdb.h
+
database.c database.h: dungeon
./dungeon
linenoise.o: linenoise/linenoise.h
$(CC) $(CCFLAGS) $(DBX) -c linenoise/linenoise.c
database.c database.h: dungeon
./dungeon
linenoise.o: linenoise/linenoise.h
$(CC) $(CCFLAGS) $(DBX) -c linenoise/linenoise.c
-dungeon: dungeon.
c
- $(CC) $(CCFLAGS) -o $@
$<
+dungeon: dungeon.
o common.o
+ $(CC) $(CCFLAGS) -o $@
dungeon.o common.o
clean:
rm -f *.o advent *.html database.[ch] dungeon *.gcno *.gcda
clean:
rm -f *.o advent *.html database.[ch] dungeon *.gcno *.gcda
@@
-76,7
+80,7
@@
check: advent
html: advent.html history.html hints.html
# README.adoc exists because that filename is magic on GitLab.
html: advent.html history.html hints.html
# README.adoc exists because that filename is magic on GitLab.
-DOCS=COPYING NEWS README.adoc TODO advent.adoc history.adoc hints.adoc advent.6
+DOCS=COPYING NEWS README.adoc TODO advent.adoc history.adoc
notes.adoc
hints.adoc advent.6
TESTFILES=tests/*.log tests/*.chk tests/README tests/decheck tests/Makefile
# Can't use GNU tar's --transform, needs to build under Alpine Linux.
TESTFILES=tests/*.log tests/*.chk tests/README tests/decheck tests/Makefile
# Can't use GNU tar's --transform, needs to build under Alpine Linux.
@@
-87,7
+91,7
@@
advent-$(VERS).tar.gz: $(SOURCES) $(DOCS)
(tar -T MANIFEST -czvf advent-$(VERS).tar.gz)
@(rm advent-$(VERS))
(tar -T MANIFEST -czvf advent-$(VERS).tar.gz)
@(rm advent-$(VERS))
-release: advent-$(VERS).tar.gz advent.html history.html hints.html
+release: advent-$(VERS).tar.gz advent.html history.html hints.html
notes.html
shipper version=$(VERS) | sh -e -x
refresh: advent.html
shipper version=$(VERS) | sh -e -x
refresh: advent.html