Ignore:
Timestamp:
Oct 31, 2014, 6:00:05 PM (10 years ago)
Author:
david
Message:
  • Add install target, and fix cflags
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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