Usually in a .g file you just declare items. This will not allocate any code, flash or sram.
In one of the files you define what has been declared. This ensures that the data is allocated only once.
So in the .h file you declare the external array and in your main.c you define as pavloven showed the arrays.