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

MPIDIR=/opt/MPI/mpich-1.2.7p1
UF90DEFINES=-DLINUX -DUSE_FFTW -DFFTW=1 -DSEP_OMP -DOMP # -DDBUG 
UF90INCLUDES=-I. -I${MPIDIR}/include/
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
MAINLIBS=-lsupersetf90 -lsuperset -lsepparf90 -lseppar -lsep2df90 -lsep3df90 -lsep3d -lsepf90 -lsep -lsepgeef90
MPILIBS=-L/opt/MPI/lib -lmpichf90 -lmpich
VEC=-L/opt/intel/Compiler/11.1/059/mkl/lib/em64t -lmkl -lvml
UF90LIBS=-lsep2df90 -lsepparf90 -lseppar -lsupersetf90 -lsuperset ${FFTWLIBS} ${MAINLIBS} ${MPILIBS} -openmp -lpthread

BIN=./
SRCDIR=./

##########################
#
# Progs
#
steepls3d: steepest_ls3D.x
	rm -f ${BIN}/steepest_ls3D.x; make steepest_ls3D.x; # mv -f steepest_ls3D.x ${BIN}/steepest_ls3D.x
##########################################
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
