Herbert Fruchtl wrote:
> There are tools around to check for include files and modules used in
> Fortran source files, and create the dependencies for inclusion in a
> Makefile. I wrote my own script, but it depends on the include files
> being in the correct directory, etc.. I'm sure somebody has a more
> general one.
The only one I am aware of in the public domain is this PERL script:
http://www.met.ed.ac.uk/~hcp/fmkmf.html
I myself have special demands and ways of making projects (I work in HPF). I put
all my source files that use a preprocessor in one source directory. Then I make a
separate set of settings (like Fortran compiler, preprocessor values of variables,
etc.) in an include kind of makefile for each different project that I do (say I
change from 2D simulations to 3D ones). Then I preprocess the main source files
with these settings, put the resulting files into a separate (local) directory,
and then compile them.
I put the dependecies for modules in by hand. See the attached makefile.
Also, I am not aware of a good solution to the chain recompilation problem either
(I don't think there is one).
Best,
Aleksandar
--
_____________________________________________
Aleksandar Donev
Physics Department
Michigan State University
East Lansing, MI 48824-1116
E-mail: [log in to unmask]
Work phone: (517) 432-6770
_____________________________________________
|