mkDepends
mkDepends is a script in CIMEROOT/CIME/Tools.
$ ./mkDepends --help
SYNOPSIS
mkDepends [-p [-Dmacro[=val]] [-Umacro] [-Idir]] [-d depfile]
[-m mangle_scheme] [-t dir] [-w] Filepath Srcfiles
OPTIONS
-p
Preprocess files (suffix .F and .F90) before searching
for module dependencies. Default CPP preprocessor: cpp.
Set env variables CPP and/or CPPFLAGS to override.
-D macro[=val]
Define the CPP macro with val as its value.
Ignored when -p option is not active.
-U macro
Undefine the CPP macro.
Ignored when -p option is not active.
-I dir
Add dir to the include path for CPP.
Ignored when -p option is not active.
-d depfile
Additional file to be added to every .o dependence.
-m mangle_scheme
Method of mangling Fortran module names into .mod filenames.
Allowed values are:
lower - Filename is module_name.mod
upper - Filename is MODULE_NAME.MOD
The default is -m lower.
-t dir
Target directory. If this option is set the .o files that are
targets in the dependency rules have the form dir/file.o.
-w Print warnings to STDERR about files or dependencies not found.
ARGUMENTS
Filepath is the name of a file containing the directories (one per
line) to be searched for dependencies. Srcfiles is the name of a
file containing the names of files (one per line) for which
dependencies will be generated.