[GRASS-SVN] r35565 - in grass/trunk: imagery/i.ortho.photo/lib
include/Make lib/arraystats lib/cairodriver lib/cdhc
lib/cluster lib/driver lib/gpde lib/htmldriver lib/imagery
lib/nviz lib/ogsf lib/proj lib/psdriver lib/rst/interp_float
lib/stats lib/symbol lib/vector/Vlib lib/vector/transform
lib/vector/vedit raster/r.li/r.li.daemon raster/simwe/simlib
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Jan 23 16:45:19 EST 2009
Author: glynn
Date: 2009-01-23 16:45:18 -0500 (Fri, 23 Jan 2009)
New Revision: 35565
Modified:
grass/trunk/imagery/i.ortho.photo/lib/Makefile
grass/trunk/include/Make/Shlib.make
grass/trunk/lib/arraystats/Makefile
grass/trunk/lib/cairodriver/Makefile
grass/trunk/lib/cdhc/Makefile
grass/trunk/lib/cluster/Makefile
grass/trunk/lib/driver/Makefile
grass/trunk/lib/gpde/Makefile
grass/trunk/lib/htmldriver/Makefile
grass/trunk/lib/imagery/Makefile
grass/trunk/lib/nviz/Makefile
grass/trunk/lib/ogsf/Makefile
grass/trunk/lib/proj/Makefile
grass/trunk/lib/psdriver/Makefile
grass/trunk/lib/rst/interp_float/Makefile
grass/trunk/lib/stats/Makefile
grass/trunk/lib/symbol/Makefile
grass/trunk/lib/vector/Vlib/Makefile
grass/trunk/lib/vector/transform/Makefile
grass/trunk/lib/vector/vedit/Makefile
grass/trunk/raster/r.li/r.li.daemon/Makefile
grass/trunk/raster/simwe/simlib/Makefile
Log:
[NB: do not backport]
Link shared libraries against $(MATHLIB) automatically, rather than
requiring it to be specified via EXTRA_LIBS
Add $(FCLIB) as dependency for lib/cairodriver (will need configure.in changes)
Modified: grass/trunk/imagery/i.ortho.photo/lib/Makefile
===================================================================
--- grass/trunk/imagery/i.ortho.photo/lib/Makefile 2009-01-23 20:38:07 UTC (rev 35564)
+++ grass/trunk/imagery/i.ortho.photo/lib/Makefile 2009-01-23 21:45:18 UTC (rev 35565)
@@ -1,6 +1,6 @@
MODULE_TOPDIR = ../../..
-EXTRA_LIBS=$(GISLIB) $(IMAGERYLIB) $(MATHLIB)
+EXTRA_LIBS=$(GISLIB) $(IMAGERYLIB)
LIB_NAME = $(IORTHO_LIBNAME)
Modified: grass/trunk/include/Make/Shlib.make
===================================================================
--- grass/trunk/include/Make/Shlib.make 2009-01-23 20:38:07 UTC (rev 35564)
+++ grass/trunk/include/Make/Shlib.make 2009-01-23 21:45:18 UTC (rev 35565)
@@ -7,8 +7,8 @@
LDFLAGS += $(SHLIB_LDFLAGS)
$(SHLIB): $(SHLIB_OBJS)
- $(SHLIB_LD) -o $@ $(LDFLAGS) $^ $(LIBES) $(EXTRA_LIBS) && \
- (cd $(ARCH_LIBDIR); ln -f -s $(notdir $@) $(patsubst %.$(GRASS_VERSION_NUMBER)$(SHLIB_SUFFIX),%$(SHLIB_SUFFIX),$@))
+ $(SHLIB_LD) -o $@ $(LDFLAGS) $^ $(LIBES) $(EXTRA_LIBS) $(MATHLIB)
+ cd $(ARCH_LIBDIR) && ln -f -s $(notdir $@) $(patsubst %.$(GRASS_VERSION_NUMBER)$(SHLIB_SUFFIX),%$(SHLIB_SUFFIX),$@)
shlib: $(SHLIB)
Modified: grass/trunk/lib/arraystats/Makefile
===================================================================
--- grass/trunk/lib/arraystats/Makefile 2009-01-23 20:38:07 UTC (rev 35564)
+++ grass/trunk/lib/arraystats/Makefile 2009-01-23 21:45:18 UTC (rev 35565)
@@ -1,7 +1,7 @@
MODULE_TOPDIR = ../..
-EXTRA_LIBS=$(GISLIB) $(MATHLIB)
+EXTRA_LIBS=$(GISLIB)
LIB_NAME = $(ARRAYSTATS_LIBNAME)
Modified: grass/trunk/lib/cairodriver/Makefile
===================================================================
--- grass/trunk/lib/cairodriver/Makefile 2009-01-23 20:38:07 UTC (rev 35564)
+++ grass/trunk/lib/cairodriver/Makefile 2009-01-23 21:45:18 UTC (rev 35565)
@@ -1,7 +1,7 @@
MODULE_TOPDIR = ../..
EXTRA_CFLAGS=-I../driver $(CAIROINC) $(FTINC)
-EXTRA_LIBS=$(DRIVERLIB) $(GISLIB) $(CAIROLIB) $(MATHLIB)
+EXTRA_LIBS=$(DRIVERLIB) $(GISLIB) $(CAIROLIB) $(FCLIB)
# added constant to /include/Make/Grass.make.in
LIB_NAME = $(CAIRODRIVER_LIBNAME)
Modified: grass/trunk/lib/cdhc/Makefile
===================================================================
--- grass/trunk/lib/cdhc/Makefile 2009-01-23 20:38:07 UTC (rev 35564)
+++ grass/trunk/lib/cdhc/Makefile 2009-01-23 21:45:18 UTC (rev 35565)
@@ -1,6 +1,5 @@
MODULE_TOPDIR = ../..
-EXTRA_LIBS=$(MATHLIB)
LIB_NAME = $(CDHC_LIBNAME)
include $(MODULE_TOPDIR)/include/Make/Lib.make
Modified: grass/trunk/lib/cluster/Makefile
===================================================================
--- grass/trunk/lib/cluster/Makefile 2009-01-23 20:38:07 UTC (rev 35564)
+++ grass/trunk/lib/cluster/Makefile 2009-01-23 21:45:18 UTC (rev 35565)
@@ -4,7 +4,7 @@
include $(MODULE_TOPDIR)/include/Make/Lib.make
-EXTRA_LIBS = $(IMAGERYLIB) $(GMATHLIB) $(GISLIB) $(MATHLIB)
+EXTRA_LIBS = $(IMAGERYLIB) $(GMATHLIB) $(GISLIB)
default: lib
Modified: grass/trunk/lib/driver/Makefile
===================================================================
--- grass/trunk/lib/driver/Makefile 2009-01-23 20:38:07 UTC (rev 35564)
+++ grass/trunk/lib/driver/Makefile 2009-01-23 21:45:18 UTC (rev 35565)
@@ -3,7 +3,7 @@
include $(MODULE_TOPDIR)/include/Make/Vars.make
EXTRA_CFLAGS=$(FTINC)
-EXTRA_LIBS=$(GISLIB) $(FTLIB) $(ICONVLIB) $(MATHLIB)
+EXTRA_LIBS=$(GISLIB) $(FTLIB) $(ICONVLIB)
LIB_NAME = $(DRIVER_LIBNAME)
include $(MODULE_TOPDIR)/include/Make/Lib.make
Modified: grass/trunk/lib/gpde/Makefile
===================================================================
--- grass/trunk/lib/gpde/Makefile 2009-01-23 20:38:07 UTC (rev 35564)
+++ grass/trunk/lib/gpde/Makefile 2009-01-23 21:45:18 UTC (rev 35565)
@@ -1,6 +1,6 @@
MODULE_TOPDIR = ../..
-EXTRA_LIBS=$(GISLIB) $(G3DLIB) $(MATHLIB)
+EXTRA_LIBS=$(GISLIB) $(G3DLIB)
LIB_NAME = $(GPDE_LIBNAME)
include $(MODULE_TOPDIR)/include/Make/Lib.make
Modified: grass/trunk/lib/htmldriver/Makefile
===================================================================
--- grass/trunk/lib/htmldriver/Makefile 2009-01-23 20:38:07 UTC (rev 35564)
+++ grass/trunk/lib/htmldriver/Makefile 2009-01-23 21:45:18 UTC (rev 35565)
@@ -2,7 +2,7 @@
EXTRA_CFLAGS=-I../driver
-EXTRA_LIBS=$(DRIVERLIB) $(GISLIB) $(MATHLIB)
+EXTRA_LIBS=$(DRIVERLIB) $(GISLIB)
LIB_NAME = $(HTMLDRIVER_LIBNAME)
PGM = htmldriver
Modified: grass/trunk/lib/imagery/Makefile
===================================================================
--- grass/trunk/lib/imagery/Makefile 2009-01-23 20:38:07 UTC (rev 35564)
+++ grass/trunk/lib/imagery/Makefile 2009-01-23 21:45:18 UTC (rev 35565)
@@ -5,7 +5,7 @@
include $(MODULE_TOPDIR)/include/Make/Lib.make
include $(MODULE_TOPDIR)/include/Make/Doxygen.make
-EXTRA_LIBS = $(GMATHLIB) $(GISLIB) $(MATHLIB)
+EXTRA_LIBS = $(GMATHLIB) $(GISLIB)
default: lib
Modified: grass/trunk/lib/nviz/Makefile
===================================================================
--- grass/trunk/lib/nviz/Makefile 2009-01-23 20:38:07 UTC (rev 35564)
+++ grass/trunk/lib/nviz/Makefile 2009-01-23 21:45:18 UTC (rev 35565)
@@ -2,7 +2,7 @@
LIB_NAME = $(NVIZ_LIBNAME)
-EXTRA_LIBS = $(GISLIB) $(BITMAPLIB) $(VECTLIB) $(XLIBPATH) $(OPENGLLIB) $(OPENGLULIB) $(TIFFLIBPATH) $(TIFFLIB) $(FFMPEGLIBPATH) $(FFMPEGLIB) $(SITESLIB) $(G3DLIB) $(OGSFLIB) $(XLIB)
+EXTRA_LIBS = $(GISLIB) $(BITMAPLIB) $(VECTLIB) $(OPENGLLIB) $(OPENGLULIB) $(TIFFLIBPATH) $(TIFFLIB) $(FFMPEGLIBPATH) $(FFMPEGLIB) $(SITESLIB) $(G3DLIB) $(OGSFLIB)
include $(MODULE_TOPDIR)/include/Make/Lib.make
include $(MODULE_TOPDIR)/include/Make/Doxygen.make
@@ -10,10 +10,14 @@
ifeq ($(OPENGL_WINDOWS),1)
EXTRA_LIBS += -lgdi32
endif
+ifneq ($(USE_X11),)
+EXTRA_LIBS += $(XLIBPATH) $(XLIB) $(XEXTRALIBS)
+EXTRA_CFLAGS += $(XCFLAGS)
+endif
EXTRA_INC = $(VECT_INC) $(OPENGLINC) $(TIFFINCPATH) $(FFMPEGINCPATH)
-EXTRA_CFLAGS = $(VECT_CFLAGS) $(XCFLAGS)
+EXTRA_CFLAGS = $(VECT_CFLAGS)
ifneq ($(USE_OPENGL),)
default: lib
Modified: grass/trunk/lib/ogsf/Makefile
===================================================================
--- grass/trunk/lib/ogsf/Makefile 2009-01-23 20:38:07 UTC (rev 35564)
+++ grass/trunk/lib/ogsf/Makefile 2009-01-23 21:45:18 UTC (rev 35565)
@@ -1,6 +1,6 @@
MODULE_TOPDIR = ../..
-EXTRA_LIBS=$(GISLIB) $(BITMAPLIB) $(VECTLIB) $(XLIBPATH) $(OPENGLLIB) $(OPENGLULIB) $(TIFFLIBPATH) $(TIFFLIB) $(FFMPEGLIBPATH) $(FFMPEGLIB) $(SITESLIB) $(G3DLIB) $(MATHLIB)
+EXTRA_LIBS=$(GISLIB) $(BITMAPLIB) $(VECTLIB) $(XLIBPATH) $(OPENGLLIB) $(OPENGLULIB) $(TIFFLIBPATH) $(TIFFLIB) $(FFMPEGLIBPATH) $(FFMPEGLIB) $(SITESLIB) $(G3DLIB)
LIB_NAME = $(OGSF_LIBNAME)
Modified: grass/trunk/lib/proj/Makefile
===================================================================
--- grass/trunk/lib/proj/Makefile 2009-01-23 20:38:07 UTC (rev 35564)
+++ grass/trunk/lib/proj/Makefile 2009-01-23 21:45:18 UTC (rev 35565)
@@ -5,7 +5,7 @@
include $(MODULE_TOPDIR)/include/Make/Lib.make
include $(MODULE_TOPDIR)/include/Make/Doxygen.make
-EXTRA_LIBS=$(GISLIB) $(PROJLIB) $(GDALLIBS) $(MATHLIB)
+EXTRA_LIBS=$(GISLIB) $(PROJLIB) $(GDALLIBS)
EXTRA_CFLAGS = $(ZLIBINCPATH) $(GDALCFLAGS)
EXTRA_INC = $(PROJINC)
Modified: grass/trunk/lib/psdriver/Makefile
===================================================================
--- grass/trunk/lib/psdriver/Makefile 2009-01-23 20:38:07 UTC (rev 35564)
+++ grass/trunk/lib/psdriver/Makefile 2009-01-23 21:45:18 UTC (rev 35565)
@@ -2,7 +2,7 @@
EXTRA_CFLAGS=-I../driver
-EXTRA_LIBS=$(DRIVERLIB) $(GISLIB) $(MATHLIB)
+EXTRA_LIBS=$(DRIVERLIB) $(GISLIB)
LIB_NAME = $(PSDRIVER_LIBNAME)
PGM = psdriver
Modified: grass/trunk/lib/rst/interp_float/Makefile
===================================================================
--- grass/trunk/lib/rst/interp_float/Makefile 2009-01-23 20:38:07 UTC (rev 35564)
+++ grass/trunk/lib/rst/interp_float/Makefile 2009-01-23 21:45:18 UTC (rev 35565)
@@ -1,6 +1,6 @@
MODULE_TOPDIR = ../../..
-EXTRA_LIBS=$(GISLIB) $(VECTLIB) $(SITESLIB) $(BITMAPLIB) $(QTREELIB) $(INTERPDATALIB) $(DBMILIB) $(GMATHLIB) $(MATHLIB)
+EXTRA_LIBS=$(GISLIB) $(VECTLIB) $(SITESLIB) $(BITMAPLIB) $(QTREELIB) $(INTERPDATALIB) $(DBMILIB) $(GMATHLIB)
LIB_NAME = $(INTERPFL_LIBNAME)
Modified: grass/trunk/lib/stats/Makefile
===================================================================
--- grass/trunk/lib/stats/Makefile 2009-01-23 20:38:07 UTC (rev 35564)
+++ grass/trunk/lib/stats/Makefile 2009-01-23 21:45:18 UTC (rev 35565)
@@ -1,7 +1,7 @@
MODULE_TOPDIR = ../..
-EXTRA_LIBS=$(GISLIB) $(MATHLIB)
+EXTRA_LIBS=$(GISLIB)
LIB_NAME = $(STATS_LIBNAME)
Modified: grass/trunk/lib/symbol/Makefile
===================================================================
--- grass/trunk/lib/symbol/Makefile 2009-01-23 20:38:07 UTC (rev 35564)
+++ grass/trunk/lib/symbol/Makefile 2009-01-23 21:45:18 UTC (rev 35565)
@@ -1,6 +1,6 @@
MODULE_TOPDIR = ../..
-EXTRA_LIBS=$(GISLIB) $(MATHLIB)
+EXTRA_LIBS=$(GISLIB)
LIB_NAME = $(SYMB_LIBNAME)
Modified: grass/trunk/lib/vector/Vlib/Makefile
===================================================================
--- grass/trunk/lib/vector/Vlib/Makefile 2009-01-23 20:38:07 UTC (rev 35564)
+++ grass/trunk/lib/vector/Vlib/Makefile 2009-01-23 21:45:18 UTC (rev 35565)
@@ -2,7 +2,7 @@
EXTRA_INC = $(VECT_INC)
EXTRA_CFLAGS = $(ZLIBINCPATH) $(VECT_CFLAGS)
-EXTRA_LIBS=$(GISLIB) $(DIG2LIB) $(GRAPHLIB) $(RTREELIB) $(LINKMLIB) $(DBMILIB) $(GDALLIBS) $(MATHLIB)
+EXTRA_LIBS=$(GISLIB) $(DIG2LIB) $(GRAPHLIB) $(RTREELIB) $(LINKMLIB) $(DBMILIB) $(GDALLIBS)
LIB_NAME = $(VECTR_LIBNAME)
DEPENDENCIES = $(ARCH_INCDIR)/Vect.h $(ARCH_INCDIR)/V_.h \
Modified: grass/trunk/lib/vector/transform/Makefile
===================================================================
--- grass/trunk/lib/vector/transform/Makefile 2009-01-23 20:38:07 UTC (rev 35564)
+++ grass/trunk/lib/vector/transform/Makefile 2009-01-23 21:45:18 UTC (rev 35565)
@@ -1,7 +1,6 @@
MODULE_TOPDIR = ../../..
-EXTRA_LIBS=$(MATHLIB)
LIB_NAME = $(TRANS_LIBNAME)
include $(MODULE_TOPDIR)/include/Make/Lib.make
Modified: grass/trunk/lib/vector/vedit/Makefile
===================================================================
--- grass/trunk/lib/vector/vedit/Makefile 2009-01-23 20:38:07 UTC (rev 35564)
+++ grass/trunk/lib/vector/vedit/Makefile 2009-01-23 21:45:18 UTC (rev 35565)
@@ -6,7 +6,7 @@
EXTRA_INC = $(VECT_INC)
EXTRA_CFLAGS = $(VECT_CFLAGS)
-EXTRA_LIBS = $(VECTLIB) $(DBMILIB) $(GISLIB) $(MATHLIB)
+EXTRA_LIBS = $(VECTLIB) $(DBMILIB) $(GISLIB)
include $(MODULE_TOPDIR)/include/Make/Lib.make
include $(MODULE_TOPDIR)/include/Make/Doxygen.make
Modified: grass/trunk/raster/r.li/r.li.daemon/Makefile
===================================================================
--- grass/trunk/raster/r.li/r.li.daemon/Makefile 2009-01-23 20:38:07 UTC (rev 35564)
+++ grass/trunk/raster/r.li/r.li.daemon/Makefile 2009-01-23 21:45:18 UTC (rev 35565)
@@ -1,6 +1,6 @@
MODULE_TOPDIR = ../../..
-EXTRA_LIBS=$(GISLIB) $(MATHLIB)
+EXTRA_LIBS=$(GISLIB)
LIB_NAME = grass_rli
PGM = r.li.daemon
Modified: grass/trunk/raster/simwe/simlib/Makefile
===================================================================
--- grass/trunk/raster/simwe/simlib/Makefile 2009-01-23 20:38:07 UTC (rev 35564)
+++ grass/trunk/raster/simwe/simlib/Makefile 2009-01-23 21:45:18 UTC (rev 35565)
@@ -1,6 +1,6 @@
MODULE_TOPDIR = ../../..
-EXTRA_LIBS = $(GISLIB) $(BITMAPLIB) $(DBMILIB) $(GMATHLIB) $(LINKMLIB) $(XDRLIB) $(SITESLIB) $(VECTLIB) $(MATHLIB)
+EXTRA_LIBS = $(GISLIB) $(BITMAPLIB) $(DBMILIB) $(GMATHLIB) $(LINKMLIB) $(XDRLIB) $(SITESLIB) $(VECTLIB)
DEPENDENCIES = $(GISDEP) $(BITMAPDEP) $(DBMIDEP) $(GMATHDEP) $(LINKMDEP) $(XDRDEP) $(SITESDEP) $(VECTDEP)
EXTRA_INC = $(VECT_INC)
EXTRA_CFLAGS = $(VECT_CFLAGS)
More information about the grass-commit
mailing list