Optimizing makefile