revise makefile
add makefile for benchmark
fix a small bug