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