Generate makefiles