SCANDEP
SCANDEP is a C/C++ programmer's utility to generate dependency lists for one or more source files. Dependency lists are generated in either a hierarchical format or a format suitable for makefiles. SCANDEP was developed for (and with) the Microsoft C/C++ compiler, but as far as we know it should work with source for any standard C/C++ compiler.
On the right is sample output from SCANDEP for a very simple project. The project consists
of two source files (MAIN.C and SUB.C) and two header files (MAIN.H and API.H). MAIN.C
#includes MAIN.H, while SUB.C #includes both MAIN.H and API.H.
This is clearly shown by the dependency lists. Note that the lists are in makefile
format and that SCANDEP has automatically generated makefile targets (MAIN.OBJ and
SUB.OBJ) for the two source files.
SCANDEP has many options to customize its output. For example, it can
You can use SCANDEP as a manual aid in organizing your projects and hand-tuning your makefiles, or as an integral part of the make process itself (to automatically generate dependency lists at make time).
SCANDEP is free for personal use. An inexpensive paid license is required for commercial and other use.
SCANDEP.ZIP Version 1.10 (released August 2006) - about 105K
Write us if you have questions or comments about SCANDEP.