随笔分类 - Makefile
[整理] gcov lcov 覆盖c/c++项目入门
摘要:写在前面这个过程几乎从0开始,在此之前,我几乎没有在 linux 下编译链接过项目、没有接触过 makefile、没有读过 man-db、只 gcov 过一个仅有几个C文件的项目现在,我用 gcov 完成了对 VIM 源码的覆盖,并通过 lcov 生成了非常易读的覆盖率报告中间碰到了许多疑难杂症,但是更多的是若干教程中叮嘱的“不要放弃”,所以我大概按照下面的节点完成了这个工具的入门:虚拟机安装Ubuntu,配置gcov和lcov环境 --> 编译链接单个C文件 --> 写一个多个C文件的项目,用 makefile 进行编译连接,完成覆盖 --> 覆盖优秀的开源软件,例如 VI
阅读全文
Makefile和TAB键 - missing separator
摘要:makefile:4: *** missing separator. Stop. 4 或者其他数字表示make停止的行数Unlike most other DOS Make programs which accept any whitespace character at the beginning of a command in a rule, GNU Make insists that every such line begins with a TAB. (Most other Unix Make programs also require TABs, and the Posix sta.
阅读全文
[转载] Makefile简单例子
摘要:转载自http://mrbook.org/tutorials/make/Makefilesby exampleCompiling your source code files can be tedious, specially when you want to include several source files and have to type the compiling command everytime you want to do it.Well, I have news for you... Your days of command line compiling are (mos
阅读全文
浙公网安备 33010602011771号