Makefile refinement

Signed-off-by: Cheng Yao <saturdaycoder@gmail.com>