3 ms·
That works fine if you’re only building for Linux. If, however, you want to run on BSD, you need something like autotools.
by jnwatson 5y ago
That works fine if you’re only building for Linux. If, however, you want to run on BSD, you need something like autotools.
- jandrese 5y agoA 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.