Previous Next
Setting up C Make Support attributes

  1. In the Project Tree of the Project Editor, checkmark pico.shared , lib.shared , MSWIN.shared on Windows and UNIX.shared on Unix.
  2. Choose Project > Attributes of Checkmarked Projects....
    The Attributes of Checkmarked Projects dialog appears. You can use this dialog to set/ modify the attributes of multiple projects at the same time.
In the Attributes of Checkmarked Projects dialog
Setting up Make Support for pico.shared
  1. Under the Build Options node, select Project Targets.
  2. Make sure that pico is highlighted in the Project List.
  3. In the Executable field of the Ansi C/C++ tab, enter pico on Unix and pico.exe on Windows. This will be the name of the project's executable.
  4. Under the Build Options node, select Directives.
  5. Select the checkbox to the right of the Generate button and press the Set For All button.
    This attribute is now set for all projects.
  6. Under the Build Options node, select Build Structure.
  7. In Recursive Make Dirs field, enter lib.
    In order to build the project's executable, SNiFF+ must first build the target of the
    lib.shared subproject (a library). SNiFF+ uses the project information in Recursive Make Dirs field to determine the order in which to execute Make.
Setting up Make Support for lib.shared
  1. Highlight lib 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 libpico.a . This will be the name of the library built in this project.
  4. Under the Build Options node, select Build Structure.
  5. From the Passed to Superproject drop-down, choose Library.
    The project's library is exported to
    pico.shared and is used to build the Pico executable.
  6. In Recursive Make Dirs field, enter UNIX/MSWIN on Unix/Windows.
    The library is built using objects built in the platform-specific subdirectory of
    lib.shared .
Setting up Make Support for MSWIN.shared (Windows only)
  1. Highlight MSWIN in the Project List.
  2. Under the Build Options node, select Project Targets.
  3. In the Relinkable Object field of the Ansi C/C++ tab, enter osdep.o . This will be the name of the relinkable object built in this project.
  4. Press Ok to apply the changes to the project attributes.
  5. A dialog appears asking you if you want to update Makefiles. You will be updating Makefiles later on, so press No.
Setting up Make Support for UNIX.shared (Unix only)
  1. Highlight UNIX in the Project List.
  2. Under the Build Options node, select Project Targets.
  3. In the Relinkable Object field of the of the Ansi C/C++ tab, enter osdep.o . This will be the name of the relinkable object built in this project.
  4. Press Ok to apply the changes to the project attributes.
  5. A dialog appears asking you if you want to update Makefiles. You will be updating Makefiles later on, so press No.
Saving changes
  • In the Launch Pad, save the changes made to pico.shared and its subprojects:

    • Select pico.shared in the Project List.
    • Choose Project > Save Project pico.shared.
    • In the Alert dialog that appears, press the Save all button.