Optimize Makefiles