MakeDepend: Difference between revisions
From WikiROMS
Jump to navigationJump to search
mNo edit summary (change visibility) |
No edit summary (change visibility) |
||
Line 1: | Line 1: | ||
='''MakeDepend'''= | |||
The file '''Compilers/MakeDepend''' is generated automatically by executing "'''make depend'''" from the top-level directory. It is included by the top-level '''makefile''' and contains [[Make#Dependencies|dependency]] information to make sure that everything gets recompiled in the correct order after source files are edited. Fortran 90 with use of the [[C Preprocessor]] has include dependencies of both the '''cpp''' and '''Fortran''' flavor, plus '''module''' dependencies; all three types are placed into the '''MakeDepend''' file. | The file '''Compilers/MakeDepend''' is generated automatically by executing "'''make depend'''" from the top-level directory. It is included by the top-level '''makefile''' and contains [[Make#Dependencies|dependency]] information to make sure that everything gets recompiled in the correct order after source files are edited. Fortran 90 with use of the [[C Preprocessor]] has include dependencies of both the '''cpp''' and '''Fortran''' flavor, plus '''module''' dependencies; all three types are placed into the '''MakeDepend''' file. | ||
The dependency checking program is a [http://www.perl.org/ Perl][http://www.perl.com] script called '''sfmakedepend'''. This is in the '''Bin''' directory and typing "'''Bin/sfmakedepend --man'''" will present you with a man page. | The dependency checking program is a [http://www.perl.org/ Perl][http://www.perl.com] script called '''sfmakedepend'''. This is in the '''Bin''' directory and typing "'''Bin/sfmakedepend --man'''" will present you with a man page. |
Revision as of 20:19, 22 November 2006
MakeDepend
The file Compilers/MakeDepend is generated automatically by executing "make depend" from the top-level directory. It is included by the top-level makefile and contains dependency information to make sure that everything gets recompiled in the correct order after source files are edited. Fortran 90 with use of the C Preprocessor has include dependencies of both the cpp and Fortran flavor, plus module dependencies; all three types are placed into the MakeDepend file.
The dependency checking program is a Perl[1] script called sfmakedepend. This is in the Bin directory and typing "Bin/sfmakedepend --man" will present you with a man page.