Last change
on this file since 778 was
774,
checked in by djay, 9 years ago
|
Make yaml support optional again.
|
-
Property svn:keywords set to
Id
|
File size:
1.4 KB
|
Rev | Line | |
---|
[525] | 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) |
---|
[612] | 12 | JS_FILES=../../zoo-kernel/${JS_FILE}, |
---|
[525] | 13 | endif |
---|
| 14 | ifeq ($(MS_FILE),service_internal_ms.o) |
---|
[612] | 15 | MS_FILES=../../zoo-kernel/${MS_FILE}, |
---|
[525] | 16 | endif |
---|
| 17 | |
---|
[774] | 18 | ifeq ($(YAML_FILE),service_yaml.o) |
---|
| 19 | YAML_FILES=../../zoo-kernel/${YAML_FILE}, |
---|
| 20 | endif |
---|
[612] | 21 | |
---|
| 22 | |
---|
[774] | 23 | |
---|
[525] | 24 | all: libZOO.${ext} |
---|
| 25 | |
---|
[771] | 26 | org/zoo_project/ZOO.class: org/zoo_project/ZOO.java |
---|
| 27 | javac org/zoo_project/ZOO.java |
---|
[525] | 28 | |
---|
[771] | 29 | org_zoo_project_ZOO.h: org/zoo_project/ZOO.java org/zoo_project/ZOO.class |
---|
| 30 | javah org.zoo_project.ZOO |
---|
[525] | 31 | |
---|
[771] | 32 | zoo-api.o: zoo-api.c org_zoo_project_ZOO.h |
---|
[525] | 33 | gcc -fPIC -c zoo-api.c ${JAVACFLAGS} ${XML2CFLAGS} -I../../zoo-kernel/ -I../../../thirds/cgic206/ |
---|
| 34 | |
---|
| 35 | libZOO.${ext}: zoo-api.o |
---|
[774] | 36 | gcc zoo-api.o -shared -o libZOO.${ext} -Wl,${YAML_FILES}../../zoo-kernel/lex.cr.o,../../zoo-kernel/main_conf_read.tab.o,../../zoo-kernel/lex.sr.o,../../zoo-kernel/service_conf.tab.o,../../zoo-kernel/service_internal.o,../../zoo-kernel/server_internal.o,../../zoo-kernel/response_print.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} -lzoo_service ${YAML_LDFLAGS} |
---|
[525] | 37 | |
---|
| 38 | clean: |
---|
[771] | 39 | rm -f *${ext} *o *.h *class org/zoo_project/*.class |
---|
Note: See
TracBrowser
for help on using the repository browser.