]> granicus.if.org Git - postgis/commitdiff
Makefile should fully honor USE_GEOS flag now.
authorPaul Ramsey <pramsey@cleverelephant.ca>
Wed, 9 Apr 2003 21:53:41 +0000 (21:53 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Wed, 9 Apr 2003 21:53:41 +0000 (21:53 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@259 b70326c6-7e19-0410-871a-916f4a2858ee

Makefile

index d535e05e6fc14e7f341e01d6071b034c7a54c817..5b7a0f6acb65e76454ddf9865d34aa434b8da77a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -3,14 +3,14 @@
 #---------------------------------------------------------------
 # Set USE_PROJ to 1 for Proj4 reprojection support
 #
-USE_PROJ=0
+USE_PROJ=1
 PROJ_DIR=/usr/local
 
 #---------------------------------------------------------------
 # Set USE_GEOS to 1 for GEOS spatial predicate and operator
 # support
 #
-USE_GEOS=0
+USE_GEOS=1
 GEOS_DIR=/usr/local
 
 #---------------------------------------------------------------
@@ -66,12 +66,12 @@ override CFLAGS += -g
 override CFLAGS += -I$(srcdir) -DFRONTEND -DSYSCONFDIR='"$(sysconfdir)"' 
 override CFLAGS += -DUSE_VERSION=$(USE_VERSION)
 
-ifeq ($(USE_PROJ),1)
-       override CFLAGS += -I$(PROJ_DIR)/include -DUSE_PROJ 
-endif
 ifeq ($(USE_GEOS),1)
        override CFLAGS += -I$(GEOS_DIR)/include/geos -DUSE_GEOS
 endif
+ifeq ($(USE_PROJ),1)
+       override CFLAGS += -I$(PROJ_DIR)/include -DUSE_PROJ 
+endif
 
 override DLLLIBS += $(BE_DLLLIBS) 
 
@@ -107,13 +107,12 @@ OBJS=postgis_debug.o postgis_ops.o postgis_fn.o postgis_inout.o postgis_proj.o p
 # matter.)
 
 SHLIB_LINK = $(filter -L%, $(LDFLAGS)) 
+ifeq ($(USE_GEOS),1)
+       SHLIB_LINK += -lstdc++ -L$(GEOS_DIR)/lib -lgeos
+endif
 ifeq ($(USE_PROJ),1)
        SHLIB_LINK += -L$(PROJ_DIR)/lib -lproj
 endif
-ifeq ($(USE_GEOS),1)
-       SHLIB_LINK += -L$(GEOS_DIR)/lib -lgeos
-endif
-SHLIB_LINK += -lstdc++ 
 SHLIB_LINK += $(BE_DLLLIBS) 
 
 #---------------------------------------------------------------