X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;ds=sidebyside;f=makefile;h=e03770f2c8788d3048d3ee4832e9c21c164ff60a;hb=d1e79ed7b6329d2c7e26a99402d90b0041fc593f;hp=3e351422990f7e31d8fe731a2292f55fae855e9c;hpb=b0629033955fcfdcd93a4a2cf3ab29e8adc56200;p=super-star-trek.git diff --git a/makefile b/makefile index 3e35142..e03770f 100644 --- a/makefile +++ b/makefile @@ -1,15 +1,29 @@ -CFLAGS= -O +CFLAGS= -O -g -DSSTDOC='"sst.doc"' .c.o: $(CC) $(CFLAGS) -c $< -OFILES= sst.o finish.o reports.o setup.o linux.o moving.o battle.o events.o ai.o planets.o +CFILES= sst.c finish.c reports.c setup.c linux.c moving.c battle.c events.c ai.c planets.c +OFILES= $(CFILES:.c=.o) +HFILES=sst.h -HFILES= sst.h +SOURCES= $(CFILES) $(HFILES) sst-doc.xml TODO makehelp.py makefile sst.xml -sstos2.exe: $(OFILES) +all: sst sst.doc + +sst: $(OFILES) gcc -o sst $(OFILES) -lm - $(OFILES): $(HFILES) +sst.6: sst.xml + xmlto man sst.xml + +sst-doc.txt: sst-doc.xml + xmlto --skip-validation txt sst-doc.xml +sst.doc: sst-doc.txt + makehelp.py >sst.doc + +clean: + rm -f *.o sst sst-doc.txt sst.doc +