add makefile and demo main.cc