[459] | 1 | include ZOOMakefile.opts |
---|
| 2 | |
---|
[465] | 3 | all: version.h zoo_loader.cgi ${YAML_FILE1} |
---|
[1] | 4 | |
---|
[784] | 5 | version.h: Makefile |
---|
[800] | 6 | echo "#define ZOO_VERSION \"1.6.0 `svnversion`\"" > version.h |
---|
[784] | 7 | echo "@ETC_DEF@" >> version.h |
---|
| 8 | echo "#define LOCALEDIR \"@localedir@\"" >> version.h |
---|
[465] | 9 | |
---|
[640] | 10 | service.o: service.c service.h |
---|
| 11 | gcc ${YAML_CFLAGS} ${XML2CFLAGS} ${CFLAGS} -fPIC -c service.c |
---|
| 12 | |
---|
[1] | 13 | main_conf_read.tab.c: main_conf_read.y service.h |
---|
| 14 | bison -p cr -d main_conf_read.y |
---|
| 15 | |
---|
| 16 | main_conf_read.tab.o: main_conf_read.tab.c service.h |
---|
| 17 | g++ ${CFLAGS} -c main_conf_read.tab.c |
---|
| 18 | |
---|
| 19 | lex.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 | |
---|
| 22 | lex.cr.o: lex.cr.c service.h |
---|
| 23 | g++ ${CFLAGS} -c lex.cr.c |
---|
| 24 | |
---|
| 25 | service_conf.tab.c: service_conf.y service.h |
---|
| 26 | bison -p sr -d service_conf.y |
---|
| 27 | |
---|
| 28 | service_conf.tab.o: service_conf.tab.c service.h |
---|
| 29 | g++ ${CFLAGS} -c service_conf.tab.c |
---|
| 30 | |
---|
| 31 | lex.sr.c: service_conf.y service_conf.l service_conf.tab.c service.h |
---|
| 32 | flex -P sr --header-file service_conf.l |
---|
| 33 | |
---|
| 34 | lex.sr.o: lex.sr.c service.h |
---|
| 35 | g++ ${CFLAGS} -c lex.sr.c |
---|
| 36 | |
---|
| 37 | ulinet.o: ulinet.c |
---|
[408] | 38 | gcc -fPIC ${XML2CFLAGS} ${CFLAGS} ${JSCFLAGS} ${JS_ENABLED} -c ulinet.c |
---|
[1] | 39 | |
---|
[621] | 40 | request_parser.o: request_parser.c request_parser.h |
---|
[640] | 41 | g++ -fPIC ${XML2CFLAGS} ${CFLAGS} ${JSCFLAGS} ${JS_ENABLED} -c request_parser.c |
---|
[621] | 42 | |
---|
[640] | 43 | sqlapi.o: sqlapi.c sqlapi.h |
---|
[734] | 44 | g++ -fPIC ${GDAL_CFLAGS} ${XML2CFLAGS} ${CFLAGS} ${JSCFLAGS} ${JS_ENABLED} -c sqlapi.c |
---|
[1] | 45 | |
---|
[640] | 46 | caching.o: caching.c |
---|
| 47 | g++ -fPIC ${XML2CFLAGS} ${CFLAGS} ${JSCFLAGS} ${JS_ENABLED} -c caching.c |
---|
| 48 | |
---|
| 49 | response_print.o: response_print.c response_print.h |
---|
[673] | 50 | g++ -fPIC ${GDAL_CFLAGS} ${XML2CFLAGS} ${CFLAGS} ${JSCFLAGS} ${JS_ENABLED} -c response_print.c |
---|
[640] | 51 | |
---|
| 52 | server_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 | |
---|
| 55 | service_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 | |
---|
[465] | 58 | service_yaml.o: service_yaml.c service.h |
---|
| 59 | gcc ${YAML_CFLAGS} ${XML2CFLAGS} ${CFLAGS} -fPIC -c service_yaml.c |
---|
| 60 | |
---|
[297] | 61 | service_internal_ms.o: service_internal_ms.c |
---|
[753] | 62 | gcc ${JS_ENABLED} ${GDAL_CFLAGS} ${JSCFLAGS} ${XML2CFLAGS} ${CFLAGS} -fPIC -c service_internal_ms.c |
---|
[297] | 63 | |
---|
[1] | 64 | service_internal_python.o: service_internal_python.c service.h |
---|
| 65 | g++ ${XML2CFLAGS} ${PYTHONCFLAGS} ${CFLAGS} -c service_internal_python.c |
---|
| 66 | |
---|
[634] | 67 | service_internal_otb.o: service_internal_otb.c service_internal_otb.h service.h |
---|
[555] | 68 | g++ ${XML2CFLAGS} ${OTBCFLAGS} ${CFLAGS} -c service_internal_otb.c |
---|
[550] | 69 | |
---|
[634] | 70 | service_internal_saga.o: service_internal_saga.c service_internal_saga.h service.h |
---|
| 71 | g++ ${XML2CFLAGS} ${SAGA_CFLAGS} ${CFLAGS} -c service_internal_saga.c |
---|
| 72 | |
---|
[550] | 73 | otbZooWatcher.o: otbZooWatcher.cxx otbZooWatcher.h service.h |
---|
| 74 | g++ ${OTBCFLAGS} ${CFLAGS} -c otbZooWatcher.cxx |
---|
| 75 | |
---|
[1] | 76 | service_internal_php.o: service_internal_php.c service.h |
---|
| 77 | g++ -c ${XML2CFLAGS} ${PHPCFLAGS} ${CFLAGS} ${PHP_ENABLED} service_internal_php.c |
---|
| 78 | |
---|
[797] | 79 | service_internal_php7.o: service_internal_php7.c service.h |
---|
| 80 | g++ -c ${XML2CFLAGS} ${PHPCFLAGS} ${CFLAGS} ${PHP_ENABLED} service_internal_php7.c |
---|
| 81 | |
---|
[16] | 82 | service_internal_perl.o: service_internal_perl.c service.h |
---|
| 83 | gcc -c ${XML2CFLAGS} ${PERLCFLAGS} ${CFLAGS} ${PERL_ENABLED} service_internal_perl.c |
---|
| 84 | |
---|
[1] | 85 | service_internal_java.o: service_internal_java.c service.h |
---|
| 86 | gcc -c ${XML2CFLAGS} ${JAVACFLAGS} ${CFLAGS} ${JAVA_ENABLED} service_internal_java.c |
---|
| 87 | |
---|
| 88 | service_internal_js.o: service_internal_js.c service_internal_js.h |
---|
[487] | 89 | gcc -fPIC ${XML2CFLAGS} ${JSCFLAGS} ${CFLAGS} ${JS_ENABLED} -c service_internal_js.c |
---|
[1] | 90 | |
---|
[794] | 91 | service_internal_mono.o: service_internal_mono.h service_internal_mono.c service.h |
---|
| 92 | gcc -c ${XML2CFLAGS} ${MONO_CFLAGS} ${CFLAGS} ${MONO_ENABLED} service_internal_mono.c |
---|
| 93 | |
---|
[459] | 94 | service_internal_ruby.o: service_internal_ruby.c service_internal_ruby.h |
---|
| 95 | g++ ${XML2CFLAGS} ${RUBYCFLAGS} ${CFLAGS} ${JSCFLAGS} ${JS_ENABLED} -c service_internal_ruby.c |
---|
[1] | 96 | |
---|
| 97 | service_loader.o: service_loader.c service.h |
---|
| 98 | g++ -c ${XML2CFLAGS} ${PYTHONCFLAGS} ${CFLAGS} service_loader.c |
---|
| 99 | |
---|
[794] | 100 | zoo_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} |
---|
| 101 | 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 |
---|
[1] | 102 | |
---|
[652] | 103 | libzoo_service.${EXT}: version.h service_internal.o service.o sqlapi.o |
---|
[745] | 104 | gcc -shared ${GDAL_CFLAGS} ${DEFAULT_OPTS} -fpic -o libzoo_service.${EXT} ${CFLAGS} service_internal.o service.o sqlapi.o ${FCGI_LDFLAGS} ${GDAL_LIBS} |
---|
[640] | 105 | |
---|
[652] | 106 | zoo_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} |
---|
[459] | 107 | g++ -g -O2 ${JSCFLAGS} ${PHPCFLAGS} ${PERLCFLAGS} ${RUBYCFLAGS} ${JAVACFLAGS} ${XML2CFLAGS} ${PYTHONCFLAGS} ${CFLAGS} -c zoo_loader.c -fno-common -DPIC -o zoo_loader.o |
---|
[794] | 108 | 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} |
---|
[1] | 109 | |
---|
[640] | 110 | zcfg2yaml: 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} |
---|
[465] | 111 | g++ -g -O2 ${JSCFLAGS} ${RUBYCFLAGS} ${XML2CFLAGS} ${CFLAGS} -c zcfg2yaml.c -fno-common -DPIC -o zcfg2yaml.o |
---|
[640] | 112 | 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} |
---|
[465] | 113 | |
---|
[1] | 114 | install: |
---|
[780] | 115 | install -d ${DESTDIR}${CGI_DIR} |
---|
| 116 | install zoo_loader.cgi ${DESTDIR}${CGI_DIR}/ |
---|
[653] | 117 | install libzoo_service.${EXT} ${DESTDIR}${INST_LIB}/${LIBZOO_SERVICE} |
---|
[640] | 118 | (cd ${DESTDIR}${INST_LIB} ; \ |
---|
| 119 | if [ -e "libzoo_service.${EXT}" ]; then rm libzoo_service.${EXT}; fi ; \ |
---|
[653] | 120 | ln -s ${LIBZOO_SERVICE} libzoo_service.${EXT}) |
---|
[640] | 121 | install -d ${DESTDIR}${INST_INCLUDE}/zoo |
---|
[735] | 122 | install sqlapi.h service.h service_internal.h ${DESTDIR}${INST_INCLUDE}/zoo |
---|
[1] | 123 | |
---|
| 124 | clean: |
---|
[640] | 125 | rm -f version.h *.o *.zo *.eo *.tab.c *.tab.h *.sr.c* service_loader lex.* *.lreg *.sibling service_loader.dSYM *${EXT} |
---|