Makefile generation for C export compilation