Re:A Generation Lost in the Bazaar (2012)
by phendrenad2 on Monday August 02, 2021 @06:01PM
(#28043263)
I recently came across a project with no external build system at all. Just a perl script which mimicked enough of the functionality of a build tool to get the job done. Basically "which files need rebuilding, just rebuild those". It's actually rather trivial when you look into it. Plus Makefile syntax is so bad it actually makes perl look like a hot new language.
Re:A Generation Lost in the Bazaar (2012)
by jnwatson on Monday August 02, 2021 @04:29PM
(#28042206)
That works fine if you’re only building for Linux. If, however, you want to run on BSD, you need something like autotools.
Re:A Generation Lost in the Bazaar (2012)
by jandrese on Monday August 02, 2021 @04:41PM
(#28042342)
A short Makefile means you aren't leaning on OS specific quirks and you have a short dependency list. It usually compiles on BSD just fine.
If you aren't including headers from the "linux" directory a BSD system is almost identical to a Linux system as far as C is concerned. Common libraries like OpenSSL, zlib, libpng, and so forth are identical as well. pkg-config exists on modern BSD systems and takes a lot of the guesswork out of dependencies.
As someone who used FreeBSD and Interix/SFU/SUA for a while, those were always the projects I hated the most. Just get over yourself and use autotools. Sure, your build will be a little slower, but guess what: it works.
Sure it means I would run into complications on a 30 year old AIX system with some old defunct C compiler, but that's a tradeoff I'm willing to make to simplify the build process.