Using SoftBench

Building Projects and Targets

for external build projects using make(1) as the build command, enter the -noption in the "Options" input box of the "External Build Command" dialog box.

Compiling Instead of Building

SoftBench supports both compiling and building the elements of a project. With a "Build" command, you select a target and SoftBench transforms the dependencies to create the target. During a build, SoftBench typically compiles files into object files, then links object files into a target.

In contrast, the "Compile" command transforms the selected source file into the next transformation state, for example, transforming the selected source file into an object file, but not linking the object file into a target.

To compile a file:

1.Select the file in either the project browser or target graph.

2.Choose "File: Compile".

The "Build" command is more reliable. SoftBench can predictably build your projects and targets, using either project build or external build. SoftBench can only make intelligent guesses about how to compile files in an external build project, because the build instructions are contained within the Makefile or build script and are not available to SoftBench's internal "Compile" command.

Building Subprojects

When you specify a subproject relationship, SoftBench by default builds the subproject before building the current project. As with any build, SoftBench builds only out-of-date files (files that have changed since the last build). If you do not want SoftBench to build the subprojects, turn off the "Build Subprojects" toggle button in the Build Control Area.

Handling Errors

When a build detects errors in your source files, SoftBench displays error messages in the output browser. You can go directly from the errors to the supporting source code that caused the error by double-clicking on the message.

Chapter 2

73

Page 73
Image 73
HP UX SoftBench Software manual Compiling Instead of Building, Building Subprojects, Handling Errors