include ../../zoo-kernel/ZOOMakefile.opts OS:=$(shell uname -s) ext=so ifeq ($(OS),Darwin) ext=dylib endif JAVA_FILES=../../zoo-kernel/${JAVA_FILE} ifeq ($(JS_ENABLED),-DUSE_JS) JS_FILES=../../zoo-kernel/${JS_FILE}, endif ifeq ($(MS_FILE),service_internal_ms.o) MS_FILES=../../zoo-kernel/${MS_FILE}, endif all: libZOO.${ext} org/zoo_project/ZOO.class: org/zoo_project/ZOO.java javac org/zoo_project/ZOO.java org_zoo_project_ZOO.h: org/zoo_project/ZOO.java org/zoo_project/ZOO.class javah org.zoo_project.ZOO zoo-api.o: zoo-api.c org_zoo_project_ZOO.h gcc -fPIC -c zoo-api.c ${JAVACFLAGS} ${XML2CFLAGS} -I../../zoo-kernel/ -I../../../thirds/cgic206/ libZOO.${ext}: zoo-api.o gcc zoo-api.o -shared -o libZOO.${ext} -Wl,../../zoo-kernel//service_yaml.o,../../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 -lyaml clean: rm -f *${ext} *o *.h *class org/zoo_project/*.class