The SURF development tree is in CVS and has the layout shown in
Fig.
. The development version can be built
by using the default make target in the surf directory or
by running the individual makefiles in the sculib, surflib,
surf_kap and src directories. The SURF monolith is
built in the src directory along with compilation of the IFC files
(the monolith IFL file is created automatically from the task IFL files).
The current development version number (i.e. the version number written to history components of the NDF files) is defined in src/makefile via the PKG_VERS variable. (see surf_set_app_name.F for more information on the setting of the version number in the monolith.
In order to generate a Starlink distribution the export target must be used from the root makefile. This generates tar files from each directory and copies them to the starlink directory. If required, the version number must be updated manually in the Starlink makefile. The platform dependencies are stored in the mk script that is used to run make with the correct environment. The environment is selected with the SYSTEM environment variable and can be one of sun4_Solaris, ix86_Linux or alpha_OSF1.
Once the SYSTEM environment variable has been set the mk script can be run to build and export SURF:
SURF Programming Interface