makefile: add graphite loop optimisation option

Change-Id: I3c77ee381531769e5f1908f6f4c451bcfe533d85