help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Make and Fortran modules


From: Alberto Luaces
Subject: Re: Make and Fortran modules
Date: Tue, 30 Mar 2010 15:27:26 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]