next up previous 211
Next: cmp-xxx - Compare filtered source with original for unwanted changes
Up: Description of tools
Previous: extmk - Modify mk file for use with EXTREME data sets


extmakefile - Modify makefile for use with EXTREME data sets

Description:
This is a simple filter which takes a Starlink makefile as input and writes as output a file which provides some of the changes required for EXTREME use. Not all the requisite changes can be made however, and the resulting file will need some edits to be made by hand.

The changes it attempts to make are as follows:

  • Add ' -DINT_BIG=int' to the default CFLAGS macro

  • Add 'INTEGER8 = INTEGER' default macro setting

  • Add definition of the REPLACE_INTEGER8 macro

  • Add a rule for extracting Fortran source files from source archive

  • Add code for recording the INTEGER8 macro in the datestamp file


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.

Various changes will still need to be made by hand after generating a new makefile by running this script. The principal one is splitting files between Fortran and non-Fortran ones, so that the non-Fortran files can be extracted using the old rule, but the Fortran files can be extracted using the new rule inserted by this script (the dummy target '$(FORTRAN_FILES)' is written as a placeholder for such files). This may require splitting up existing macros, for instance splitting PRIVATE_INCLUDES into PRIVATE_C_INCLUDES and PRIVATE_F_INCLUDES.

This script is not extremely intelligent - unless the makefile follows the usual pattern quite closely, the output may be in error. It is strongly advised that the input and output are compared using diff. If there are problems, it may be necessary to make the modifications by hand; this is not too arduous.


Usage:
extmakefile < makefile > makefile.new



next up previous 211
Next: cmp-xxx - Compare filtered source with original for unwanted changes
Up: Description of tools
Previous: extmk - Modify mk file for use with EXTREME data sets


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