4 ms·
> make cannot do any kind of dependency resolution Ignorant's question: isn't dependency resolution the core of make? What are you referring to here?
by teo_zero 2y ago
> make cannot do any kind of dependency resolution
Ignorant's question: isn't dependency resolution the core of make? What are you referring to here?
- imtringued 2y agoPlease 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.
- duped 2y agoI'm referring to package management. Modern build systems all have some way of doing package management directly or interfacing with package managers instead of just shelling out to them, which you would have to do with make.