Include pig is a little perl script I wrote to display include file dependencies.
Usage: perl includepig.pl [options] [files]
Where options are as follows:
-I <dir> Add the given directory to the include path
for finding include files.
--ignore <file> Don't print any information about the given file.
This keeps your graphs from getting cluttered.
The output is in "dot" format, which means you need to use
graphviz to
turn it into a picture.
perl includepig.pl Source.cc -I /usr/include > pig.dot /usr/local/graphviz/bin/dot -Tgif -opig.gif pig.dotThere's also a helper script, which can generate a whole bunch of include graphs, one for each of your source files. The helper script only works on unix.
Download it here: includepig.pl
Download the helper script here: make_include_graphs
The license is public domain -- use it as you wish.
Last updated Oct 17, 2003
Back to Kimberley's Code.
Back to Kimberley's Home Page.