Makefile optimization