Index
CBM User Guide

How CBM Works

This topic first describes the high-level sequence of operations for a CBM build. The topic next briefly describes the function of each script in the CBM suite, with each script name a link to a more detailed description of the script and its arguments.

Library Build Sequence

The illustration below shows the high-level sequence of a CBM build.



A library build proceeds as follows:

  1. Preparing makefiles: The script rwsetup checks whether operating system and compiler information has been previously generated and, if not, exercises the compiler to determine its capabilities and limitations. Then one or more suitable makefiles is generated based on product-specific requirements, the build configuration, and user-specified options. During this phase, a workspace is created if necessary, and a buildloc/<part> directory within the workspace, to receive the makefiles and various configuration files created in this phase.
  2. Exporting source files: Header files are exported to the rw directory in the workspace. If the -l flag is set, the implementation source files are exported to the buildloc/<part> directory.
  3. Running make: The actual build takes place in the <workspace>/buildloc/<part> directory.

Controlling Scripts

This section briefly describes the scripts used in the configuration and build process, all of which can be found in <spm_root>/scripts. Knowledge of these scripts is unnecessary for normal rwspm-directed builds. We advise you not to modify these scripts without first talking with Rogue Wave Technical Support.

CBM User Guide
Index