[GRASSLIST:2139] Re: New modules in GRASS

Glynn Clements glynn.clements at virgin.net
Tue Jan 6 16:45:41 EST 2004


Uttam Kumar wrote:

>                           I have a program in "C" related to the fly model 
> in GRASS. I want to add that in my GRASS version. How should I use "make and 
> gmake" and put it in the raster module, so that I can construct the fly 
> model from my raster data. Please suggest how to do it.

Create a subdirectory anywhere within the GRASS source tree (e.g. 
src/raster/r.fly) Add your source code to that directory, along with a
Gmakefile (use an existing Gmakefile as a base).

You should then be able to build your module using e.g.:

	gmake5 src/raster/r.fly
	gmakelinks5

If you want it to be installed immediately (without needing to re-run
"make install"), add the -i switch to both of the above commands,
i.e.:

	gmake5 -i src/raster/r.fly
	gmakelinks5 -i

To have it built along with everything else when you run "make", add
the directory to the file src/CMD/lists/GRASS (most of the build
process consists of running "gmake5" for each directory which is
listed in that file).

-- 
Glynn Clements <glynn.clements at virgin.net>




More information about the grass-user mailing list