fix slow performance in Make file -G -g