Hi @RezaRezaei, this link can be useful:
you could also try fpm to build your program https://fpm.fortran-lang.org/en/index.html