| F90DEPEND(l) | F90DEPEND(l) |
If option -u (update) is used, the dependency information will be written to a makefile in such a way that the make command can determine which source files must be recompiled when a include file or an entity in a module has changed. Furthermore, make can find out an appropriate compilation order for all source files from the dependency information written by f90depend.
If the `create makefile' option -c is specified, f90depend automatically creates a simple makefile for compiling the source files, and linking the resulting object files into a program.
When called with the -s option (sort), f90depend prints on standard output the names of all SourceFiles appearing on the command line in an order appropriate for compilation. In this case, no dependency information will be written.
x.f90 <----------------- z.f90 | | +--------> y.f90 <-------+
f90depend -u -f prog.mk x.f90 y.f90 z.f90The file dependency section appended to prog.mk might look like this:
>
> ### DO NOT DELETE OR EDIT THIS LINE
> # Everything from here on down is generated by f90depend
> # so do NOT add any translation rules below here.
>
>
>
> #--- Module-Dependencies
>
> x.o: y.o
> z.o: y.o x.o
>
>
f90depend -c,pgm=myprog x.f90 y.f90 z.f90
f90depend -c,pgm=myprog,comp=nagf95,f90flags=-g \ x.f90 y.f90 z.f90or:
f90depend -c,pgm=myprog -c,comp=nagf95 \ -c,f90flags=-g x.f90 y.f90 z.f90
f90 -o myprog `f90depend -s x.f90 y.f90 z.f90`This command compiles the three source files in the order y.f90, x.f90, z.f90.
f90depend -v -u -f /dev/null *.f90 2>mxref.txt
| version 1.2 | April 2007 | F90DEPEND(l) |
|
Forschungszentrum Jülich D-52425 Jülich |
JSC Div. Application Support |
|
Imprint |
05.04.2007 |