r/C_Programming • u/realguy2300000 • May 28 '26
Video a rant about makefiles, and build systems as a whole
https://youtu.be/YUUMidevekc?si=XKnF8pY6HabwbFy-
77
Upvotes
r/C_Programming • u/realguy2300000 • May 28 '26
39
u/West_Violinist_6809 May 28 '26
Can we get a written summary?
25
u/arkt8 May 28 '26
This is a great discussion I never see people talking much about...
37 years passed since AnsiC (1989) and 32 years since FHS (File Hierarchy Standard 1.0 - 1994). Make has its own standard under POSIX (https://pubs.opengroup.org/onlinepubs/9699919799/utilities/make.html). The POSIX standard on make I think most C developers never heard about or even know there is. So...
Now lets go to the remaining rant... I said FHS is around at least since 1994. So why people not adopted a minimal "Build Hierarchy Standard" inspired by FHS? it allows a much simpler makefile automation much more aligned to KISS than a myriad of different configuration shellscripts and avoids the bazooka of Cmake and Ninja (never used Cmake and Ninja, but wait... another configuration language over make, over shell... to build C... no).
What is my way to avoid this is a common parent hierarchy to build final executables and binaries, mirroring a basic system FHS that is a kind of small cache from where I can later install on system or create packages. It helps a lot writing and running tests also... the other hell that needs to be reinvented in every project.
8
u/mrheosuper May 28 '26
If only your framerate is as fast as your speech
4
u/markand67 May 29 '26
Properly written makefiles are great.
2
u/n0bml May 28 '26
I do.
2
u/FLMKane May 29 '26
On a side note - how do you build a c program by hand?
Never learnt how
2
u/Educational-Paper-75 May 29 '26
A necessary evil I'm afraid. Because who in his right mind likes build systems. Not me that's for sure. That's why I switched from autotools to CMake.
0
u/[deleted] May 28 '26
[deleted] — view deleted comment
2
u/[deleted] May 30 '26
[removed] — view removed comment