diff --git a/Makefile b/Makefile index 435adc4..d75a33f 100644 --- a/Makefile +++ b/Makefile @@ -4,10 +4,10 @@ LIBS=-lrt OBJS=main.o init.o actions1.o actions2.o score.o misc.o database/database.o SOURCES=$(OBJS:.o=.c) COPYING NEWS README TODO advent.text control -.c.o: +.c.o: gcc -O $(DBX) -c $< -advent: $(OBJS) database +advent: $(OBJS) gcc -Wall -std=c99 -O $(DBX) -o advent $(OBJS) $(LIBS) main.o: main.h misc.h funcs.h database/database.h @@ -22,6 +22,8 @@ score.o: misc.h main.h share.h database/database.h misc.o: misc.h main.h database/database.h +database/database.o database/database.h: database + clean: rm -f *.o advent advent.html advent.6 adventure.data cd tests; $(MAKE) --quiet clean @@ -48,5 +50,6 @@ release: advent-$(VERS).tar.gz advent.html refresh: advent.html shipper -N -w version=$(VERS) | sh -e -x +.PHONY: database database: cd database; $(MAKE)