1 | include ZOOMakefile.opts |
---|
2 | |
---|
3 | all: version.h zoo_loader.cgi ${YAML_FILE1} |
---|
4 | |
---|
5 | version.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 | |
---|
10 | service.o: service.c service.h |
---|
11 | g++ ${YAML_CFLAGS} ${XML2CFLAGS} ${CFLAGS} -fPIC -c service.c |
---|
12 | |
---|
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 |
---|
38 | gcc -fPIC ${XML2CFLAGS} ${CFLAGS} ${JSCFLAGS} ${JS_ENABLED} -c ulinet.c |
---|
39 | |
---|
40 | sshapi.o: sshapi.c |
---|
41 | g++ -fPIC ${CFLAGS} -c sshapi.c |
---|
42 | |
---|
43 | service_json.o: service_json.c |
---|
44 | g++ -fPIC ${JSON_CFLAGS} ${CFLAGS} -c service_json.c |
---|
45 | |
---|
46 | service_callback.o: service_callback.c |
---|
47 | g++ -fPIC ${XML2CFLAGS} ${GDAL_CFLAGS} ${JSON_CFLAGS} ${CFLAGS} -c service_callback.c |
---|
48 | |
---|
49 | request_parser.o: request_parser.c request_parser.h |
---|
50 | g++ -fPIC ${XML2CFLAGS} ${CFLAGS} ${JSCFLAGS} ${JS_ENABLED} -c request_parser.c |
---|
51 | |
---|
52 | sqlapi.o: sqlapi.c sqlapi.h |
---|
53 | g++ -fPIC ${METADB_ENABLED} ${GDAL_CFLAGS} ${XML2CFLAGS} ${CFLAGS} ${JSCFLAGS} ${JS_ENABLED} -c sqlapi.c |
---|
54 | |
---|
55 | caching.o: caching.c |
---|
56 | g++ -fPIC ${XML2CFLAGS} ${CFLAGS} ${JSCFLAGS} ${JS_ENABLED} -c caching.c |
---|
57 | |
---|
58 | response_print.o: response_print.c response_print.h |
---|
59 | g++ -fPIC ${GDAL_CFLAGS} ${XML2CFLAGS} ${CFLAGS} ${JSCFLAGS} ${JS_ENABLED} ${HPC_ENABLED} -c response_print.c |
---|
60 | |
---|
61 | server_internal.o: server_internal.c server_internal.h service.h mimetypes.h |
---|
62 | g++ ${JSON_CFLAGS} ${GDAL_CFLAGS} ${JS_ENABLED} ${JSCFLAGS} ${XML2CFLAGS} ${CFLAGS} -fPIC -c server_internal.c |
---|
63 | |
---|
64 | service_internal.o: service_internal.c service_internal.h service.h |
---|
65 | gcc ${JSON_CFLAGS} ${GDAL_CFLAGS} ${JS_ENABLED} ${JSCFLAGS} ${XML2CFLAGS} ${CFLAGS} -fPIC -c service_internal.c |
---|
66 | |
---|
67 | service_yaml.o: service_yaml.c service.h |
---|
68 | gcc ${YAML_CFLAGS} ${XML2CFLAGS} ${CFLAGS} -fPIC -c service_yaml.c |
---|
69 | |
---|
70 | meta_sql.o: meta_sql.c meta_sql.h service.h |
---|
71 | g++ ${METADB_ENABLED} ${GDAL_CFLAGS} ${XML2CFLAGS} ${CFLAGS} -c meta_sql.c |
---|
72 | |
---|
73 | service_internal_ms.o: service_internal_ms.c |
---|
74 | gcc ${JS_ENABLED} ${GDAL_CFLAGS} ${JSCFLAGS} ${XML2CFLAGS} ${CFLAGS} -fPIC -c service_internal_ms.c |
---|
75 | echo "SYMBOLSET\nEND" > symbols.sym |
---|
76 | |
---|
77 | service_internal_python.o: service_internal_python.c service.h |
---|
78 | g++ ${XML2CFLAGS} ${PYTHONCFLAGS} ${CFLAGS} -c service_internal_python.c |
---|
79 | |
---|
80 | service_internal_r.o: service_internal_r.c service.h |
---|
81 | g++ ${XML2CFLAGS} ${RCFLAGS} ${CFLAGS} -c service_internal_r.c |
---|
82 | |
---|
83 | service_internal_otb.o: service_internal_otb.c service_internal_otb.h service.h |
---|
84 | g++ ${XML2CFLAGS} ${OTBCFLAGS} ${CFLAGS} -c service_internal_otb.c |
---|
85 | |
---|
86 | service_internal_hpc.o: service_internal_hpc.c service_internal_hpc.h service.h |
---|
87 | g++ ${JSON_CFLAGS} ${XML2CFLAGS} ${HPCCFLAGS} ${CFLAGS} -c service_internal_hpc.c |
---|
88 | |
---|
89 | service_internal_saga.o: service_internal_saga.c service_internal_saga.h service.h |
---|
90 | g++ ${XML2CFLAGS} ${SAGA_CFLAGS} ${CFLAGS} -c service_internal_saga.c |
---|
91 | |
---|
92 | otbZooWatcher.o: otbZooWatcher.cxx otbZooWatcher.h service.h |
---|
93 | g++ ${OTBCFLAGS} ${CFLAGS} -c otbZooWatcher.cxx |
---|
94 | |
---|
95 | service_internal_php.o: service_internal_php.c service.h |
---|
96 | g++ -c ${XML2CFLAGS} ${PHPCFLAGS} ${CFLAGS} ${PHP_ENABLED} service_internal_php.c |
---|
97 | |
---|
98 | service_internal_php7.o: service_internal_php7.c service.h |
---|
99 | g++ -c ${XML2CFLAGS} ${PHPCFLAGS} ${CFLAGS} ${PHP_ENABLED} service_internal_php7.c |
---|
100 | |
---|
101 | service_internal_perl.o: service_internal_perl.c service.h |
---|
102 | gcc -c ${XML2CFLAGS} ${PERLCFLAGS} ${CFLAGS} ${PERL_ENABLED} service_internal_perl.c |
---|
103 | |
---|
104 | service_internal_java.o: service_internal_java.c service.h |
---|
105 | gcc -c ${XML2CFLAGS} ${JAVACFLAGS} ${CFLAGS} ${JAVA_ENABLED} service_internal_java.c |
---|
106 | |
---|
107 | service_internal_js.o: service_internal_js.c service_internal_js.h |
---|
108 | gcc -fPIC ${XML2CFLAGS} ${JSCFLAGS} ${CFLAGS} ${JS_ENABLED} -c service_internal_js.c |
---|
109 | |
---|
110 | service_internal_mono.o: service_internal_mono.h service_internal_mono.c service.h |
---|
111 | gcc -c ${XML2CFLAGS} ${MONO_CFLAGS} ${CFLAGS} ${MONO_ENABLED} service_internal_mono.c |
---|
112 | |
---|
113 | service_internal_ruby.o: service_internal_ruby.c service_internal_ruby.h |
---|
114 | g++ ${XML2CFLAGS} ${RUBYCFLAGS} ${CFLAGS} ${JSCFLAGS} ${JS_ENABLED} -c service_internal_ruby.c |
---|
115 | |
---|
116 | service_loader.o: service_loader.c service.h |
---|
117 | g++ -c ${XML2CFLAGS} ${PYTHONCFLAGS} ${CFLAGS} service_loader.c |
---|
118 | |
---|
119 | zoo_service_loader.o: zoo_service_loader.c service.h version.h ${MS_FILE} ${R_FILE} ${PYTHON_FILE} ${PHP_FILE} ${JAVA_FILE} ${JS_FILE} ${PERL_FILE} ${RUBY_FILE} ${YAML_FILE} ${OTB_FILE} ${SAGA_FILE} ${MONO_FILE} ${HPC_FILES} ${METADB_FILE} |
---|
120 | g++ -g -O2 ${JSON_CFLAGS} ${GDAL_CFLAGS} ${XML2CFLAGS} ${CFLAGS} ${MONO_CFLAGS} ${SAGA_CFLAGS} ${OTBCFLAGS} ${RCFLAGS} ${PYTHONCFLAGS} ${JAVACFLAGS} ${JSCFLAGS} ${PERLCFLAGS} ${PHPCFLAGS} ${SAGA_ENABLED} ${OTB_ENABLED} ${HPC_ENABLED} ${PYTHON_ENABLED} ${R_ENABLED} ${JS_ENABLED} ${PHP_ENABLED} ${PERL_ENABLED} ${JAVA_ENABLED} ${MONO_ENABLED} ${METADB_ENABLED} -c zoo_service_loader.c -fno-common -DPIC -o zoo_service_loader.o |
---|
121 | |
---|
122 | libzoo_service.${EXT}: version.h service_internal.o service.o sqlapi.o |
---|
123 | g++ -shared ${GDAL_CFLAGS} ${DEFAULT_OPTS} -fpic -o libzoo_service.${EXT} ${CFLAGS} service_internal.o service.o sqlapi.o ${FCGI_LDFLAGS} ${GDAL_LIBS} ${ZOO_LDFLAGS} ${MACOS_LD_FLAGS} |
---|
124 | |
---|
125 | 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} ${R_FILE} ${SAGA_FILE} ${HPC_FILES} ${METADB_FILE} ${JSON_FILE} ${CALLBACK_FILE} |
---|
126 | g++ -g -O2 ${JSON_CFLAGS} ${JSCFLAGS} ${PHPCFLAGS} ${PERLCFLAGS} ${RUBYCFLAGS} ${JAVACFLAGS} ${XML2CFLAGS} ${PYTHONCFLAGS} ${CFLAGS} -c zoo_loader.c -fno-common -DPIC -o zoo_loader.o |
---|
127 | g++ ${JSON_CFLAGS} ${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} ${HPC_FILES} ${METADB_FILE} ${JSON_FILE} ${R_FILE} ${CALLBACK_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} |
---|
128 | |
---|
129 | 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} ${CALLBACK_FILE} |
---|
130 | g++ -g -O2 ${JSCFLAGS} ${RUBYCFLAGS} ${XML2CFLAGS} ${CFLAGS} -c zcfg2yaml.c -fno-common -DPIC -o zcfg2yaml.o |
---|
131 | g++ ${XML2CFLAGS} ${CFLAGS} zcfg2yaml.o caching.o ulinet.o ${CALLBACK_FILE} 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} |
---|
132 | |
---|
133 | install: zoo_loader.cgi |
---|
134 | install -d ${DESTDIR}${CGI_DIR} |
---|
135 | install zoo_loader.cgi ${DESTDIR}${CGI_DIR}/ |
---|
136 | install libzoo_service.${EXT} ${DESTDIR}${INST_LIB}/${LIBZOO_SERVICE} |
---|
137 | (cd ${DESTDIR}${INST_LIB} ; \ |
---|
138 | if [ -e "libzoo_service.${EXT}" ]; then rm libzoo_service.${EXT}; fi ; \ |
---|
139 | ln -s ${LIBZOO_SERVICE} libzoo_service.${EXT}) |
---|
140 | if [ -z "${MS_FILE}" ] ; then echo "No symbols.sym" ; else install -d ${DESTDIR}${SHAREDSTATEDIR}; install -m644 symbols.sym ${DESTDIR}${SHAREDSTATEDIR}; fi |
---|
141 | install -d ${DESTDIR}${INST_INCLUDE}/zoo |
---|
142 | install sqlapi.h service.h service_internal.h ${DESTDIR}${INST_INCLUDE}/zoo |
---|
143 | |
---|
144 | clean: |
---|
145 | rm -f version.h symbols.sym *.o *.cgi *.eo *.tab.c *.tab.h *.sr.c* service_loader lex.* *.lreg *.sibling service_loader.dSYM *${EXT} |
---|