modified Makefile to support tool path and obj autogen
refine makefile and add auto dependency of header file