diff --git a/demo/Makefile b/demo/Makefile index fed9b7c4023c3d2413596a9729a1067aecf4547d..7980ddaa27c8ec161a5a0590727802cb200eb888 100644 --- a/demo/Makefile +++ b/demo/Makefile @@ -6,7 +6,8 @@ SHELL = /bin/sh USE_PARALLEL_AMDIS = 0 # 1 if AMDiS was compiled with parallel support, 0 otherwise USE_OPENMP = 0 # 1 if AMDiS was compiled with OpenMP support, 0 otherwise -USE_UMFPACK = 0 # 1 if AMDiS was compiled with the UMFPACK library, 0 otherwise +USE_UMFPACK = 0 # 1 if AMDiS was compiled with UMFPACK library, 0 otherwise +USE_MKL = 0 # 1 if AMDiS was compiled with Intel MKL library, 0 otherwise USE_SERVER = # mars, deimos or themisto. If no special server blank USE_COMPILER = gcc # gcc or icc USE_SMI = 0 @@ -76,6 +77,16 @@ ifeq ($(strip $(USE_UMFPACK)), 1) LIBS += $(UMFPACK_LIB) endif +ifeq ($(strip $(USE_MKL)), 1) + ifeq ($(strip $(USE_SERVER)), themisto) + LIBS += $(MKL_LIB) + else + LIBS += -L$(MKL_LIB) + endif + + LIBS += -lmkl -lmkl_solver -lguide -lpthread +endif + ifeq ($(strip $(USE_SMI)), 1) LIBS += $(SMI_LIB) endif