LINDLIB= /home/r1/barbara/lind/lib
CALLIB= -lcalvp -lvplot
LFLAGS2= -L$(LINDLIB) -L/usr/contrib/lib
LFLAGS= -L$(LINDLIB) -L/usr/contrib/lib
LIBFIL=/home/r1/barbara/lind/libraries/libtime/libtime.a
LLIBS2=  -lsour -lplot -lplot_gks -lutil $(GKS_PATCHES) -lgks77 -lxgl -lxview -lolgx -lX11 -lm
.f.o:
	f77 -c  $(FLOAT) $*.f
.c.o:
	cc -c $(FLOAT) $*.c

mainw: mainw.o  widmer.o
	f77  mainw.o widmer.o -o mainw
coordida: coordida.o rescode.o
	f77 coordida.o rescode.o -o coordida
distida: distida.o 
	f77  distida.o -o distida
distbdsn: distbdsn.o 
	f77  distbdsn.o -o distbdsn
distsco: distsco.o 
	f77  distsco.o -o distsco
idap89: idap89.o  utildat.o distz2.o sro.o datar.o rdata.o 
	f77  idap89.o  utildat.o distz2.o sro.o datar.o  rdata.o -o idap89
idasco: idasco.o  utildat.o distzs.o sro.o datar.o rdata.o 
	f77  idasco.o  utildat.o distzs.o sro.o datar.o  rdata.o -o idasco
idaah: idaah.o  settrfn.o cahsub.o utildat.o  distzs.o digresp.o insiris.o rescode.o ilib.o
	f77  idaah.o  utildat.o settrfn.o distzs.o cahsub.o  digresp.o insiris.o rescode.o ilib.o -o idaah
idaahs: idaahs.o  settrfn.o cahsub.o utildat.o  distzs.o digresp.o insiris.o rescode.o ilib.o
	f77  idaahs.o  utildat.o settrfn.o distzs.o cahsub.o  digresp.o insiris.o rescode.o ilib.o -o idaahs
idasynt: idasynt.o  settrfn.o cahsub.o utildat.o  distzs.o digresp.o insiris.o rescode.o ilib.o
	f77  idasynt.o  utildat.o settrfn.o distzs.o cahsub.o  digresp.o insiris.o rescode.o ilib.o -o idasynt
idafilt: idafilt.o  settrfn.o cahsub.o utildat.o  distzs.o digresp.o insiris.o ilib.o
	f77  idafilt.o  utildat.o settrfn.o distzs.o cahsub.o  digresp.o insiris.o ilib.o -o idafilt
idabdsn: idabdsn.o  settrfn.o cahsub.o utildat.o  distzs.o digresp.o insiris.o ilib.o
	f77  idabdsn.o  utildat.o settrfn.o distzs.o cahsub.o  digresp.o insiris.o ilib.o -o idabdsn
idaasc: idaasc.o  utildat.o distzs.o sro.o datar.o rdata.o 
	f77  idaasc.o  utildat.o distzs.o sro.o datar.o  rdata.o -o idaasc
sourcida12: sourcida12.o utildat.o ylmav.o
	f77  sourcida12.o utildat.o  ylmav.o -o sourcida12
sourcida16: sourcida16.o utildat.o ylmav.o
	f77  sourcida16.o utildat.o  ylmav.o -o sourcida16
sourcida14: sourcida14.o utildat.o ylmav.o
	f77  sourcida14.o utildat.o  ylmav.o -o sourcida14
sourcida100: sourcida100.o utildat.o ylmav.o
	f77  sourcida100.o utildat.o  ylmav.o -o sourcida100
invlogx: invlogx.o utildat.o utilinv.o 
	f77  invlogx.o utildat.o utilinv.o  -o invlogx
invlog100: invlog100.o utildat.o utilinv.o 
	f77  invlog100.o utildat.o utilinv.o  -o invlog100
invlogxx: invlogxx.o utildat.o utilinv.o 
	f77  invlogxx.o utildat.o utilinv.o  -o invlogxx
invlogt: invlogt.o utildat.o utilinv.o 
	f77  invlogt.o utildat.o utilinv.o  -o invlogt
invlogxd: invlogxd.o utildat.o utilinv.o 
	f77  invlogxd.o utildat.o utilinv.o  -o invlogxd
invlogy: invlogy.o utildat.o utilinv.o 
	f77  invlogy.o utildat.o utilinv.o  -o invlogy
invlogx6: invlogx6.o utildat.o utilinv.o 
	f77  invlogx6.o utildat.o utilinv.o  -o invlogx6
invlogx03: invlogx03.o utildat.o utilinv03.o 
	f77  invlogx03.o utildat.o utilinv03.o  -o invlogx03
invtaudir05: invtaudir05.o utildat.o utilinv03.o 
	f77  invtaudir05.o utildat.o utilinv03.o  -o invtaudir05

ampli: ampli.o 
	f77  ampli.o $(CALLIB) -o ampli
phase: phase.o 
	f77  phase.o $(CALLIB) -o phase
plotdep: plotdep.o pett.o circle.o
	f77  plotdep.o pett.o circle.o $(CALLIB) -o plotdep
sourcemech: sourcemech.o pett.o circle.o 
	f77  sourcemech.o pett.o circle.o $(CALLIB)  -o sourcemech
plottau: plottau.o pett.o circle.o
	f77  plottau.o $(CALLIB) -o plottau
stfspec: stfspec.o 
	f77  stfspec.o $(CALLIB) -o stfspec
calpole: calpole.o ylmav.o
	f77  calpole.o ylmav.o  -o calpole
poles: poles.o
	f77  poles.o  -o poles
readlis: readlis.o 
	f77  readlis.o $(CALLIB) -o readlis
plotspec: plotspec.o 
	f77  plotspec.o $(CALLIB) -o plotspec
plotpaf: plotpaf.o 
	f77  plotpaf.o $(CALLIB) -o plotpaf
vitphas99: vitphas99.o  subphas.o ampli99.o
	f77  vitphas99.o subphas.o ampli99.o -o vitphas99
vitphas97: vitphas97.o  subphas.o
	f77  vitphas97.o subphas.o -o vitphas97
vitphaslg: vitphaslg.o  subphas.o
	f77  vitphaslg.o subphas.o  -o vitphaslg
readphas: readphas.o 
	f77  readphas.o $(CALLIB) -o readphas
readphaz: readphaz.o 
	f77  readphaz.o $(CALLIB) -o readphaz
conphas: conphas.o 
	f77  conphas.o $(CALLIB) -o conphas
readamp: readamp.o 
	f77  readamp.o $(CALLIB) -o readamp
npaf: npaf.o settrfn.o cahsub.o distzs.o digresp.o ilib.o
	f77  npaf.o settrfn.o distzs.o cahsub.o  ilib.o digresp.o  -o npaf
npafmod: npafmod.o settrfn.o cahsub.o distzs.o digresp.o ilib.o
	f77  npafmod.o settrfn.o distzs.o cahsub.o  ilib.o digresp.o  -o npafmod
diabr: diabr.o  spdia.o settrfn.o cahsub.o distzs.o digresp.o ilib.o
	f77  diabr.o  spdia.o settrfn.o distzs.o cahsub.o  ilib.o digresp.o  -o diabr
diabdsn: diabdsn.o  spdia.o settrfn.o cahsub.o distzs.o digresp.o ilib.o
	f77  diabdsn.o  spdia.o settrfn.o distzs.o cahsub.o  ilib.o digresp.o  -o diabdsn
energ: energ.o  spdia.o settrfn.o cahsub.o distzs.o digresp.o ilib.o
	f77  energ.o  spdia.o settrfn.o distzs.o cahsub.o  ilib.o digresp.o  -o energ
energ1: energ1.o  spdia.o settrfn.o cahsub.o distzs.o digresp.o ilib.o
	f77  energ1.o  spdia.o settrfn.o distzs.o cahsub.o  ilib.o digresp.o  -o energ1
energ2: energ2.o  spdia.o settrfn.o cahsub.o distzs.o digresp.o ilib.o
	f77  energ2.o  spdia.o settrfn.o distzs.o cahsub.o  ilib.o digresp.o  -o energ2
scanah: ahscan.o scanah.o settrfn.o julday.o lpyr.o getida.o
	f77 $(FLOAT) ahscan.o ioroutin.o scanah.o settrfn.o julday.o lpyr.o getida.o -lmp  -lm -o ahscan1 
plotphas: plotphas.o
	f77 plotphas.o $(LFLAGS) $(LLIBS2) -o plotphas
plotampli: plotampli.o utildat.o
	f77 plotampli.o utildat.o $(LFLAGS) $(LLIBS2) -o plotampli
plotamplix: plotamplix.o utildat.o
	f77 plotamplix.o utildat.o $(LFLAGS) $(LLIBS2) -o plotamplix
newampli: newampli.o subphas.o
	f77 newampli.o subphas.o $(LFLAGS) -o newampli
newamplix: newamplix.o subphas.o
	f77 newamplix.o subphas.o $(LFLAGS) -o newamplix
ploteta: ploteta.o utildat.o
	f77 ploteta.o utildat.o $(LFLAGS) $(LLIBS2) -o ploteta
lecampth: lecampth.o subregt.o
	f77 lecampth.o subregt.o $(LFLAGS) -o lecampth
lecadd: lecadd.o subregt.o
	f77 lecadd.o subregt.o $(LFLAGS) -o lecadd
lecamp: lecamp.o subreg.o
	f77 lecamp.o subreg.o $(LFLAGS) -o lecamp
invampth: invampth.o subregt.o
	f77 invampth.o subregt.o $(LFLAGS) -o invampth
invamptsh: invamptsh.o subregt.o
	f77 invamptsh.o subregt.o $(LFLAGS) -o invamptsh
invsynth: invsynth.o subregt.o
	f77 invsynth.o subregt.o $(LFLAGS) -o invsynth
invampth2: invampth2.o subregt.o
	f77 invampth2.o subregt.o $(LFLAGS) -o invampth2
invamptr2: invamptr2.o subregt.o
	f77 invamptr2.o subregt.o $(LFLAGS) -o invamptr2
invampt: invampt.o subregt.o
	f77 invampt.o subregt.o $(LFLAGS) -o invampt
lectd:	lectd.o subregt.o
	f77 lectd.o subregt.o $(LFLAGS) -o lectd
lectd1:	lectd1.o subregt.o
	f77 lectd1.o subregt.o $(LFLAGS) -o lectd1
invregt:	invregt.o subregt.o
	f77 invregt.o subregt.o $(LFLAGS) -o invregt
invamp: invamp.o subreg.o
	f77 invamp.o subreg.o $(LFLAGS) -o invamp
grilleh: grilleh.o subregt.o
	f77 grilleh.o subregt.o $(LFLAGS) -o grilleh
lecampt: lecampt.o subregt.o
	f77 lecampt.o subregt.o $(LFLAGS) -o lecampt
inv1: inv1.o subregt.o
	f77 inv1.o subregt.o $(LFLAGS) -o inv1
sphatth: sphatth.o subsphe.o 
	f77 sphatth.o subsphe.o $(LFLAGS) -o sphatth
sphdect: sphdect.o subsphe.o
	f77 sphdect.o subsphe.o $(LFLAGS) -o sphdect
sphdect1: sphdect1.o subsphe.o
	f77 sphdect1.o subsphe.o $(LFLAGS) -o sphdect1
sphatt1: sphatt1.o subsphe.o
	f77 sphatt1.o subsphe.o $(LFLAGS) -o sphatt1
regional: regional.o subsphe.o
	f77 regional.o subsphe.o $(LFLAGS) -o regional
grilleg: grilleg.o subsphe.o
	f77 grilleg.o subsphe.o $(LFLAGs) -o grilleg
grilleg2: grilleg2.o subsphe.o
	f77 grilleg2.o subsphe.o $(LFLAGs) -o grilleg2
sphexpdq: sphexpdq.o 
	f77  sphexpdq.o  $(CALLIB) -o sphexpdq
sphexgrand: sphexgrand.o
	f77 sphexgrand.o $(CALLIB) -o sphexgrand
sphexgrandn: sphexgrandn.o
	f77 sphexgrandn.o $(CALLIB) -o sphexgrandn
sphexpdq1: sphexpdq1.o 
	f77  sphexpdq1.o  $(CALLIB) -o sphexpdq1
sphexpdc: sphexpdc.o 
	f77  sphexpdc.o   -o sphexpdc
sphexpqerr: sphexpqerr.o 
	f77  sphexpqerr.o  $(CALLIB) -o sphexpqerr
sphexpdhot: sphexpdhot.o 
	f77  sphexpdhot.o   -o sphexpdhot
sphdisc: sphdisc.o
	f77 sphdisc.o  -o sphdisc
test: test.o cahsub.o ilib.o
	f77 test.o cahsub.o ilib.o -o test
spotinv: spotinv.o subregt.o
	f77 spotinv.o subregt.o -o spotinv
syntmerge: syntmerge.o cahsub.o ilib.o
	f77 syntmerge.o cahsub.o ilib.o -o syntmerge




	
