Switch to Emakefile and reorganize files.