C and C++ SoftBench User's Guide

Using SoftBench
Defining Targets for External Build
Chapter 264
Defining Targets for External Build
As part of SoftBench's support for the external build model, you can
create targets and save the command to initiate your build:
1. Choose "Target: New…" to display the "External Build Command"
dialog box shown in Figure 2-9.
Figure 2-9 "External Build Command" Dialog Box
2. Enter the build directory, build command, target name, and options
for a target.
3. Select Save as Target. This adds the target to the project file set, saves
its build instructions, and allows you to bypass this dialog box in the
future.
4. Repeat as necessary to define all of the project's targets, then select
Close to close the dialog box.
Now you can build this project or individual targets within it as
described in “Building Projects and Targets” on page 70.
When you use external build, your Makefile or build script contains the
knowledge of how to build your targets. You must manually edit the
appropriate file whenever the build instructions change.
To edit your Makefile or build script:
1. Add the Makefile to the project file set by choosing "Project: Add
File(s) to Project…".
You can add Makefiles to projects using the file types mechanism if