move main.c to under tools/
use wildcard to enumerate all c files under src dir
use simpler way
library option is not needed when compiling a shared library
update README