[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: 什么工具可以自动生成 Makefile 里的依赖关系?



gcc -MM

在 2012年2月13日 上午9:11,Plain_Text <resation@gmail.com>写道:


   GNU Autotools 无疑是一套自动化工具,可那玩艺并不容易学会。更重要的是,
Autotools 主要用来应付各种 Unix 系统之间的代码移植,对于只针对 Linux 系
统的程序,完全是“杀鸡用牛刀”。不知各位大虾用什么工具生成 Makefile? 其实
手写一个简单的 Makefile 并不难,但当文件很多时,处理依赖关系就有些麻烦了。
是否存在这样的工具:不自动生成完整的 Makefile, 但能够自动从源代码里提取
出文件依赖关系。也就是说:它能够到 C/C++ 源代码里去寻找 #include, 并且进
行分析。




--
To UNSUBSCRIBE, email to debian-chinese-gb-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: [🔎] 20120213011112.GA2688@localhost.localdomain" target="_blank">http://lists.debian.org/[🔎] 20120213011112.GA2688@localhost.localdomain



Reply to: