add makefile
remove tmp file and fix makefile