Follow these steps to create a makefile for the scanner_test project:
Select the scanner_test project in the C/C++ Projects view.
Right-click to display the context menu, then select New > File.
Enter makefile as the file name.
Click Finish.
When the editor opens, add this code to makefile:
|
PROJ_INCLUDE_DIR = ./scanner_test_includes
all:scanner_test.exe
scanner_test.exe: <tab>icc -I${PROJ_INCLUDE_DIR} scanner_test.c -o scanner_test.exe
clean: <tab>rm -rf scanner_test.exe |
Be sure to save the makefile when you are finished.
Note
The "<tab>" designation in this makefile example shows where you need to indent using the tab key. The makefile will not work correctly without a tab character on these two lines.