Example of using a Makefile
In this example we have three Fortran files:
f77test.f is the main program. The other two files
(init2.f and dot2.f) are subroutines. The fourth file
(f77test.inc) is an include file that is used to set
the dimensions of our problem.
It is very important to use a Makefile, it will
dramatically simplify your managing of your files.
And the larger your code the more important the
Makefile is. If you click
HERE , you will see a sample
makefile for the above code.
http://cac.psu.edu/~lnl/ihpca/make_samples.html