Revert "remove emakefile"

This reverts commit 02e13deb77a033748b2a1e72610e05ebcec56828.