adjust makefile for G2