ok, the first two part of my .mk file is :
### User Configurable Options
## To set up, follow the steps [1], [2], [3] below
#########
## [1]
##
## Set which compiler to use by defining CCCOM:
## GNU GCC compiler
#CCCOM=g++ -m64 -std=c++11 -fPIC
## Clang compiler (good to use on Mac OS)
#CCCOM=clang++ -std=c++11 -fPIC
## GCC On Windows cygwin
## Extra flags are workaround for limitations
## of this compiler with Windows binary format
CCCOM=g++ -std=c++11 -Wa,-mbig-obj -O2 -fPIC
## Intel C++ Compiler not recommended,
## As of June 2016 it does not fully support C++11
#########
#########
## [2]
##
## BLAS/LAPACK Related Options
##
## o The variable PLATFORM can be set to macos,lapack,mkl, or acml.
## This tells ITensor which style of BLAS/Lapack library to expect,
## and turns various lines of code on or off inside the files
## itensor/tensor/lapack_wrap.h and lapack_wrap.cc.
##
## o BLAS_LAPACK_LIBFLAGS specifies blas or lapack related
## flags used during the linking step. For example,
## flags of the type:
## -L/path/to/lapack/lib -llapack -lblas
## though the names of the static libraries (the files referred
## to by the -l flags) can be highly variable - see examples below.
##
## o BLAS_LAPACK_INCLUDEFLAGS are blas or lapack related flags
## needed during compilation. It may include flags such as
## -I/path/to/lapack/include
## where "include" is a folder containing .h header files.
##
##
## Mac OSX system
##
#PLATFORM=macos
#BLAS_LAPACK_LIBFLAGS=-framework Accelerate
##
## Example using a C interface to LAPACK on GNU/LINUX systems
## (Path to lib/ folder may differ on your system)
##
PLATFORM=lapack
BLAS_LAPACK_LIBFLAGS=-lpthread -L/usr/lib -lblas -llapack
##
## Example using the Intel MKL library
## (Path to lib/intel64/ and include/ folders may differ on your system)
##
#PLATFORM=mkl
## MKL example - you may need to change the names of the folders below
#BLAS_LAPACK_LIBFLAGS=-L/opt/intel/mkl/lib/intel64 -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_rt -lmkl_core -liomp5 -lpthread
#BLAS_LAPACK_INCLUDEFLAGS=-I/opt/intel/mkl/include
##
## Example using the OpenBLAS library (
http://www.openblas.net/)
## (Path to lib/ and include/ folders may differ on your system)
##
#PLATFORM=openblas
#BLAS_LAPACK_LIBFLAGS=-lpthread -L/usr/local/opt/openblas/lib -lopenblas
#BLAS_LAPACK_INCLUDEFLAGS=-I/usr/local/opt/openblas/include -fpermissive -DHAVE_LAPACK_CONFIG_H -DLAPACK_COMPLEX_STRUCTURE
##
## Example using the AMD ACML library
## (Path to lib/ folder may differ on your system)
##
#PLATFORM=acml
#BLAS_LAPACK_LIBFLAGS=-L/opt/acml5.1.0/gfortran64/lib -lacml -lgfortran -lpthread