Optimize makefile