I need to support ~20 libraries each holding subroutines for say 250 modules each. These are all currently F77 but moving to 95/2003 standards.
In doing this conversion I am trying to do as few dumb things as possible. The problem of mod file management is currently on the table. My proposed approach is something like:
Library: lib_a is composed of Src1.f90, Src2.f90 ... Src250.f90
In each source define the module as
What this means is that an application using the lib_a library only needs to include USE lib_a_api and not 250 USE statements.
So far so good. But when I look at the size of lib_a_api.mod, I see that it must only be referencing the 250 mod files and not encapsulating them. So what I need to distribute is 250 src mod files plus 1 lib mod file. yuck!
Can I create a library of mod files? Can I force my lib_a_api.mod file to "swallow" it subordinates?