It's shaping up well. I've put it in a branch here: http://git.zx2c4.com/cgit/commit/?h=jc/makefile EXTRA_CFLAGS seems a bit silly with the present structure, but I'll give it another look soon.