2 ms·
Anecdotal evidence but I work on a large number of C repositories and autotools is by far the most common cause of build related issues. Hand written makefiles
by PhilipRoman 3y ago
Anecdotal evidence but I work on a large number of C repositories and autotools is by far the most common cause of build related issues. Hand written makefiles are typically the easiest to debug. Note that this doesn't include makefile-based systems like Buildroot or Linux kernel makefiles. I don't consider them good examples due to the stateful config file management.
My golden standard for building a project is the "empty makefile" only containing definitions for CFLAGS and LDFLAGS.
- teo_zero 3y agoThat's possible if you have one source for each executable. For slightly more complex projects don't you need at least an additional line? Something like App: main.o whatever.o ...
- PhilipRoman 3y agoOf course, reality isn't always simple. But the core idea is that Make has a sane model with reasonable defaults and most faults of makefiles are introduced by those who add unnecessary complexity and disrespect the functional nature of Make.