参考文章来自 IBM Knowledge Center 请点击
用途
在makefile中创建相关性
语法
makedepend [ -DName=Def] [ -DName] [ -IIncludeDir ] [ -YIncludeDir ] [ -a ] [ -fMakeFile ] [ -oObjSuffix ] [ -pObjPrefix ] [ -sString ] [ -wWidth ] [ -v] [ -m ] [ —Options— ] SourceFile ...
描述
makedepend命令按顺序读取每个 soucefile,并且像C预处理器那样对其进行语法分析。
它处理所有的#include、#define、#undef。。。等伪指令来确定在编译中需要用到哪些#include伪指令。
任何#include伪指令都能引用含有其他#include伪指令的文件,并且同样在那些文件中进行语法分析。
SourceFile直接或间接包含每个文件都被makedepend称为一个“相关性”。