this port of makedepend is now called makedep, since it's a shorter name, and therefore better...? or at least shorter. the code has been ported to visual c++ 5.x-7.x as well as remaining compatible with unix and linux. it has been made to comply with c++ prototype rules. also, support for excluding directories from dependency checking has been added (with a -X flag that takes the directory name). Chris Koeritz fred@gruntose.com (original 3/4/1999) (updated 9/7/2000) (updated 3/18/2004) ============================================================================ makedepend ---------- This is a quick and rude port of the X11 R6 makedepend to OS/2 using icc. I have taken the code from FreeBSD 2.0.5, which I happened to have handy. I have added a feature I wanted: the switch -iENVIRONMENTVARIABLE will add all semicolon delimited directories in ENVIRONMENTVARIABLE to the list of include directories. One obvious use is: makedepend -i INCLUDE a.c If you do not want the system header files in you dependencies, you might use: set MYINCLUDE=\mytree\include;\mytree\subproj\include makedepend -i MYINCLUDE a.c but makedepend -I \mytree\include -I \mytree\subproj\include a.c which is the 'normal' way of doing things, is also possible. Sources ------- Todd Brunhoff wrote this program. Thanks. To build makedepend, I use icc and GNU make. nmake will barf over the makefile. And yes, I use long filenames. If you don't like that, edit the makefile. I have compiled these sources under NT with VC++ 4.2 without any hassles (different makefile, though). Lars Immisch lars@ibp.de