all: /home/gtoal/cgi-bin/juez.cgi process mark
#all: /home/gtoal/cgi-bin/juez2.cgi process mark
	echo All up to date


process: process.c
	cc -o process process.c

mark: mark.c
	cc -o mark mark.c

/home/gtoal/cgi-bin/juez.cgi: juez2.cgi
	cat juez2.cgi > /home/gtoal/cgi-bin/juez.cgi

juez2.cgi: juez2.c FISE/FISE-ROOT.h
	cc -o juez2 juez2.c
	cat juez2 > /home/gtoal/cgi-bin/juez2.cgi
	mv juez2 juez2.cgi
	echo rm ./juez2

FISE/FISE-ROOT.h: FISE/FISE-ROOT-gnusorted-uniq.txt
	../bigspell/token -H 6000000 -f FISE/FISE-ROOT-gnusorted-uniq.txt -c -o FISE/FISE-ROOT.h

FISE/FISE.h: FISE/FISE.txt
	../bigspell/token -H 300000 -f FISE/FISE.txt -c -o FISE/FISE.h

zip: FISE/FISE-linux.zip
	echo Linux zip up to date.  Remember to build under DOS as well.

FISE/FISE-linux.zip:
	zip FISE/FISE-linux.zip Makefile juez.c FISE/FISE.txt FISE/FISE.h TEST.BAT

clean:
	rm *~
