RESDIR=Figs
include ${SEPINC}/SEP.top
BINDIR = /bob/bin/${SEP_ARCH}
SRCDIR = ../Src
#RESULTSER = vel0 vel1 operator.vel0 operator.vel1 diff overlay-vel0 overlay-vel-cor angles right compare
UPSTEXFLAGS = invras=y color=y
RESDIR=./Figs
#LATOPTS = class=geophysics
#LATOPTS = option=cmfonts class=geophysics
paper.tex:  tau.tex depth.tex better.tex synth.tex angle.tex intro.tex

DEPTHER=synth-model tau-initial sigma time
DEPTHCR=mig0 semb-mig0 semb-mig0-ref iter1-comp res.vel0 res.vel2.z res.vel2.tau iter2-comp-vel res.vel1.z res.vel1.tau rays res.vel2.deltaz res.vel2.deltatau res.vel1.deltaz res.vel1.deltatau sem-final
DEPTHNR=schematic newton sketch dl ztot warp-c


check:	
	echo ${RESDIR}

iter2-comp-vel.%:
	@-cd synth; ${MAKE} iter2-comp-vel.$*;

rays.%:
	@-cd synth; ${MAKE}  $@

res.vel0.%:
	@-cd synth; ${MAKE} res.vel0.$*;

res.vel2.z.%:
	@-cd synth; ${MAKE} res.vel2.z.$*;

res.vel2.tau.%:
	@-cd synth; ${MAKE} res.vel2.tau.$*;

res.vel0.%:
	@-cd synth; ${MAKE} res.vel0.$*;

synth-model.%:
	@-cd synth; ${MAKE} synth-model.$*;

semb-mig0.%:
	@-cd synth; ${MAKE} semb-mig0.$*;

semb-mig0-ref.%:
	@-cd synth; ${MAKE} semb-mig0-ref.$*;

mig0.%:
	@-cd synth; ${MAKE} mig0.$*;

tau-initial.%:
	@-cd synth; ${MAKE} tau-initial.$*;

sigma.%:
	@-cd synth; ${MAKE} sigma.$*;

iter1-comp.%:
	@-cd synth; ${MAKE} iter1-comp.$*;


TIMEER=time

time.%:
	@-cd tt; ${MAKE} $@


RAYSER=ray.vel0 cor operator0 operator1 ray.vel1 diff 
RAYSCR=
RAYSNR=
cor.%:	
	@-cd rays; $(MAKE) cor.$*;

ray.vel0.%:	
	@-cd rays; $(MAKE) $@

ray.vel1.%:	
	@-cd rays; $(MAKE) $@

operator0.%:	
	@-cd rays; $(MAKE) operator0.$*;

operator1.%:	
	@-cd rays; $(MAKE) operator1.$*;

diff.%:	
	@-cd rays; $(MAKE) diff.$*;

RESULTSNR= ${RAYSNR} ${DEPTHNR} 
RESULTSCR= ${RAYSCR} ${DEPTHCR}
RESULTSER= ${RAYSER} ${DEPTHER} ${TIMEER}

clean: jclean
	@${TOUCH} yoda.swp yoda.bak
	@${RM} *.sw* *.bak  Bin/*.x
	cd rays; ${MAKE} clean
	cd synth; ${MAKE} clean

include ${SEPINC}/SEP.bottom
