Gnu Makefile - Handling dependencies

后端 未结 12 2527
滥情空心
滥情空心 2021-02-07 20:24

What approach do C++ programmers on Unix platform use to create and manage Makefiles?

I was using hand made Makefiles for my projects but they don\'t handle header file

12条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-07 20:44

    Instead of the sed scripts, use gcc's -MT option to modify the target of the generated dependency rules. This blog post has more info.

提交回复
热议问题