use cmake, remove makefile