Update Makefile

Optimized code