[GRASS5] compile single module?

Glynn Clements glynn.clements at virgin.net
Fri Jan 31 19:10:54 EST 2003

Jeff D. Hamann wrote:

> I've just gotten GRASS5.0.1 to compile under cygwin and would like to add a
> module. After some trial-and-error, I think I've got the required items in
> place. I've added a line to src/CMD/lists/GRASS
> "src.contrib/OSU/v.mycommand" and reran make (it's now building) and would
> like to know if I've done everything required to add a module. Of course
> I've also added some source code. What *are* the steps required (hyperlink
> to help page?) to add a module correctly?

The minimum is to just add the directory, including a Gmakefile. To
have the module built by default, add the directory to

Addtional steps include adding a manual page in the html/html
directory (and optionally to the appropriate category page in the html
directory) and adding a tcltkgrass interface in tcltkgrass/module.

BTW, you can compile an individual module with "gmake5 <dir>" or
"gmake5 -i <dir>". To create the necessary link in the bin directory,
use "gmakelinks5" or "gmakelinks5 -i".

The "-i" flag causes the installed version (e.g. /usr/local/grass5) to
be updated; without it, only the build directory (dist.<arch>) is

Glynn Clements <glynn.clements at virgin.net>

More information about the grass-dev mailing list