Makefile: optimizations

Change-Id: Icf10b98ca24c432879f72b64b2f7946adc496bce