To create a Makefile that can be launched outside the IDE:
In the Target Navigator view, select a project, right-click, and then select Properties.
On the left, select C/C++ Build.
On the right, verify that the Generate Makefiles automatically and the options Expand Env. Variable Refs in Makefiles in the group Makefile generation are selected.
On the left, expand C/C++ Build, and select Tool chain editor.
In the Current builder list, select the external make builder.
Specify any other desirable options for properties on 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). You can process this Makefile from 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 make infrastructure either by regenerating the Makefiles, or changing the existing files manually.