Automatically discovering C dependencies

前端 未结 5 1517
野的像风
野的像风 2020-12-14 12:17

I\'m required to write documentation for my current project that lists all .c files and for each one lists every .h file which is directly or indirectly included by that fil

5条回答
  •  再見小時候
    2020-12-14 12:47

    An alternative to gcc -M is fastdep. Fastdep's author reports fastdep to be ten times faster than gcc's -M. If the project takes a while to build, fastdep may be worth a look.

提交回复
热议问题