Creating a Makefile to build outside of the IDE

To create a Makefile that can be launched outside the IDE:

  1. In the Target Navigator view, select a project, right-click, and then select Properties.
  2. On the left, select C/C++ Build.
  3. 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.
  4. On the left, expand C/C++ Build, and select Tool chain editor.
  5. In the Current builder list, select the external make builder.
  6. Specify any other desirable options for properties on the other panels.
  7. 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]
  8. 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.