To allow a Makefile project to be launched outside the IDE:
-
In the Project Explorer view, select a Makefile project, right-click and select Properties.
-
On the left, select C/C++ Build.
-
In the Makefile generation panel in the area on the right, verify that
Generate Makefiles automatically and Expand Env.
Variable Refs in Makefiles are selected.
-
On the left, expand C/C++ Build and select Tool chain editor.
-
In the Current builder list (in the right area), select the GNU Make Builder.
-
Specify any other desirable options for properties in the other panels.
-
Click OK.
The
IDE generates a number of
.mk files and
a top-level
Makefile for each processed configuration (the last one in the configuration folder).
This
Makefile can be processed from the command line using the
make utility:
make -f [configuration]/makefile [target]
Every time any configuration is changed, updated, or deleted, you need to refresh the project's
make infrastructure either by regenerating the .mk files and
Makefile or changing the existing files manually.