summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorAlex Gorrod <alexg@wiredtiger.com>2013-01-25 12:48:02 +1100
committerAlex Gorrod <alexg@wiredtiger.com>2013-01-25 12:48:02 +1100
commit697825e73befaecbc8d2cd7c12547050fa875936 (patch)
treecfeefc0be7b36622d39a34790b495f6d864a189e /lang
parent90e7314eb393a129d79e1d2ee1dce1dd81cf17c3 (diff)
downloadmongo-697825e73befaecbc8d2cd7c12547050fa875936.tar.gz
Add in examples to Java build.
Diffstat (limited to 'lang')
-rw-r--r--lang/java/Makefile.am7
1 files changed, 7 insertions, 0 deletions
diff --git a/lang/java/Makefile.am b/lang/java/Makefile.am
index 81ac4373850..3f9b1ad9ec3 100644
--- a/lang/java/Makefile.am
+++ b/lang/java/Makefile.am
@@ -19,6 +19,7 @@ dist_java_JAVA = \
$(JAVADESTFULL)/wiredtiger.java \
$(JAVADESTFULL)/wiredtigerConstants.java \
$(JAVADESTFULL)/wiredtigerJNI.java
+
java_LTLIBRARIES = libwiredtiger_java.la
CPPFLAGS += $(JNI_CPPFLAGS)
@@ -28,6 +29,7 @@ libwiredtiger_java_la_SOURCES = $(BUILT_SOURCES) $(SWIG_SOURCES)
#libwiredtiger_java_la_LDFLAGS = -module
libwiredtiger_java_la_LIBADD = $(abs_top_builddir)/libwiredtiger.la
+all-local: wiredtiger.jar
$(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) -outdir $(JAVADEST) -o wiredtiger_wrap.c wiredtiger.i)
@@ -35,3 +37,8 @@ $(JAVASRC)/wiredtiger_wrap.c: $(top_srcdir)/src/include/wiredtiger.in $(SWIG_SOU
$(JDOCDIR)/index.html: $(dist_java_JAVA)
mkdir -p $(JDOCDIR)
javadoc -public -d $(JDOCDIR) -link http://docs.oracle.com/javase/6/docs/api $(JAVADESTFULL)/wiredtiger.java $(JAVADESTFULL)/wiredtigerConstants.java $(JAVADESTFULL)/[A-Z]*.java
+
+wiredtiger.jar: $(dist_java_JAVA)
+ (cd $(top_builddir) && \
+ $(JAR) -cf wiredtiger.jar com/)
+