Intel® Math Kernel Library 2018 Update 1 Developer Guide
Fortran 95 interfaces are compiler-dependent. Intel MKL provides the interface libraries and modules precompiled with the Intel® Fortran compiler. Additionally, the Fortran 95 interfaces and wrappers are delivered as sources. (For more information, see Compiler-dependent Functions and Fortran 90 Modules). If you are using a different compiler, build the appropriate library and modules with your compiler and link the library as a user's library:
For the IA-32 architecture,
nmake libia32 install_dir=<user dir>
For the Intel® 64 architecture,
nmake libintel64 [interface=lp64|ilp64] install_dir=<user dir>
The parameter install_dir is required.
As a result, the required library is built and installed in the <user dir>\lib directory, and the .mod files are built and installed in the <user dir>\include\<arch>[\{lp64|ilp64}] directory, where <arch> is one of {ia32, intel64}.
By default, the ifort compiler is assumed. You may change the compiler with an additional parameter of
nmake:
FC=<compiler>.
For example, the command
nmake libintel64 FC=f95 install_dir=<userf95 dir> interface=lp64
builds the required library and .mod files and installs them in subdirectories of <userf95 dir>.
To delete the library from the building directory, use one of the following commands:
For the IA-32 architecture,
nmake cleania32 install_dir=<user dir>
For the Intel® 64 architecture,
nmake cleanintel64 [interface=lp64|ilp64] install_dir=<user dir>
For all the architectures,
nmake clean install_dir=<user dir>
Even if you have administrative rights, avoid setting install_dir=..\.. or install_dir=<mkl directory> in a build or clean command above because these settings replace or delete the Intel MKL prebuilt Fortran 95 library and modules.