4 ms·
> Not sure I will write my Makefile generator, since my project is also not that big. gcc has a family of command-line options starting with -M than can genera
by _TwoFinger 5y ago
> Not sure I will write my Makefile generator, since my project is also not that big.
gcc has a family of command-line options starting with -M than can generate dependencies as a byproduct during compilation. The generated files are in Makefile format, and only need to be included in your main Makefile.
https://make.mad-scientist.net/papers/advanced-auto-dependency-generation/#combine https://make.mad-scientist.net/papers/advanced-auto-dependen...