Regularly there is a thematic directory, e.g. sas for spectral analysis with a subdirectory p (subroutines) and several p/m* for main programs according to different needs (libraries, options, ...)

In each main-prog directory there is a sh script  fcmd  that sets parameters and call ~/bin/fcmb for compilation

In each sub-prog directory there are one or more libraries (static, libshort.a). Compilation is most often done with sh script ~/bin/fcs  If there are specific needs, local scripts must be made (exist)

So far this is true on linux.

On Cygwin, the gfortran compiler is used. Occasionally that compiler is useful also on Linux since it's less tolerant, more strict on coding, and more widely used.
Therefore the scripts have different names,

~/bin/gfmb for mains
~/bin/gfs for sub-programs

local script fcmd can be controlled from the environment as to the use of fcmb or gfmb. You can create a local gfmd if you like.

That's many words instead of an outright: I don't use make (the dependencies are a jungle).

If dependencies remain unresolved at the linker stage, you're told by the linker's output what's missing.

At the end of this page you will see a list of all libraries I have generated within the tide context.


./util/afor/p/libcurse.a
./util/afor/p/libutile.a
./util/afor/p/libutil.a
./util/afor/p/libutilc.a
./util/afor/p/libtexx.a
./util/afor/p/libnotexx.a
./util/afor/c/libcurse.a
./util/afor/c/libutilc.a
./util/afor/c/libtexx.a
./netCDF/netcdf-3.6.1/src/libsrc/libnetcdf.a
./sas/p/libgrasas.a
./sas/p/libsash.a
./sas/p/libsas.a
./sas/p/libnograsas.a
./tap/p/libtap.a
./tap/t/p/libtap.a
./IMSL/libsfun.a
./IMSL/fft/p/libfft.a
./IMSL/SFUN/libsfun.a
./IMSL/libimsl.a
./IMSL/libfft.a
./pgplot522/pgplot/libpgplot.a
./pgplot522/pgplot/4mw/libnogrex.a
./pgplot522/pgplot/4mw/libgrex.a
./pgplot522/pgplot/4mw/libnotexx.a
./Ttide/p/libttide.a
./Oload/afor/p/libaux.a
./Oload/afor/p/libloade.a
./Oload/afor/p/libortho.a
./Oload/afor/p/m/olmg/libolmg.a
./Oload/afor/p/libload.a
./Oload/afor/p/gra/libgra.a
./math/afor/p/librcp.a
./math/afor/p/libmath.a
./gps/p/libgps.a

Pgplot has a directory /usr/local/pgplot/


.bye