add makefile
rewrite makefile