Previous Next
Setting up the build system

In the Project Editor

  • In the Project Tree of the Project Editor, choose Context menu > Select From All Projects to checkmark all projects.

  • Choose Project > Attributes of Checkmarked Projects....

  • The Group Project Attributes dialog appears. In this dialog, you can look at and modify the project attributes of multiple projects. For a description of the dialog, please see Reference Guide -- Project Attributes.
In the Group Project Attributes dialog

Click for full size, then use Back button

Setting up Make Support for complexlib.shared

  1. Highlight complexlib in the Project List.
  2. Under the Build Options node, select Project Targets.
  3. In the Library field of the of the Ansi C/C++ tab, enter complexlib.a . This will be the name of the library built in this project.
  4. Under the Build Options node, select Build Structure.
  5. In the Build Structure view, choose Passed to Superproject drop-down > Library.
    The project's library is exported to
    complex.shared and is used to build the Complex executable.
Setting up Make Support for iolib.shared
  1. Highlight iolib in the Project List.
  2. In the Build Structure view, choose Passed to Superproject drop-down > Object Files + Received.
    The project's object file (
    iolib.o ) is exported to complex.shared .
Setting up Make Support for complex.shared
  1. Highlight complex in the Project List.
  2. Under the Build Options node, select Project Targets.
  3. In the Executable field of the Ansi C/C++ tab, enter complex. This will be the name of the project's executable.
  4. On Unix only, enter -lstdc++ in the +Libraries Linked field (below the Executable field).
  5. Under the Build Options node, select Build Structure.
  6. In the Build Structure view, press the Generate button next to the Recursive Make Dir(s) field.
    The executable is built using recursive Make rules. By pressing the Generate button, SNiFF+ generates the order of subprojects in which Make is executed.
Generating the include paths for all projects
  1. Under the Build Options node, select Directives.
  2. Select the checkbox to the right of the Generate button.
  3. Press the Set for All button to generate the include paths for all projects in the Project List.
  4. Press Ok to apply the changes to the project attributes.
    The icons in the Project Tree of the Project Editor warn you that the projects have been modified.
  5. A dialog appears asking you to update Makefiles. We will do this later so press No.
In the Launch Pad
To Save the changes made to
complex.shared and its subprojects:
  1. Select complex.shared in the Project List.
  2. Choose Project > Save Project complex.shared.
  3. In the Alert dialog that appears, press the Save All button.