add auto gen of Makefile