makefile: add optimisation level options

Change-Id: Ia9b78e7229c9b96e1ee5891c519ecb4b3bd4ca91