I have a dream!
pgf90 libxmath.f90 libutil.f90 libgrid.f90 libdate.f90
libcoordinate.f90 libmeteo.f90 libcontract.f90 libwindfunction.f90
bmp_io.c libbmp.f90 test.f90 -o test.exe
I would like to do something like:
pgf90 -fautomodules test.f90 -o test.exe
Many of my programs start with a list of USE statements like:
The modules are generally stored in separate .f90-files with names like:
When I compile my main program, I would very much like to have a compile-switch that takes care after all the modules by (re-)compiling them in the correct order (if necessary) and linking them automatically. I have already taken the effort of listing the names of all necessary modules in the sources of the main program and of the sources of the modules themselves. To me it seems a bit odd that I have to tell the compiler again which modules to compile. In particular, the order in which I have to tell the compiler to process the sources matters. Every time again this is a nuisance/“challenge”. An unnecessary nuisance/“challenge”.
Is there a way to do the above trick?
If not: can I invite you to consider implementing it?