g++ 나 gcc 같은경우에는 #include 로 헤더파일들 불러오는게 쉬운데 포트란은 그런게 잘 안되는거같아서 makefile 쓰는게 편한 것 같다. 참고: https://caiorss.github.io/C-Cpp-Notes/compiler-flags-options.html https://math.unm.edu/~motamed/Teaching/OLD/Fall20/HPSC/makefiles.html https://www.cs.colostate.edu/~cs157/LectureMakefile.pd Introduction to Nuclear Engineering Programming - Chang et al.
목차: 1. 메인 파일 하나만 컴파일 할때 2.
메인 파일 하나 + 다른 코드(모듈 포함되어있는 파일) 여러개 컴파일 시킬때 1. 일단 메인 파일 하나만 컴파일시키는 makefile FC = gfortran EXEC = my-prog FFLAGS = -Wall SRC = main....
#
fortran
#
include
#
makefile
원문 링크 : [Fortran] 포트란 makefile