fix Makefile
fix the building failure due to the missing of build/gen or build/obj