Right now the dependency cflags are copied all over the place, inconsistently. We can put it in one place and make things simpler. Note that doing this for _LIBS is a bit harder, because we want to avoid overlinking.
Created attachment 165159 [details] Patch
Comment on attachment 165159 [details] Patch Looks great!
Comment on attachment 165159 [details] Patch This patch is out of date and has some problems as-is. So I'm just going to throw it away for now and approach it later, if it's still an issue.
We use CMake now.