build up a Gmakefile

HI:

Could anyone help me to find information about how to build up a Gmakefile in
Grass4.1 ?.

I have the Programmer's Reference Manual manual for Grass4.0 but I don't have t
he version for Grass3.0. Could anyone help me to find it?.

Thank you in advance.