Makefile: add graphite optimizations