3 ms·
Please tell me, how exactly does make resolve header file dependencies of a .c or .cpp file?
by imtringued 2y ago
Please tell me, how exactly does make resolve header file dependencies of a .c or .cpp file?
- teo_zero 2y agoDo you really expect an answer from a self-defined "ignorant"? Or is this a rhetoric question and you are hiding an answer inside it? If so I don't get it. Wouldn't it better to explain it in plain words?
- publicmail 2y agoIt normally works in conjunction with GCC’s “-MMD -MP” arguments which provide .d files which then get included back into the Makefile with something like “-include $(OBJS:%.o=%.d)”. It doesn’t directly interpret any source file though, if that’s what you mean.