Makefile generation for C export compilation 

This needs to be tested in other systems