source: trunk/zoo-kernel/Makefile.in @ 180

Last change on this file since 180 was 114, checked in by djay, 14 years ago

Code cleanup to avoid most of the warning messages at compilation time.

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