[GRASS5] libgrass.pc pkg-config configuration file

Alessandro Frigeri afrigeri at unipg.it
Mon Aug 8 10:35:27 EDT 2005


Hello,

I prepared a pkg-config (http://pkgconfig.freedesktop.org/wiki/) file to allow 
quick compiling of GRASS modules/applications using the pkg-config tool.

Placing the file (libgrass.pc) in the right folder (e.g. /usr/lib/pkgconfig) 
it allows to recall compilation parameters without having to hardcode them in 
the Makefile.

example of pkg-config use:

gcc -o mytinymodule mytinymodule.c `pkg-config --libs --cflags libgrass` 

I hope this helps! 

Regards,

Alessandro Frigeri

here's the file:

*** /usr/lib/pkgconfig/libgrass.pc
prefix=/usr/lib/grass
libdir=${prefix}/lib
includedir=${prefix}/include

Name: libgrass
Description: GRASS GIS library
Version: 6.0.0-1
Cflags: -I${includedir}
Libs: -L${libdir} \
-lgrass_bitmap \
-lgrass_btree \
-lgrass_cdhc \
-lgrass_datetime \
-lgrass_dbmibase \
-lgrass_dbmiclient \
-lgrass_dbmidriver \
-lgrass_dbstubs \
-lgrass_dgl \
-lgrass_dig2 \
-lgrass_display \
-lgrass_D \
-lgrass_dspf \
-lgrass_edit \
-lgrass_form \
-lgrass_g3d \
-lgrass_gis \
-lgrass_gmath \
-lgrass_gproj \
-lgrass_image \
-lgrass_interpdata \
-lgrass_interpfl \
-lgrass_Iortho \
-lgrass_I \
-lgrass_linkm \
-lgrass_ogsf \
-lgrass_qtree \
-lgrass_raster \
-lgrass_rowio \
-lgrass_rtree \
-lgrass_segment \
-lgrass_shape \
-lgrass_sites \
-lgrass_sqlp \
-lgrass_symb \
-lgrass_trans \
-lgrass_vask \
-lgrass_vect 


-- 
Alessandro Frigeri <afrigeri at unipg.it>
PhD Student, University of Perugia, Italy




More information about the grass-dev mailing list