SEPINC = ../rules
include ${SEPINC}/Doc.defs.top

RESULTSER = frog dot

col = 0.,0.,0.-1.,1.,1.
${RESDIR}/frog.ps ${RESDIR}/frog.gif: frog.x
	frog.x                   > junk.pgm
	pgmtoppm ${col} junk.pgm > junk.ppm
	ppmtogif        junk.ppm > ${RESDIR}/frog.gif
	pnmtops         junk.pgm > ${RESDIR}/frog.ps

objs = 	copy.o adjnull.o rand01.o wavecat.o \
	pressure.o velocity.o viscosity.o wavesteps.o
frog.x: ${objs}

dot.build ${RESDIR}/dot.txt : dot.x
	dot.x dummy > ${RESDIR}/dot.txt
dot.view: ${RESDIR}/dot.txt
	cat ${RESDIR}/dot.txt
dot.burn: 
	rm ${RESDIR}/dot.txt

dot.x : ${objs}

clean: jclean

include ${SEPINC}/Doc.rules.red
include ${SEPINC}/Doc.rules.idoc
include ${SEPINC}/Prg.rules.std

