next up previous 623
Next: SURF Constants
Up: SURF Programming Interface
Previous: SURF coordinate frames

Building SURF

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.

Figure: Directory layout of SURF development system. CVS directories are not shown.
\begin{figure}\begin{center}
\begin{quote}\begin{small}\begin{verbatim}surf --...
...ni mapping cookbook\end{verbatim}\end{small}\end{quote}\end{center}
\end{figure}

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:

./mk export_source

Exports the source into a compressed tar file ready for distribution.
./mk build

Builds the monolith, extracting source files from tar files as required.
./mk export

Exports the built system into a compressed tar file ready for distribution. This will include the source code.
./mk export_run

Exports the run-only system into a compressed tar file ready for distribution. This will not include the source code.
./mk install

Installs the built system into the directory structure specified by the INSTALL environment variable. Files are installed below this directory into bin/surf, docs, help/surf and dates. Soft links are made from the installed binary directory to the current directory so that the installed files can be seen. Usually, INSTALL is set to /star.
./mk deinstall

Deinstall the package.


next up previous 623
Next: SURF Constants
Up: SURF Programming Interface
Previous: SURF coordinate frames

SURF Programming Interface
Starlink System Note 72
Tim Jenness, John F. Lightfoot
Joint Astronomy Centre, Hilo, Hawaii
10 July 2000
E-mail:ussc@star.rl.ac.uk

Copyright © 2008 Science and Technology Facilities Council