+ $(CC) $(CCFLAGS) $(DBX) -c $<
+
+advent: $(OBJS) database.o
+ $(CC) $(CCFLAGS) $(DBX) -o advent $(OBJS) $(LDFLAGS) $(LIBS)
+
+main.o: advent.h funcs.h database.h
+
+init.o: advent.h funcs.h database.h
+
+actions1.o: advent.h funcs.h database.h
+
+actions2.o: advent.h funcs.h
+
+score.o: advent.h database.h
+
+misc.o: advent.h database.h
+
+database.o: database.h
+
+funcs.h: database.h
+
+compile: compile.c
+ $(CC) $(CCFLAGS) -o $@ $<
+
+database.c database.h: compile adventure.text
+ ./compile
+ $(CC) $(CCFLAGS) $(DBX) -c database.c
+
+html: index.html advent.html history.html hints.html
+
+clean:
+ rm -f *.o advent *.html database.[ch] compile *.gcno *.gcda
+ rm -f README advent.6
+ cd tests; $(MAKE) --quiet clean