I wrote a parser that looked for USE statements in f90 files and generated
a rule file for each directory that explicitly stated the dependancy
between the new .o, the .f90 and the other used modules .o files. This
assumed that either the module information was in the .o files (Cray) or
.mod files were created at the same time as .o files (Nag).
A makefile was then produced by including all the relevant rule files for
different directories.
This does depend on having one module per f90 file with consistent case
throughout.
Chain recompilation because of module dependancies is a big problem with
F90, and no suitable solution has ever emerged over the years.
John
--
John Bray, Numerical Weather Prediction Tel: +44 (0) 1344 854035
Room 337 [log in to unmask]
The Met. Office http://www.met-office.gov.uk
London Road, Bracknell, RG12 2SZ, UK http://www.jrbray.org.uk
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|