Ignore:
Timestamp:
Oct 31, 2014, 6:00:05 PM (10 years ago)
Author:
david
Message:
  • Add install target, and fix cflags
Location:
trunk/zoo-project/zoo-services/ogr
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/zoo-project/zoo-services/ogr/base-vect-ops/Makefile

    r499 r522  
    11ZRPATH=../../..
    22include ${ZRPATH}/zoo-kernel/ZOOMakefile.opts
    3 CFLAGS=${ZOO_CFLAGS} ${JSCFLAGS} ${XML2CFLAGS} ${GDAL_CFLAGS} `geos-config --cflags` -DLINUX_FREE_ISSUE #-DDEBUG
     3CFLAGS=${ZOO_CFLAGS} ${JSCFLAGS} ${XML2CFLAGS} ${GDAL_CFLAGS} ${GEOS_CFLAGS} -DLINUX_FREE_ISSUE #-DDEBUG
    44
    55ifneq ($(MS_FILE),)
     
    1010
    1111cgi-env/ogr_service.zo: service.c
    12         g++ ${CFLAGS} -shared -fpic -o cgi-env/ogr_service.zo ./service.c ../../../zoo-kernel/service_internal.o ${JS_LDFLAGS} ${JSLDFLAGS} ${GDAL_LIBS} ${XML2LDFLAGS} ${MACOS_LD_FLAGS} ${ZOO_LDFLAGS} ${MACOS_LD_NET_FLAGS} `geos-config --libs` ${MS_FILES} -lfcgi  -lpthread
     12        g++ ${CFLAGS} -shared -fpic -o cgi-env/ogr_service.zo ./service.c ../../../zoo-kernel/service_internal.o ${JS_LDFLAGS} ${JSLDFLAGS} ${GDAL_LIBS} ${XML2LDFLAGS} ${MACOS_LD_FLAGS} ${ZOO_LDFLAGS} ${MACOS_LD_NET_FLAGS} ${GEOS_LDFLAGS} ${MS_FILES} -lfcgi  -lpthread
    1313
     14install:
     15        install -d ${CGI_DIR}/ogr/base-vect-ops
     16        install cgi-env/* ${CGI_DIR}/ogr/base-vect-ops
    1417
    1518clean:
  • trunk/zoo-project/zoo-services/ogr/ogr2ogr/Makefile

    r38 r522  
    1 GDAL_SRC=./gdal_src/
    2 
    3 include $(GDAL_SRC)GDALmake.opt
    4 
    5 CPPFLAGS        :=      $(GDAL_INCLUDE) -I$(GDAL_ROOT)/frmts $(CPPFLAGS)
    6 DEP_LIBS        =       $(EXE_DEP_LIBS) $(XTRAOBJ)
    7 BIN_LIST = cgi-env/ogr2ogr_service.zo
    8 
    9 default:        $(BIN_LIST)
    10 
    11 all: default
    12 
    13 lib-depend:
    14         (cd $(GDAL_SRC)/gcore ; $(MAKE) )
    15         (cd $(GDAL_SRC)/port ; $(MAKE) )
    16 
    17 CFLAGS=-DZOO_SERVICE -I../../../zoo-kernel/
    18 
    19 #cgi-env/ogr2ogr_service.zo: service.c
    20 #       g++  -DZOO_SERVICE ${CFLAGS} -shared -fpic -o cgi-env/ogr2ogr_service.zo ./service.c -lgdal
     1ZRPATH=../../..
     2include ${ZRPATH}/zoo-kernel/ZOOMakefile.opts
     3CFLAGS=-DZOO_SERVICE ${ZOO_CFLAGS} ${XML2CFLAGS} ${GDAL_CFLAGS} ${PYTHONCFLAGS} -DLINUX_FREE_ISSUE #-DDEBUG
     4CC=gcc
    215
    226cgi-env/ogr2ogr_service.zo: service.c $(DEP_LIBS)
    23         g++ $(CFLAGS) $(CPPFLAGS) -shared -fpic $< `gdal-config --libs` -o $@
     7        g++ $(CFLAGS) $(CPPFLAGS) -shared -fpic $<  -o $@
     8
     9install:
     10        install -d ${CGI_DIR}/ogr/ogr2ogr
     11        install cgi-env/* ${CGI_DIR}/ogr/ogr2ogr
    2412
    2513clean:
Note: See TracChangeset for help on using the changeset viewer.

Search

Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png