Previous Next
Updating project Makefiles

The SNiFF+ Make Support has been modified and is no longer compatible with the Project Makefiles of earlier versions so you will need to update the Makefiles. To update project Makefiles, do the following:

    Note
    For upgrading Java projects, please refer to the technical reference in the Java tutorial.

    Note for Windows users
    In the following section, there are several references to symbolic links. Windows does not, however, support symbolic links. So, wherever symbolic links are created by SNiFF+ on Unix, local copies are made on Windows. Therefore, if you are working on Windows, please read all references to "symbolic links" as "local copies" in the following.

In the SiteMenus.sniff file
The
SiteMenus.sniff file is in the SNIFF_DIR/config/ directory.

or
In the UserMenus.sniff file
The
UserMenus.sniff file is in the % SNIFF_DIR%\Profiles\< Username >\ directory on Windows, and in your $HOME/.sniffrc/ directory on Unix.
In the Project Editor
  1. Load the project created with an earlier SNiFF+ version.
  2. In the Filter dialog, File Types view, make sure that Makefiles are selected.
  3. In the File List, select all Makefiles.
  4. If the Makefiles are read-only, check them out by choosing File > Check Out.
  5. Choose Makefiles > Update Makefiles for New Makesupport.
    This command runs a script which removes the following lines from the selected Makefiles:
    include $(SNIFF_MAKEDIR)/$(SNIFF_VPATH_INCL)
    include $(SNIFF_MAKEDIR)/$(SNIFF_OFILES_INCL)
    include $(SNIFF_MAKEDIR)/vpath.incl
    include $(SNIFF_MAKEDIR)/ofiles.incl
    Also replaces:
    INCLUDE = $(SNIFF_INCLUDE) <other includes> with
    SNIFF_INCLUDE += <other includes>
    and inserts
    SHARED LIB_TARGET
  6. It is necessary to remove these lines since the vpath.incl and ofiles.incl files are no longer generated by the new Make Support, so trying to include them would result in an error.