| |
Exporting and Running Makefiles
If you created a managed make C project, you can use Eclipse* to build
a makefile that includes Intel® compiler options. When your project is
complete, you can export your makefile and project source files to another
directory, then build your project from the command line using make.
Exporting makefiles
To export your makefile follow these steps:
| 1. |
Select your project in the Eclipse C/C++
Projects view. |
 |
| 2. |
From the Eclipse File menu, select
Export to launch the Export Wizard. |
| 3. |
On the Select dialog of the Export Wizard,
select File system, then click Next. |
 |
| 4. |
On the File system dialog, check both the helloworld
and Release directories in the left-hand pane.
Be sure all the project sources in the right-hand pane are also
checked.
NOTE: You may deselect some files in the right-hand
pane, such as the hello.o object file and helloworld
executable. However, you must also select Create directory
structure for files in the Options section
to successfully create the export directory. This also applies to
project files in the helloworld directory. |
 |
| 5. |
Use the Browse button to target the export
to an existing directory. Eclipse can also create a new directory
for full paths entered in the To directory text
box. If, for example, you specified /cpp/export
as the export directory, Eclipse creates two new sub-directories:
- /cpp/export/helloworld
- /cpp/export/helloworld/Release
|
| 6. |
Click Finish to complete the export.
|
Running make
In a terminal window, change to the /cpp/export/helloworld/Release
directory, then run make clean all. You should
see the following output:
rm -rf hello.o hello.d helloworld
Building file: ../hello.c
icc -c -o hello.o ../hello.c
Finished building: ../hello.c
|
|