GPU memory model
- July 5, 2013
Portable conditionals in makefiles
- July 2, 2013
If you are writing software that works on many variants of Unix, you are confronted to the problem of Makefiles: some systems use GNU make and others use BSD make and these two are compatible, but only on a very restricted subset. The most problematic restriction is that they don’t have a common syntax for writing conditionals.
So how do you write conditionals that work on both variants? GNU make and BSD make share so few of their “new” features (features that were not in UNIX make) that it looks like an impossible task.