modify makefile for auto gen dependent files