GCC Dependency generation - library headers
I'm including some files from a library and using the gcc preprocessor to generate the dependencies. Right now, if I don't use the -MG option, it includes the library headers as dependencies of my source files. If I use the -MG option (and exclude searching of the library includes when generating dependencies),开发者_运维百科 then it assumes the library headers are auto-generated and does a clean make every time.
Is there a way to treat library headers the same way as system headers?
精彩评论