JAVA_HOME = `/usr/libexec/java_home` INCLUDES = -I$(abs_top_builddir) \ -I$(JAVA_HOME)/include \ -I$(JAVA_HOME)/include/`uname | tr A-Z a-z` JAVASRC = $(top_srcdir)/lang/java BUILT_SOURCES = $(JAVASRC)/wiredtiger_wrap.c SWIG_SOURCES = $(JAVASRC)/wiredtiger.i javadir = $(datadir)/java dist_java_JAVA = \ Connection.java \ Cursor.java \ DbException.java \ SearchStatus.java \ Session.java \ wiredtiger.java \ wiredtigerConstants.java \ wiredtigerJNI.java java_LTLIBRARIES = libwiredtiger_java.la # Some warnings when compiling the generated code are unavoidable CFLAGS += -w libwiredtiger_java_la_SOURCES = $(BUILT_SOURCES) $(SWIG_SOURCES) #libwiredtiger_java_la_LDFLAGS = -module libwiredtiger_java_la_LIBADD = $(abs_top_builddir)/libwiredtiger.la $(JAVASRC)/wiredtiger_wrap.c: $(top_srcdir)/src/include/wiredtiger.in $(SWIG_SOURCES) (cd $(JAVASRC) && \ $(SWIG) -Wall -v -java -nodefaultctor -nodefaultdtor -package com.wiredtiger.db -I$(abs_top_builddir) -o wiredtiger_wrap.c wiredtiger.i)