[modify] modify code to used makefile.

Signed-off-by: Cedar Li <china.cedar.li@gmail.com>