source: trunk/zoo-project/zoo-api/java/Makefile @ 621

Last change on this file since 621 was 612, checked in by djay, 10 years ago

Fix issue for building the libZOO.so from the Java ZOO-API

  • Property svn:keywords set to Id
File size: 921 bytes
RevLine 
[525]1include ../../zoo-kernel/ZOOMakefile.opts
2
3OS:=$(shell uname -s)
4ext=so
5ifeq ($(OS),Darwin)
6        ext=dylib
7endif
8
9JAVA_FILES=../../zoo-kernel/${JAVA_FILE}
10
11ifeq ($(JS_ENABLED),-DUSE_JS)
[612]12        JS_FILES=../../zoo-kernel/${JS_FILE},
[525]13endif
14ifeq ($(MS_FILE),service_internal_ms.o)
[612]15        MS_FILES=../../zoo-kernel/${MS_FILE},
[525]16endif
17
[612]18
19
[525]20all: libZOO.${ext}
21
22ZOO.class: ZOO.java
23        javac ZOO.java
24
25ZOO.h: ZOO.java ZOO.class
26        javah ZOO
27
28zoo-api.o: zoo-api.c ZOO.h
29        gcc -fPIC -c zoo-api.c ${JAVACFLAGS} ${XML2CFLAGS} -I../../zoo-kernel/ -I../../../thirds/cgic206/
30
31libZOO.${ext}: zoo-api.o
[612]32        gcc zoo-api.o -shared -o libZOO.${ext} -Wl,../../zoo-kernel/service_internal.o,${JAVA_FILES},${MS_FILES}${JS_FILES}../../zoo-kernel/ulinet.o ${GDAL_LIBS} ${XML2LDFLAGS} ${PYTHONLDFLAGS} ${PERLLDFLAGS}  ${PHPLDFLAGS} ${JAVALDFLAGS} ${JSLDFLAGS} -lcrypto ${MS_LDFLAGS} ${MACOS_LD_FLAGS} -lcurl -lfcgi ${MACOS_LD_NET_FLAGS}
[525]33
34clean:
35        rm -f *${ext} *o *.h *class
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