Intel® C++ Compiler XE 13.1 User and Reference Guides
This topic describes use of makefiles to compile your application.
Linux* OS and OS X*:
To run make from the command line using Intel® C++ Compiler, make sure that /usr/bin is in your path.
To use the Intel® compiler, your makefile must include the setting CC=icpc. Use the same setting on the command line to instruct the makefile to use the Intel® compiler. If your makefile is written for gcc, the GNU* C compiler, you will need to change those command line options not recognized by the Intel® compiler. Run make, using the following syntax:
make -f my_makefile
|
Argument |
Description |
|---|---|
|
-f |
the nmake option to specify a particular makefile. |
|
my_makefile.mak |
the makefile to use to generate object and executable files. |
|
CPP |
the makefile to use to generate object and executable files. |
|
LINK32 |
the linker to use. |
The nmake command creates object files (.obj) and executable files (.exe) from the information provided in the makefile.