add Makefile and tested on Ubuntu