我的项目有以下设置:
~/proj -> includes makefile and other stuff
~/proj/headers -> includes c header files
~/proj/source -> includes C source files
在主树文件夹中执行 make 时 ~/proj 错误会显示如下文件名:
"source1.c" error variable...etc
如何让 make 显示错误文件的绝对路径。像这样的东西:
~/proj/source/source1.c" error variable etc...
这是一个错误示例:
Dependencies for mem_init.c
Compiling mem_init.c
"mem_init.c", line 513: warning: implicit function declaration: init_mem (E_NO_IMPLICIT_DECL_ALLOWED)
cc: acomp failed for mem_init.c