Previous Next
Specifying Make attributes

You can set a project's Build attributes under the Build Options node of the Project Attributes dialog. The default values used in this dialog are specified in your Preferences. See also Build System.
Basically, you need to do the following things to use your own makefiles in SNiFF+:

To use your own makefiles:
  1. Start SNiFF+ and open the project for which you want to set up Make Support.
  2. Check out the Project Description Files (PDFs) of all the projects for which you will be building targets.
  3. In the Project Tree, checkmark all the projects for which you will be building targets.
  4. Choose Project > Attributes of Checkmarked Projects....
    The Group Project Attributes dialog appears.
  5. Select the Build Options node.
Project Attributes -- Build Options
You will now set the Make attributes that are the same for all projects.

Click for full size, then use Back button

  1. Enter your Make command in the Make Command field. Use the -f option to specify your makefile's name. For example:
    make -f yourMakefile
    This Make command will then be submitted to the Shell when you build targets in SNiFF+.
  2. Select the check box to the right of the Make Command field.
    This attribute will now also apply to all projects checkmarked in the Project Tree.
  3. Press the Set All button to apply to all the projects checkmarked in the Project Tree.
  4. Press the Ok button to apply the settings and to close the Group Project Attributes dialog.
    Notice that the Project Tree indicates that all checkmarked projects are modified. We recommend that you save all modified projects at this time.
Project-specific attributes in the Project Attributes dialog
You will now set those Make attributes which are specific to each project for which you will be building targets. Please complete the following steps for each project:
  1. In the Project Tree, double-click on the project for which you will be setting project-specific Make attributes.
    The Project Attributes dialog appears.
  2. Select the Project Targets node.

    Click for full size, then use Back button

  3. Enter the name of the project's default target (described below).
    • If the target is an executable, enter its name in the Executable field.
    • If the target is an relinkable object, enter its name in the Relinkable Object field.
    • If the target is a library object, enter its name in the Library field.
  4. If you want to build additional targets, enter their names in the Other field. Use a colon ( : ) to separate target names.
  5. Press the Ok button to apply the Make attributes to the project.
  6. Save the modified project.
Specifying the targets of a project
The following types of targets may be specified in a project:
  • executable

  • relinkable object

  • library

Each project has only one default target. SNiFF+ uses this target name as the default target for the Make... command in the Target menu. If only one of the targets mentioned above is specified in a project, this target is the default target of the project. If several targets are specified in a project, the first target in the order--executable, relinkable object, library--is the default target of the project. When no target is specified, object files are built.