modify Makefile to more structured

Signed-off-by: Ji Bo <jibo.tiger@gmail.com>