source: trunk/zoo-services/ogr/ogr2ogr/Makefile @ 40

Last change on this file since 40 was 38, checked in by djay, 14 years ago

Add specific error messages returned to the ZOO Kernel when the service failed. Correct the zcfg file for the Ogr2oOgr service. Use the GDALmake.opt file from the gdal source tree to get the correct flags for compilation.

File size: 670 bytes
Line 
1GDAL_SRC=./gdal_src/
2
3include $(GDAL_SRC)GDALmake.opt
4
5CPPFLAGS        :=      $(GDAL_INCLUDE) -I$(GDAL_ROOT)/frmts $(CPPFLAGS)
6DEP_LIBS        =       $(EXE_DEP_LIBS) $(XTRAOBJ)
7BIN_LIST = cgi-env/ogr2ogr_service.zo
8
9default:        $(BIN_LIST)
10
11all: default
12
13lib-depend:
14        (cd $(GDAL_SRC)/gcore ; $(MAKE) )
15        (cd $(GDAL_SRC)/port ; $(MAKE) )
16
17CFLAGS=-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
21
22cgi-env/ogr2ogr_service.zo: service.c $(DEP_LIBS)
23        g++ $(CFLAGS) $(CPPFLAGS) -shared -fpic $< `gdal-config --libs` -o $@
24
25clean:
26        rm -f cgi-env/*zo
Note: See TracBrowser for help on using the repository browser.

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