Gnu Makefile - Handling dependencies

后端 未结 12 2525
滥情空心
滥情空心 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 21:05

    In a make file anything you list on the dependency line is a dependency header files or other files included.

    BSD tutorial on make Note: you can auto generate header dependency info with the -MM switch of GCC.

提交回复
热议问题