Read the repo name again.
Anyways, this repository serves as a kind of "dropbox" where I drop Fortran programs and modules. Feel free to use them as you wish.
gfortran NAMEOFPROGRAM.f90 -o NAMEOFOUTPUTExample :
gfortran circle_test.f90 -o circle.outFirst, generate the object files
gfortran -c NAMEOFPROGRAM.f90Example :
gfortran -c main.f90Repeat for all necessary files.
Lastly, mention all the required object files and create the executable.
gfortran PROGRAM-01.o PROGRAM-02.o ... PROGRAM-N.o -o OUTPUTPROGRAMExample :
gfortran rectangle.o square.o -o shapes.outIn Linux (.so files):
gfortran -shared -fPIC -o NAMEOFLIBRARY.so NAMEOFPROGRAM-01.f90 NAMEOFPROGRAM-02.f90 ... NAMEOFPROGRAM-N.f90Example :
gfortran -shared -fPIC -o libgeometry.so squares.f90 triangles.f90In Windows (.dll files): Example :
gfortran -shared -o libgeometry.dll squares.f90 triangles.f90In MacOS (.dylib files): Example :
gfortran -dynamiclib -o libgeometry.dylib squares.f90 triangles.f90