source: trunk/zoo-project/zoo-kernel/Makefile.in @ 819

Last change on this file since 819 was 815, checked in by djay, 8 years ago

Fixing issue #145

File size: 6.9 KB
Line 
1include ZOOMakefile.opts
2
3all: version.h zoo_loader.cgi ${YAML_FILE1}
4
5version.h: Makefile
6        echo "#define ZOO_VERSION \"1.6.0 `svnversion`\"" > version.h
7        echo "@ETC_DEF@" >> version.h
8        echo "#define LOCALEDIR \"@localedir@\"" >>  version.h
9
10service.o: service.c service.h
11        gcc ${YAML_CFLAGS} ${XML2CFLAGS} ${CFLAGS} -fPIC -c service.c
12
13main_conf_read.tab.c: main_conf_read.y service.h
14        bison -p cr -d main_conf_read.y
15
16main_conf_read.tab.o: main_conf_read.tab.c service.h
17        g++ ${CFLAGS} -c main_conf_read.tab.c
18
19lex.cr.c: main_conf_read.y main_conf_read.l main_conf_read.tab.c service.h
20        flex -P cr --header-file main_conf_read.l
21
22lex.cr.o: lex.cr.c service.h
23        g++ ${CFLAGS} -c lex.cr.c
24
25service_conf.tab.c: service_conf.y service.h
26        bison -p sr -d service_conf.y
27
28service_conf.tab.o: service_conf.tab.c service.h
29        g++ ${CFLAGS} -c service_conf.tab.c
30
31lex.sr.c: service_conf.y service_conf.l service_conf.tab.c service.h
32        flex -P sr --header-file service_conf.l
33
34lex.sr.o: lex.sr.c service.h
35        g++ ${CFLAGS} -c lex.sr.c
36
37ulinet.o: ulinet.c
38        gcc -fPIC ${XML2CFLAGS} ${CFLAGS} ${JSCFLAGS} ${JS_ENABLED} -c ulinet.c
39
40request_parser.o: request_parser.c request_parser.h
41        g++ -fPIC ${XML2CFLAGS} ${CFLAGS} ${JSCFLAGS} ${JS_ENABLED} -c request_parser.c
42
43sqlapi.o: sqlapi.c sqlapi.h
44        g++ -fPIC ${GDAL_CFLAGS} ${XML2CFLAGS} ${CFLAGS} ${JSCFLAGS} ${JS_ENABLED} -c sqlapi.c
45
46caching.o: caching.c
47        g++ -fPIC ${XML2CFLAGS} ${CFLAGS} ${JSCFLAGS} ${JS_ENABLED} -c caching.c
48
49response_print.o: response_print.c response_print.h
50        g++ -fPIC ${GDAL_CFLAGS} ${XML2CFLAGS} ${CFLAGS} ${JSCFLAGS} ${JS_ENABLED} -c response_print.c
51
52server_internal.o: server_internal.c server_internal.h service.h mimetypes.h
53        g++ ${GDAL_CFLAGS} ${JS_ENABLED} ${JSCFLAGS} ${XML2CFLAGS} ${CFLAGS} -fPIC -c server_internal.c
54
55service_internal.o: service_internal.c service_internal.h service.h
56        gcc ${GDAL_CFLAGS} ${JS_ENABLED} ${JSCFLAGS} ${XML2CFLAGS} ${CFLAGS} -fPIC -c service_internal.c
57
58service_yaml.o: service_yaml.c service.h
59        gcc ${YAML_CFLAGS} ${XML2CFLAGS} ${CFLAGS} -fPIC -c service_yaml.c
60
61service_internal_ms.o: service_internal_ms.c
62        gcc ${JS_ENABLED} ${GDAL_CFLAGS}  ${JSCFLAGS} ${XML2CFLAGS} ${CFLAGS} -fPIC -c service_internal_ms.c
63        echo "SYMBOLSET\nEND" > symbols.sym
64
65service_internal_python.o: service_internal_python.c service.h
66        g++ ${XML2CFLAGS} ${PYTHONCFLAGS} ${CFLAGS} -c service_internal_python.c
67
68service_internal_otb.o: service_internal_otb.c service_internal_otb.h service.h
69        g++ ${XML2CFLAGS} ${OTBCFLAGS} ${CFLAGS} -c service_internal_otb.c
70
71service_internal_saga.o: service_internal_saga.c service_internal_saga.h service.h
72        g++ ${XML2CFLAGS} ${SAGA_CFLAGS} ${CFLAGS} -c service_internal_saga.c
73
74otbZooWatcher.o: otbZooWatcher.cxx otbZooWatcher.h  service.h
75        g++ ${OTBCFLAGS} ${CFLAGS} -c otbZooWatcher.cxx
76
77service_internal_php.o: service_internal_php.c service.h
78        g++ -c ${XML2CFLAGS} ${PHPCFLAGS} ${CFLAGS}  ${PHP_ENABLED} service_internal_php.c
79
80service_internal_php7.o: service_internal_php7.c service.h
81        g++ -c ${XML2CFLAGS} ${PHPCFLAGS} ${CFLAGS}  ${PHP_ENABLED} service_internal_php7.c
82
83service_internal_perl.o: service_internal_perl.c service.h
84        gcc -c ${XML2CFLAGS} ${PERLCFLAGS} ${CFLAGS}  ${PERL_ENABLED} service_internal_perl.c
85
86service_internal_java.o: service_internal_java.c service.h
87        gcc -c ${XML2CFLAGS} ${JAVACFLAGS} ${CFLAGS} ${JAVA_ENABLED} service_internal_java.c
88
89service_internal_js.o: service_internal_js.c service_internal_js.h
90        gcc -fPIC ${XML2CFLAGS} ${JSCFLAGS} ${CFLAGS} ${JS_ENABLED} -c service_internal_js.c
91
92service_internal_mono.o: service_internal_mono.h service_internal_mono.c service.h
93        gcc -c ${XML2CFLAGS} ${MONO_CFLAGS} ${CFLAGS} ${MONO_ENABLED} service_internal_mono.c
94
95service_internal_ruby.o: service_internal_ruby.c service_internal_ruby.h
96        g++ ${XML2CFLAGS} ${RUBYCFLAGS} ${CFLAGS} ${JSCFLAGS} ${JS_ENABLED} -c service_internal_ruby.c
97
98service_loader.o: service_loader.c service.h
99        g++ -c ${XML2CFLAGS} ${PYTHONCFLAGS} ${CFLAGS} service_loader.c
100
101zoo_service_loader.o: zoo_service_loader.c service.h version.h ${MS_FILE} ${PYTHON_FILE} ${PHP_FILE} ${JAVA_FILE} ${JS_FILE} ${PERL_FILE} ${RUBY_FILE} ${YAML_FILE} ${OTB_FILE} ${SAGA_FILE} ${MONO_FILE}
102        g++ -g -O2 ${XML2CFLAGS} ${CFLAGS} ${MONO_CFLAGS} ${SAGA_CFLAGS} ${OTBCFLAGS} ${PYTHONCFLAGS} ${JAVACFLAGS} ${JSCFLAGS} ${PERLCFLAGS} ${PHPCFLAGS} ${SAGA_ENABLED} ${OTB_ENABLED} ${PYTHON_ENABLED} ${JS_ENABLED} ${PHP_ENABLED} ${PERL_ENABLED} ${JAVA_ENABLED} ${MONO_ENABLED}  -c zoo_service_loader.c  -fno-common -DPIC -o zoo_service_loader.o
103
104libzoo_service.${EXT}: version.h service_internal.o service.o sqlapi.o
105        gcc -shared  ${GDAL_CFLAGS} ${DEFAULT_OPTS} -fpic -o libzoo_service.${EXT} ${CFLAGS}  service_internal.o service.o sqlapi.o ${FCGI_LDFLAGS} ${GDAL_LIBS}
106
107zoo_loader.cgi: version.h libzoo_service.${EXT} zoo_loader.c zoo_service_loader.o  ulinet.o service.h lex.sr.o service_conf.tab.o service_conf.y ulinet.o main_conf_read.tab.o lex.cr.o request_parser.o response_print.o server_internal.o caching.o ${MS_FILE} ${PYTHON_FILE} ${PHP_FILE} ${JAVA_FILE} ${JS_FILE} ${PERL_FILE} ${RUBY_FILE} ${YAML_FILE} ${OTB_FILE} ${SAGA_FILE}
108        g++ -g -O2 ${JSCFLAGS} ${PHPCFLAGS}  ${PERLCFLAGS} ${RUBYCFLAGS}  ${JAVACFLAGS} ${XML2CFLAGS} ${PYTHONCFLAGS} ${CFLAGS} -c zoo_loader.c  -fno-common -DPIC -o zoo_loader.o
109        g++  ${JSCFLAGS} ${SAGA_CFLAGS} ${OTBCFLAGS} ${GDAL_CFLAGS} ${XML2CFLAGS} ${PHPCFLAGS} ${PERLCFLAGS} ${JAVACFLAGS} ${PYTHONCFLAGS} ${CFLAGS} zoo_loader.o zoo_service_loader.o ${MS_FILE} ${PYTHON_FILE}  ${PERL_FILE} ${PHP_FILE}  ${JS_FILE} ${JAVA_FILE} ${YAML_FILE} ${OTB_FILE} ${SAGA_FILE} ${MONO_FILE} response_print.o server_internal.o caching.o request_parser.o ulinet.o lex.cr.o lex.sr.o service_conf.tab.o main_conf_read.tab.o -o zoo_loader.cgi -L. ${LDFLAGS}
110
111zcfg2yaml: zcfg2yaml.c service.h lex.sr.o service_conf.tab.o service_conf.y main_conf_read.tab.o lex.cr.o response_print.o server_internal.o service_internal.o ${MS_FILE} ${YAML_FILE}
112        g++ -g -O2 ${JSCFLAGS} ${RUBYCFLAGS} ${XML2CFLAGS} ${CFLAGS} -c zcfg2yaml.c  -fno-common -DPIC -o zcfg2yaml.o
113        g++  ${XML2CFLAGS} ${CFLAGS} zcfg2yaml.o server_internal.o service_internal.o ${MS_FILE} response_print.o lex.cr.o lex.sr.o service_conf.tab.o main_conf_read.tab.o  ${YAML_FILE} -o zcfg2yaml -L. ${LDFLAGS}
114
115install: zoo_loader.cgi
116        install -d ${DESTDIR}${CGI_DIR}
117        install zoo_loader.cgi ${DESTDIR}${CGI_DIR}/
118        install libzoo_service.${EXT} ${DESTDIR}${INST_LIB}/${LIBZOO_SERVICE}
119        (cd ${DESTDIR}${INST_LIB} ; \
120         if [ -e "libzoo_service.${EXT}" ]; then rm  libzoo_service.${EXT}; fi ; \
121         ln -s ${LIBZOO_SERVICE} libzoo_service.${EXT})
122        if [ -z "${MS_FILE}" ] ; then echo "No symbols.sym" ; else install -d ${DESTDIR}${SHAREDSTATEDIR}; install -m644 symbols.sym ${DESTDIR}${SHAREDSTATEDIR}; fi
123        install -d ${DESTDIR}${INST_INCLUDE}/zoo
124        install sqlapi.h service.h service_internal.h ${DESTDIR}${INST_INCLUDE}/zoo
125
126clean:
127        rm -f version.h symbols.sym *.o *.cgi *.eo *.tab.c *.tab.h *.sr.c* service_loader lex.* *.lreg *.sibling service_loader.dSYM *${EXT}
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