Module compile order



Hi everyone,

In a large project I have, two modules mutually depend on each other.
What is the best way to compile these?

For example, if I have:

A.f90 containing:

module A
use B
end module A

B.f90 containing:

module B
use A
end module B

and main.f90 containing:

program test
use A
use B
end program test

then for example, how can I compile these with a Makefile? (in one make
command if possible).

Thanks for any help!
.



Relevant Pages