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:
In the SiteMenus.sniff file
The
SiteMenus.sniff
file is in the
SNIFF_DIR/config/
directory.
SiteMenus.sniff
in an editor.
Under
#
Patch Makefiles for New MakeSupport
uncomment the following lines:
#
>Makefiles
#
shell "Update Makefile(s) for New Makesupport" "echo
Updating File %f; sh $SNIFF_DIR/make_support/
UpdateMakefile.sh %f"
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.
UserMenus.sniff
in an editor.
Copy the following lines from
SiteMenus.sniff
to
UserMenus.sniff
:
#Patch Makefiles for New MakeSupport
#>Makefiles
#
shell "Update Makefile(s) for New Makesupport" "echo
Updating File %f; sh $SNIFF_DIR/make_support/
UpdateMakefile.sh %f"
In
UserMenus.sniff
, under
#
Patch Makefiles for New MakeSupport
uncomment the following lines:
#
>Makefiles
#
shell "Update Makefile(s) for New Makesupport" "echo
Updating File %f; sh $SNIFF_DIR/make_support/
UpdateMakefile.sh %f"
In the Project Editor
Load the project created with an earlier SNiFF+ version.
In the Filter dialog, File Types view, make sure that Makefiles are selected.
In the File List, select all Makefiles.
If the Makefiles are read-only, check them out by choosing File > Check Out.
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
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.