build makefiles, continue migration