1 | JAVACFLAGS=@JAVA_CPPFLAGS@ |
---|
2 | JAVALDFLAGS=@JAVA_LDFLAGS@ |
---|
3 | JAVA_ENABLED=@JAVA_ENABLED@ |
---|
4 | JAVA_FILE=@JAVA_FILE@ |
---|
5 | |
---|
6 | CFLAGS=-I../thirds/cgic206 -I. -DLINUX_FREE_ISSUE #-DDEBUG #-DDEBUG_SERVICE_CONF |
---|
7 | |
---|
8 | PHPCFLAGS=@PHP_CPPFLAGS@ |
---|
9 | PHPLDFLAGS=@PHP_LDFLAGS@ |
---|
10 | PHP_ENABLED=@PHP_ENABLED@ |
---|
11 | PHP_FILE=@PHP_FILE@ |
---|
12 | |
---|
13 | |
---|
14 | PYTHONCFLAGS=@PYTHON_CPPFLAGS@ |
---|
15 | PYTHONLDFLAGS=@PYTHON_LDFLAGS@ |
---|
16 | PYTHON_ENABLED=@PYTHON_ENABLED@ |
---|
17 | PYTHON_FILE=@PYTHON_FILE@ |
---|
18 | |
---|
19 | JSCFLAGS=@JS_CPPFLAGS@ |
---|
20 | JSLDFLAGS=@JS_LDFLAGS@ |
---|
21 | JS_ENABLED=@JS_ENABLED@ |
---|
22 | JS_FILE=@JS_FILE@ |
---|
23 | |
---|
24 | XML2CFLAGS=@XML2_CPPFLAGS@ |
---|
25 | XML2LDFLAGS=@XML2_LDFLAGS@ |
---|
26 | |
---|
27 | GDAL_CFLAGS=@GDAL_CFLAGS@ |
---|
28 | GDAL_LIBS=@GDAL_LIBS@ |
---|
29 | |
---|
30 | PERLCFLAGS=@PERL_CPPFLAGS@ |
---|
31 | PERLLDFLAGS=@PERL_LDFLAGS@ |
---|
32 | PERL_ENABLED=@PERL_ENABLED@ |
---|
33 | PERL_FILE=@PERL_FILE@ |
---|
34 | |
---|
35 | |
---|
36 | all: zoo_loader.cgi |
---|
37 | |
---|
38 | main_conf_read.tab.c: main_conf_read.y service.h |
---|
39 | bison -p cr -d main_conf_read.y |
---|
40 | |
---|
41 | main_conf_read.tab.o: main_conf_read.tab.c service.h |
---|
42 | g++ ${CFLAGS} -c main_conf_read.tab.c |
---|
43 | |
---|
44 | lex.cr.c: main_conf_read.y main_conf_read.l main_conf_read.tab.c service.h |
---|
45 | flex -P cr --header-file main_conf_read.l |
---|
46 | |
---|
47 | lex.cr.o: lex.cr.c service.h |
---|
48 | g++ ${CFLAGS} -c lex.cr.c |
---|
49 | |
---|
50 | service_conf.tab.c: service_conf.y service.h |
---|
51 | bison -p sr -d service_conf.y |
---|
52 | |
---|
53 | service_conf.tab.o: service_conf.tab.c service.h |
---|
54 | g++ ${CFLAGS} -c service_conf.tab.c |
---|
55 | |
---|
56 | lex.sr.c: service_conf.y service_conf.l service_conf.tab.c service.h |
---|
57 | flex -P sr --header-file service_conf.l |
---|
58 | |
---|
59 | lex.sr.o: lex.sr.c service.h |
---|
60 | g++ ${CFLAGS} -c lex.sr.c |
---|
61 | |
---|
62 | ulinet.o: ulinet.c |
---|
63 | gcc ${XML2CFLAGS} ${CFLAGS} ${JSCFLAGS} ${JS_ENABLED} -c ulinet.c |
---|
64 | |
---|
65 | service_internal.o: service_internal.c service.h |
---|
66 | gcc ${JS_ENABLED} ${JSCFLAGS} ${XML2CFLAGS} ${CFLAGS} -fPIC -c service_internal.c |
---|
67 | |
---|
68 | service_internal_python.o: service_internal_python.c service.h |
---|
69 | g++ ${XML2CFLAGS} ${PYTHONCFLAGS} ${CFLAGS} -c service_internal_python.c |
---|
70 | |
---|
71 | service_internal_php.o: service_internal_php.c service.h |
---|
72 | g++ -c ${XML2CFLAGS} ${PHPCFLAGS} ${CFLAGS} ${PHP_ENABLED} service_internal_php.c |
---|
73 | |
---|
74 | service_internal_perl.o: service_internal_perl.c service.h |
---|
75 | gcc -c ${XML2CFLAGS} ${PERLCFLAGS} ${CFLAGS} ${PERL_ENABLED} service_internal_perl.c |
---|
76 | |
---|
77 | |
---|
78 | service_internal_java.o: service_internal_java.c service.h |
---|
79 | gcc -c ${XML2CFLAGS} ${JAVACFLAGS} ${CFLAGS} ${JAVA_ENABLED} service_internal_java.c |
---|
80 | |
---|
81 | service_internal_js.o: service_internal_js.c service_internal_js.h |
---|
82 | gcc ${XML2CFLAGS} ${JSCFLAGS} ${CFLAGS} ${JS_ENABLED} -c service_internal_js.c |
---|
83 | |
---|
84 | |
---|
85 | service_loader.o: service_loader.c service.h |
---|
86 | g++ -c ${XML2CFLAGS} ${PYTHONCFLAGS} ${CFLAGS} service_loader.c |
---|
87 | |
---|
88 | zoo_service_loader.o: zoo_service_loader.c service.h |
---|
89 | g++ -g -O2 -Wall ${XML2CFLAGS} ${CFLAGS} ${PYTHONCFLAGS} ${JAVACFLAGS} ${JSCFLAGS} ${PERLCFLAGS} ${PHPCFLAGS} ${PYTHON_ENABLED} ${JS_ENABLED} ${PHP_ENABLED} ${PERL_ENABLED} ${JAVA_ENABLED} -c zoo_service_loader.c -fno-common -DPIC -o zoo_service_loader.o |
---|
90 | |
---|
91 | zoo_loader.cgi: 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 service_internal.o ${PYTHON_FILE} ${PHP_FILE} ${JAVA_FILE} ${JS_FILE} ${PERL_FILE} |
---|
92 | g++ -g -O2 -Wall ${JSCFLAGS} ${PHPCFLAGS} ${PERLCFLAGS} ${JAVACFLAGS} ${XML2CFLAGS} ${PYTHONCFLAGS} ${CFLAGS} -c zoo_loader.c -fno-common -DPIC -o zoo_loader.o |
---|
93 | g++ ${JSCFLAGS} ${GDAL_CFLAGS} ${XML2CFLAGS} ${PHPCFLAGS} ${PERLCFLAGS} ${JAVACFLAGS} ${PYTHONCFLAGS} ${CFLAGS} zoo_loader.o zoo_service_loader.o service_internal.o ${PYTHON_FILE} ${PERL_FILE} ${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} ${PERLLDFLAGS} ${PHPLDFLAGS} ${JAVALDFLAGS} ${JSLDFLAGS} -lfcgi -lcrypto |
---|
94 | |
---|
95 | install: |
---|
96 | @echo "##############################################################################" |
---|
97 | @echo "# This won't install anything !!! #" |
---|
98 | @echo "# #" |
---|
99 | @echo "# Please copy the zoo_loader.cgi and its companion main.cfg into your cgbin #" |
---|
100 | @echo "# directory. #" |
---|
101 | @echo "##############################################################################" |
---|
102 | |
---|
103 | clean: |
---|
104 | rm -f *.o *.zo *.eo *.tab.c *.tab.h *.sr.c* service_loader lex.* *.lreg *.sibling service_loader.dSYM |
---|