r.li is a more flexible and faster replacement of the old r.le. It is currently under development: the main structure (client-server, multiprocess) is ready, and several modules are now working. Help would be appreciated in testing and developing new modules. Please find more details in the README and description.html files, now in GRASS source code.
Assume that the name of new index is myIndex
##########FILE MAKE in r.li ####################
MODULE_TOPDIR =../..
PGM = r.li
include $(MODULE_TOPDIR)/include/Make/Dir.make
include $(MODULE_TOPDIR)/include/Make/Html.make
#insert all subdirs AFTER r.li.daemon
SUBDIRS = \
r.li.daemon\
r.li.patchdensity\
r.li.setup \
r.li.myIndex <--------------- insert here
default: subdirs htmldir
clean: cleansubdirs
###########################################################
##############Make di r.li.[indice]######################
MODULE_TOPDIR = ../../.. PGM = r.li.myIndex <------ put here your index name LIBES = $(GISLIB) -L../r.li.daemon -lr_li DEPENDENCIES = $(GISDEP) ../r.li.daemon/libr_li.a include $(MODULE_TOPDIR)/include/Make/Module.make default: cmd ##########################################################
If you have other libraries put it on “LIBES= …” line, in the usual gcc way. NOTE: You have to use GRASS>=6.1, because our software can be insert only in this version.
Have fun! Davide