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=/net/koko/claudio/Research/Prst_ExpRefl/Tese/bin
OBJ=./
SRCDIR=./

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

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

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

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

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

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

owsemb:OW_semblance.x
	rm -f ${BIN}/OW_semblance.x;rm -f OW_semblance.x;make OW_semblance.x
	mv -f OW_semblance.x ${BIN}/OW_semblance.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
