Revert "use cmake"

This reverts commit 540b0a5e9670d0ae73f6dc5ae94e7d8dff326432.