source: trunk/zoo-kernel/Makefile.in @ 9

Last change on this file since 9 was 9, checked in by djay, 10 years ago

Update of both ZOO Kernel and ZOO Services (ogr base-vect-ops ServicesProvider?).
All the ZCFG files have been corrected to remove all references to wrong metadata (Test = Demo) to avoid validation issues.
Main Memory leaks has been removed from this version.
Addition of the Simplify Service in the C ogr base-vect-ops ServicesProvider? and addition of the Python version (without Simplify).
Update of the configure.ac and Makefile.in to follow dicussions on the mailing list and ensure to use our cgic206 and not another one, path to our cgic library is now directly in the Makefile.in file.
Accept the "-" character to name inputs, to solve issue on GRASS 7 integration.
Addition of the extension keyword for ZCFG file to be able to store resulting outputs in a file name using the extension suffix.
This version after a testing period shall be considerate as 1.0.1 version of the ZOO Project.

File size: 3.8 KB
Line 
1JAVACFLAGS=@JAVA_CPPFLAGS@
2JAVALDFLAGS=@JAVA_LDFLAGS@
3CFLAGS=-I../thirds/cgic206 -I. -DLINUX_FREE_ISSUE #-DDEBUG #-DDEBUG_SERVICE_CONF
4PHPCFLAGS=@PHP_CPPFLAGS@
5PHPLDFLAGS=@PHP_LDFLAGS@
6PYTHONCFLAGS=@PYTHON_CPPFLAGS@
7PYTHONLDFLAGS=@PYTHON_LDFLAGS@
8JSCFLAGS=@JS_CPPFLAGS@
9JSLDFLAGS=@JS_LDFLAGS@
10XML2CFLAGS=@XML2_CPPFLAGS@
11XML2LDFLAGS=@XML2_LDFLAGS@
12GDAL_CFLAGS=@GDAL_CFLAGS@
13GDAL_LIBS=@GDAL_LIBS@
14PHP_ENABLED=@PHP_ENABLED@
15PHP_FILE=@PHP_FILE@
16JAVA_ENABLED=@JAVA_ENABLED@
17JAVA_FILE=@JAVA_FILE@
18JS_ENABLED=@JS_ENABLED@
19JS_FILE=@JS_FILE@
20
21
22all: zoo_loader.cgi
23
24main_conf_read.tab.c: main_conf_read.y service.h
25        bison -p cr -d main_conf_read.y
26
27main_conf_read.tab.o: main_conf_read.tab.c service.h
28        g++ ${CFLAGS} -c main_conf_read.tab.c
29
30lex.cr.c: main_conf_read.y main_conf_read.l main_conf_read.tab.c service.h
31        flex -P cr --header-file main_conf_read.l
32
33lex.cr.o: lex.cr.c service.h
34        g++ ${CFLAGS} -c lex.cr.c
35
36service_conf.tab.c: service_conf.y service.h
37        bison -p sr -d service_conf.y
38
39service_conf.tab.o: service_conf.tab.c service.h
40        g++ ${CFLAGS} -c service_conf.tab.c
41
42lex.sr.c: service_conf.y service_conf.l service_conf.tab.c service.h
43        flex -P sr --header-file service_conf.l
44
45lex.sr.o: lex.sr.c service.h
46        g++ ${CFLAGS} -c lex.sr.c
47
48ulinet.o: ulinet.c
49        gcc ${XML2CFLAGS} ${CFLAGS} ${JSCFLAGS} ${JS_ENABLED} -c ulinet.c
50
51service_internal.o: service_internal.c service.h
52        g++ ${XML2CFLAGS} ${CFLAGS} -c service_internal.c
53
54service_internal_python.o: service_internal_python.c service.h
55        g++ ${XML2CFLAGS} ${PYTHONCFLAGS} ${CFLAGS} -c service_internal_python.c
56
57service_internal_php.o: service_internal_php.c service.h
58        g++ -c ${XML2CFLAGS} ${PHPCFLAGS} ${CFLAGS}  ${PHP_ENABLED} service_internal_php.c
59
60service_internal_java.o: service_internal_java.c service.h
61        gcc -c ${XML2CFLAGS} ${JAVACFLAGS} ${CFLAGS} ${JAVA_ENABLED} service_internal_java.c
62
63service_internal_js.o: service_internal_js.c service_internal_js.h
64        gcc ${XML2CFLAGS} ${JSCFLAGS} ${CFLAGS} ${JS_ENABLED} -c service_internal_js.c
65
66
67service_loader.o: service_loader.c service.h
68        g++ -c ${XML2CFLAGS} ${PYTHONCFLAGS} ${CFLAGS} service_loader.c
69
70zoo_service_loader.o: zoo_service_loader.c service.h
71        g++ -g -O2 -Wall ${XML2CFLAGS} ${CFLAGS} ${PYTHONCFLAGS} ${JAVACFLAGS} ${JSCFLAGS} ${PHPCFLAGS} ${JS_ENABLED} ${PHP_ENABLED} ${JAVA_ENABLED} -c zoo_service_loader.c  -fno-common -DPIC -o zoo_service_loader.o
72
73zoo_loader.cgi: zoo_loader.c zoo_service_loader.o  ulinet.o service.h lex.sr.o service_conf.tab.o service_conf.y service_internal_python.o  ulinet.o main_conf_read.tab.o lex.cr.o service_internal.o ${PHP_FILE} ${JAVA_FILE} ${JS_FILE}
74        g++ -g -O2 -Wall ${JSCFLAGS} ${PHPCFLAGS} ${JAVACFLAGS} ${XML2CFLAGS} ${PYTHONCFLAGS} ${CFLAGS} -c zoo_loader.c  -fno-common -DPIC -o zoo_loader.o
75        g++  ${JSCFLAGS} ${GDAL_CFLAGS} ${XML2CFLAGS} ${PHPCFLAGS} ${JAVACFLAGS} ${PYTHONCFLAGS} ${CFLAGS} zoo_loader.o zoo_service_loader.o service_internal.o service_internal_python.o  ${PHP_FILE}  ${JS_FILE} ${JAVA_FILE} ulinet.o lex.cr.o lex.sr.o service_conf.tab.o main_conf_read.tab.o -o zoo_loader.cgi -lcurl -L../thirds/cgic206 -lcgic -lcurl ${GDAL_LIBS} ${XML2LDFLAGS} ${PYTHONLDFLAGS}  ${PHPLDFLAGS} ${JAVALDFLAGS} ${JSLDFLAGS} -lfcgi
76
77install:
78        @echo "##############################################################################"
79        @echo "# This won't install anything !!!                                            #"
80        @echo "#                                                                            #"
81        @echo "# Please copy the zoo_loader.cgi and its companion main.cfg into your cgbin  #"
82        @echo "# directory.                                                                 #"
83        @echo "##############################################################################"
84
85clean:
86        rm -f *.o *.zo *.eo *.tab.c *.tab.h *.sr.c* service_loader lex.* *.lreg *.sibling service_loader.dSYM
Note: See TracBrowser for help on using the repository browser.

Search

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