debugging GRASS programs

Hi,

How to create programs with gmake4.1 so later they can be debugged
with debugger or dbxtool?

Thanks,

Kris
koperski@cs.sfu.ca