+ $(CC) $(CCFLAGS) $(DBX) -c $<
+
+advent: $(OBJS) database.o
+ $(CC) $(CCFLAGS) $(DBX) -o advent $(OBJS) $(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