Gnu Makefile - Handling dependencies

后端 未结 12 2529
滥情空心
滥情空心 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:49

    With a more modern version of GCC, you can add the -MP flag to have GCC generate empty rules for the headers itself.

提交回复
热议问题