Makefile issue: smart way to scan directory tree for .c files

后端 未结 4 986
再見小時候
再見小時候 2020-12-07 16:45

I am doing a project which is growing pretty fast and keeping the object files up date is no option. The problem beyond wildcard command lies somewhere between \"I do not wa

4条回答
  •  心在旅途
    2020-12-07 17:02

    Another good solution to this problem appears to be - implement a non-recursive makefile such as the one described here: http://sites.e-advies.nl/nonrecursive-make.html. This approach is nice because it seems fairly scalable - developers can add dependency information in the directory with the source files without having to worry about the overall makefile.

提交回复
热议问题