#define FPP spp -f77
#define DEBUG
#define BINDIR ../Bin/MTYPE
#define LIBDIR ../Lib/MTYPE
#define FIGDIR ../Fig
#include <SEP.defs>
$#define FIGLIST iso1.ref iso2.ref
#define FIGLIST iso1.ref

%.annotate: 
	vp_annotate <FIGDIR/%.v text=%.annotate >FIGDIR/%.va

iso.reflectivity:  Zoepp
	Zoepp par=iso.p  > iso.reflectivity

iso.reflectivity2: 
	Zoepp2 par=iso.p  > iso.reflectivity2


FIGDIR/iso1.ref.v FIGDIR/iso2.ref.v: iso.reflectivity Cakefile
	Window <iso.reflectivity f2=0 n2=2 j2=2 >jj.p
	Window <iso.reflectivity f2=1 n2=2 j2=2 >jj.s
	Graph min2=0 max2=1.  <jj.p title="PP Energy reflection/transmission"    out=FIGDIR/iso1.ref.v head=/dev/null label1="Horizontal Slowness [s/km]" label2="Energy coefficient" dash=0,3 plotfat=0,6
	Graph min2=0 max2=0.1 <jj.s title="PS Energy reflection/transmission"    out=FIGDIR/iso2.ref.v head=/dev/null label1="Horizontal Slowness [s/km]" label2="Energy coefficient" 
	Window n2=4 <iso.reflectivity >jj.all
	Graph min2=0 max2=1.0 <jj.all title="P Energy reflection/transmission"    out=FIGDIR/iso3.ref.v head=/dev/null label1="Horizontal Slowness [s/km]" label2="Energy coefficient" 
	-RM_CMD j.* jj.* 
	

sheriff:
	Zoepp par=parfile  > junk
	Zoepp2 par=parfile  > junk2

Zoepp2 BINDIR/Zoepp2: Zoepp2.o
	FC FCOPTS Zoepp2.o SEPCLASSLIB -llinpack -lblas SEPLIB SYSLIB -o BINDIR/Zoepp2

Zoepp BINDIR/Zoepp: Zoepp.o
	FC FCOPTS Zoepp.o SEPCLASSLIB -llinpack -lblas SEPLIB SYSLIB -o BINDIR/Zoepp

clean&:
	-RM_CMD *.x *.o  a.out core junk* *.f *.V iso.reflectivity   


#include <SEP.obj.rules>
#include <SEP.prog.rules>
#include <SEP.idoc.rules>
