fortdepend: A Fortran Dependency Generator¶
fortdepend is a python package to automatically generate
Fortran dependencies.
Given a set of files, fortdepend automatically constructs
the dependency graph for the programs and files and can write a
dependency file suitable for Makefiles. fortdepend now uses
pcpp, a preprocessor written in Python, so it can determine which
modules will actually be used when you compile.
You can even use fortdepend to draw the graph of the module
dependencies (requires graphviz)!
Original script by D. Dickinson
Contents:
Limitations¶
fortdependrequires Python 3.fortdependworks by looking for matching pairs ofprogram <name>/end program <name>andmodule <name>/end module <name>, and so will not work on Fortran 77-style files that just useendwithout the appropriate label.