Creating a make target

A make target is an action called by the make utility to perform a customized build-related task. For example, many makefiles support a target named clean, which is called as make clean. You can call your own target (such as myMakeAction) to be called as make myMakeAction.

You can also use a make target to pass options such as CPULIST=x86, which causes the make utility to build only for x86. These options work only if they are already defined in the makefile.

If you have added your own make targets, you can configure the CDT to call them specifically. For more information, see Defining build settings.

To create a customized make target:

  1. In the C/C++ Projects view, right-click a project, and select Create Make Target.
  2. In the Target Name box, type the name of the make target.
  3. In the Build Target box, type a build target.
  4. Select one of the following:
  5. Select one of the following:
  6. Click OK.
  7. The target option is added under the Build Make Target menu item on the C/C++ Projects view context menu.

    You can view the output of the make utility in the C-Build view.

Related concepts
Build overview

Related tasks
Defining build settings
Building

Related reference
Make Builder page, C/C++ Properties window

IBM Copyright Statement