MAKE_DEPEND=yes
include ${SEPINC}/SEP.top

UF90DEFINES=-DLINUX -DUSE_FFTW -DFFTW=1 -DSEP_OMP -DOMP 
UF90INCLUDES=-I.
#UF90FLAGS=-O3 -openmp -openmp_report2 -fast
UF90FLAGS=-O3 -openmp -openmp_report2 -inline_debug_info -check bounds -check pointer -traceback -g
FFTWLIBS=-L/opt/FFTW/lib -lfftw3f
INTEL=-L/opt/intel/fce/10.0.023/lib/ -limf
MAINLIBS=-lsupersetf90 -lsuperset -lsepparf90 -lseppar -lsep2df90 -lsep3df90 -lsep3d -lsepf90 -lsep -lsepgeef90
MPILIBS=-L/usr/local/mpich_intel/lib -lmpich -lfmpich
VEC=-L/opt/intel/Compiler/11.1/059/mkl/lib/em64t -lmkl -lvml
UF90LIBS=-lsep2df90 -lsepparf90 -lseppar -lsupersetf90 -lsuperset ${FFTWLIBS} ${MAINLIBS} ${MPILIBS} ${INTEL} -openmp -lpthread 

BIN=/data/temp1/guerrac/Bin
SRCDIR=./

##########################
#
# Progs
# 
#
steepls3d: steepest_ls3D.x
	rm -f ${BIN}/steepest_ls3D.x; make steepest_ls3D.x;mv steepest_ls3D.x ${BIN}/.

steepls1: steepest_ls1.x
	rm -f ${BIN}/steepest_ls1.x; make steepest_ls1.x;mv steepest_ls1.x ${BIN}/.

nlindir: nlin_dir.x
	rm -f ${BIN}/nlin_dir.x; make nlin_dir.x;mv nlin_dir.x ${BIN}/.

nlinsrch: nlin_srch.x
	rm -f ${BIN}/nlin_srch.x; make nlin_srch.x;mv nlin_srch.x ${BIN}/.

bfgs: lbfgs3D.x
	rm -f ${BIN}/lbfgs3D.x; make lbfgs3D.x;mv lbfgs3D.x ${BIN}/.

ow3dmig: OW3dmig_areal.x
	rm -f ./OW3dmig_areal.x; make OW3dmig_areal.x; 

ow3dspl: OW_spline.x
	rm -f ${BIN}/OW_spline.x; make OW_spline.x;mv OW_spline.x ${BIN}/. 

gradedit: gradedit.x
	rm -f ./gradedit.x; make gradedit.x;mv gradedit.x ${BIN}/. 

##########################################
regclean_%:
	@-touch $*; Rm $*; touch $*; \rm $*

clean : texclean 
	@-touch j.o j.mod j.x *.fix.f90; \rm *.o *.mod *.x *.fix.f90

include ${SEPINC}/SEP.bottom
