# http://Evgenii.Rudnyi.Ru/ # Please define where to find include files and libraries for MUMPS # The METIS library should be also there # # In case of MS VC it is also possible to use environment variable # INCLUDE and LIB. In a case leave these two variables blank INCLOC = /users/erudnyi/work/lib/include LIBLOC = /users/erudnyi/work/ms/lib/bin #define C++ compiler and its flags CPP = cl FLAGS = -O2 -EHsc -MD -D_SECURE_SCL=0 # define BLAS libraries (right now it is MKL) LIBBLAS = mkl_intel_c.lib mkl_intel_thread.lib mkl_core.lib libiomp5md.lib LIBMUMPS = libdmumps.lib libmumps_common.lib libmetis.lib libmpiseq.lib $(LIBBLAS) run_mumps.exe : run_mumps.obj matrices.obj $(CPP) run_mumps.obj matrices.obj $(LIBMUMPS) -link -LIBPATH:$(LIBLOC) run_mumps.obj: run_mumps.cpp LinearSolver/auxiliary.h LinearSolver/matrices.h $(CPP) $(FLAGS) -ILinearSolver -I$(INCLOC) -c run_mumps.cpp matrices.obj: LinearSolver/matrices.cpp LinearSolver/auxiliary.h LinearSolver/matrices.h $(CPP) $(FLAGS) -ILinearSolver -I$(INCLOC) -c LinearSolver/matrices.cpp clean: rm -f *.obj *.exe *.manifest *.solution