Modifying Your makefile
If you use makefiles to build your gcc* application, you need to change the value for the
GCCcompiler variable to use the Intel® C++ Compiler. You may also want to review the options specified by
. For example:
Sample gcc* makefile
Sample makefile modified for the Intel® C/C++ Compiler
If your gcc* code includes features that are not supported with the Intel® C++ Compiler (compiler options, language extensions, macros, pragmas, and so on), you can compile those sources separately with gcc* if necessary.
In the above makefile,
area_functions.cis an example of a source file that includes features unique to gcc*. Because the Intel® C++ Compiler uses the
O2option by default and gcc* uses option
O0as the default, we instruct gcc* to compile at option
O2. We also include the
-fno-asmswitch from the original makefile because this switch is not supported with the Intel® C++ Compiler.
Sample makefile modified for using the Intel® C/C++ Compiler a