next up previous 211
Next: extmakefile - Modify makefile for use with EXTREME data sets
Up: Description of tools
Previous: inscnf - Wrap %VAL arguments with CNF_PVAL in Fortran 77


extmk - Modify mk file for use with EXTREME data sets

Description:
This is a simple filter which takes a Starlink mk file as input and writes as output a file which should provide the additional functionality required for EXTREME use, i.e. it adds new SYSTEM types of alpha_OSF1_64 and sun4_Solaris_64, provides for use of the INTEGER8 macro to preprocess Fortran source code before compilation, and modifies the C compilation flags for use with the INT_BIG macro.

The changes it attempts to make are as follows:

  • Add comment blocks describing the two new values of SYSTEM

  • Modify the comment describing the default value of CFLAGS

  • Add a comment describing the INTEGER8 environment variable

  • Export the INTEGER8 environment variable

  • Modify SYSTEM-specific settings for existing SYSTEMs

  • Add support for the two new SYSTEMs


If it is unable to make any of the modifications it would like to, it will print an explanatory message saying what it could not do.

The only change which might be required which this script does not make is to set values for the SOURCE_VARIANT variable. Depending on how the system-specific compilation is going to be done, it may be desirable to add SOURCE_VARIANT='alpha_OSF1' in the new alpha_OSF1_64 stanza, and SOURCE_VARIANT='sun4_Solaris' in the new sun4_Solaris_64 stanza. If required, this must be done by hand.

This script is not extremely intelligent - unless the mk file follows the usual pattern quite closely, the output may be in error, or complete rubbish. It is intended as a convenience, and if it does not work, then it will be necessary to make the modifications by hand; this is not too arduous.


Usage:
extmk < mk > mk.new



next up previous 211
Next: extmakefile - Modify makefile for use with EXTREME data sets
Up: Description of tools
Previous: inscnf - Wrap %VAL arguments with CNF_PVAL in Fortran 77


Starlink System Note 73
Mark Taylor
13 August 2001
E-mail:ussc@star.rl.ac.uk

Copyright © 2001 Council for the Central Laboratory of the Research Councils