Default Makefile
Default Makefile
The default build system now targets GNU Fortran (gfortran) and provides legacy support for Fortran 77 objects.
The default build system now targets GNU Fortran (gfortran) and provides legacy support for Fortran 77 objects.
gnu_fc = gfortran -ffree-line-length-none
→ Main compiler used for standard Fortran 90/95 source files.
fc_legacy = gfortran -std=legacy -fallow-argument-mismatch -Ofast -ffree-line-length-none
→ Used for compiling legacy Fortran 77 files (opkda*.f, opkdmain.f).
exec = test
The compiled executable file name.
# Compile the model
make
# Run the executable
./test
# Clean after modifications
make clean