#LIBS = -L/usr/local/lib -lblacsF77init -lblacs -lscalapack -lessl -L/usr/local/packages/vampir/lib64 -lVT -lld
LIBS =  -L$(MAGMADIR)/lib -L$(CUDADIR)/lib64  -lmagma -lcudart -lcublas 
STATIC_LIBS = -Wl,--start-group -L/home/cseg/scarf474/xdr_cliff_new -lfxdr -Wl,--end-group

F90 = mpiifort

F90FLAGS = -fpp -DHAVE_CUBLAS -mkl=parallel -O3 -I$(MAGMADIR)/include -I$(CUDADIR)/include -Dmagma_devptr_t="integer(kind=8)"
#-O3 -qarch=pwr4 -qtune=pwr4 -qcache=auto -qmaxmem=-1 \
#	-qsuffix=f=f90 -g -qessl -q64
#F90FLAGS = -g -C -qextchk -qflag=I:I -qlanglvl=95pure -qnoopt \
#	-qflttrap=overflow:underflow:invalid:zerodivide \
#	-qinitauto=7FF7FFFF -qsuffix=f=f90 -q64
F90FLAGS1 = $(F90FLAGS)
LDFLAGS=$(F90FLAGS)
LDFLAGS_STAT1= -Wl,--start-group
LDFLAGS_STAT2= -Wl,--end-group
