diff options
author | Hilko Bengen <bengen@hilluzination.de> | 2011-11-15 21:28:21 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2011-11-16 12:38:59 +0000 |
commit | a0509ff0715533e341573e24f6888fd7dcf4ba51 (patch) | |
tree | 8cdc4f1ed5bdcf48380f160bfa8bde1744dfd705 /java/Makefile.am | |
parent | ddb3fac1bf1b0493779c9425b518598473ef106a (diff) | |
download | libguestfs-a0509ff0715533e341573e24f6888fd7dcf4ba51.tar.gz libguestfs-a0509ff0715533e341573e24f6888fd7dcf4ba51.tar.xz libguestfs-a0509ff0715533e341573e24f6888fd7dcf4ba51.zip |
java: out-of-tree build, don't build static library
Diffstat (limited to 'java/Makefile.am')
-rw-r--r-- | java/Makefile.am | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/java/Makefile.am b/java/Makefile.am index 7686047d..a96d3047 100644 --- a/java/Makefile.am +++ b/java/Makefile.am @@ -73,7 +73,7 @@ libguestfs_jni_la_SOURCES = \ com_redhat_et_libguestfs_GuestFS.c libguestfs_jni_la_LIBADD = $(top_builddir)/src/libguestfs.la -libguestfs_jni_la_LDFLAGS = -version-info $(JNI_VERSION_INFO) +libguestfs_jni_la_LDFLAGS = -version-info $(JNI_VERSION_INFO) -shared libguestfs_jni_la_CFLAGS = \ $(WARN_CFLAGS) $(WERROR_CFLAGS) \ -I$(top_srcdir)/src -I$(top_builddir)/src \ @@ -112,10 +112,11 @@ TESTS_ENVIRONMENT = \ noinst_DATA = Bindtests.class $(java_tests:.java=.class) t/%.class: t/%.java - $(JAVAC) $(JAVAC_FLAGS) -classpath libguestfs-$(VERSION).jar $< + mkdir -p t + $(JAVAC) $(JAVAC_FLAGS) -classpath libguestfs-$(VERSION).jar -d $(builddir)/t $< Bindtests.class: Bindtests.java - $(JAVAC) $(JAVAC_FLAGS) -classpath libguestfs-$(VERSION).jar $< + $(JAVAC) $(JAVAC_FLAGS) -classpath libguestfs-$(VERSION).jar -d $(builddir) $< endif |