Last change
on this file since 537 was
525,
checked in by djay, 10 years ago
|
Add the Java ZOO-API.
|
-
Property svn:keywords set to
Id
|
File size:
919 bytes
|
Line | |
---|
1 | include ../../zoo-kernel/ZOOMakefile.opts |
---|
2 | |
---|
3 | OS:=$(shell uname -s) |
---|
4 | ext=so |
---|
5 | ifeq ($(OS),Darwin) |
---|
6 | ext=dylib |
---|
7 | endif |
---|
8 | |
---|
9 | JAVA_FILES=../../zoo-kernel/${JAVA_FILE} |
---|
10 | |
---|
11 | ifeq ($(JS_ENABLED),-DUSE_JS) |
---|
12 | JS_FILES=../../zoo-kernel/${JS_FILE} |
---|
13 | endif |
---|
14 | ifeq ($(MS_FILE),service_internal_ms.o) |
---|
15 | MS_FILES=../../zoo-kernel/${MS_FILE} |
---|
16 | endif |
---|
17 | |
---|
18 | all: libZOO.${ext} |
---|
19 | |
---|
20 | ZOO.class: ZOO.java |
---|
21 | javac ZOO.java |
---|
22 | |
---|
23 | ZOO.h: ZOO.java ZOO.class |
---|
24 | javah ZOO |
---|
25 | |
---|
26 | zoo-api.o: zoo-api.c ZOO.h |
---|
27 | gcc -fPIC -c zoo-api.c ${JAVACFLAGS} ${XML2CFLAGS} -I../../zoo-kernel/ -I../../../thirds/cgic206/ |
---|
28 | |
---|
29 | libZOO.${ext}: zoo-api.o |
---|
30 | 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} |
---|
31 | |
---|
32 | clean: |
---|
33 | rm -f *${ext} *o *.h *class |
---|
Note: See
TracBrowser
for help on using the repository browser.