makefile: add optimisation level options

Change-Id: I46a93c1915fd70d923a000a03ee5a720126263bb