Noel David Torres Taño writes:

> Hello all:
>
> Fortran modules are made by compiling source code, at the same time object 
> files are. Thus,
>
> gfortran -o module.o -c module.F95
>
> produces TWO files, module.o AND module.mod .
>
> But, the problem is that in a large project using modules, some objects 
> depend on other modules:
>
> %.o : %.F95
>
> %.mod : %.F95
>
> codepiece2.o : codepiece1.mod
>
> exec1 : codepiece1.o codepiece2.o
>
> exec2 : codepiece3.o codepiece2.o
>
> How do you address these issues?
 
You have to write the rules describing those dependencies by yourself or
with the aid of a script that reads the Fortran files and guesses the
modules each one is using. Yesterday I posted a link to some information
about the issue.

--
Alberto


_______________________________________________
Help-make mailing list
Help-make@gnu.org
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to