X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=Makefile;h=aef58baedcdf3cd31a02bcc61fc040bce1b12800;hb=53074fb1eab1088d829a9a3f5aa02797a6fd540e;hp=ca6e670287417852c4e6c6688cdf7d45684ff6e1;hpb=8e73ebf31baca4449e0d7a6796391a2e53048362;p=open-adventure.git diff --git a/Makefile b/Makefile index ca6e670..aef58ba 100644 --- a/Makefile +++ b/Makefile @@ -1,13 +1,14 @@ # Makefile for the open-source release of adventure 2.5 -OBJS=main.o init.o actions1.o actions2.o score.o misc.o datime.o -SOURCES=$(OBJS:.o=.c) COPYING NEWS README adventure.asc +LIBS=-lrt +OBJS=main.o init.o actions1.o actions2.o score.o misc.o +SOURCES=$(OBJS:.o=.c) COPYING NEWS README TODO advent.text control .c.o: gcc -O $(DBX) -c $< advent: $(OBJS) - gcc -O $(DBX) -o advent $(OBJS) + gcc -O $(DBX) -o advent $(OBJS) $(LIBS) main.o: misc.h funcs.h @@ -22,7 +23,10 @@ score.o: misc.h main.h share.h misc.o: misc.h main.h clean: - rm -f *.o advent advent.html advent.6 + rm -f *.o advent advent.html advent.6 adventure.data + +check: + cd tests; $(MAKE) --quiet # Requires asciidoc and xsltproc/docbook stylesheets. .asc.6: