summaryrefslogtreecommitdiffstats
path: root/bindings/java
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2008-09-12 13:57:34 +0000
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2008-09-12 13:57:34 +0000
commit180fb41fa7c786dbc58974171c861efcbba5d542 (patch)
tree648854ec7a972831f1ab7eb656d50736160c261a /bindings/java
parentdd81d977610946d80da6dd21354bf9696d9251cb (diff)
downloadlasso-180fb41fa7c786dbc58974171c861efcbba5d542.tar.gz
lasso-180fb41fa7c786dbc58974171c861efcbba5d542.tar.xz
lasso-180fb41fa7c786dbc58974171c861efcbba5d542.zip
* When --enable-debugging is used, add -Wno-xxx options to AM_CFLAGS so that
bindings compile with -Werror (-Werror is activated by --enable-debugging now)
Diffstat (limited to 'bindings/java')
-rw-r--r--bindings/java/Makefile.am8
1 files changed, 5 insertions, 3 deletions
diff --git a/bindings/java/Makefile.am b/bindings/java/Makefile.am
index eddfbd4c..620d20d5 100644
--- a/bindings/java/Makefile.am
+++ b/bindings/java/Makefile.am
@@ -1,5 +1,4 @@
MAINTAINERCLEANFILES = Makefile.in
-if JAVA_ENABLED
INCLUDES = \
-I$(top_builddir) \
-I$(top_srcdir) \
@@ -41,7 +40,11 @@ doc:
com_entrouvert_lasso_LassoJNI.h: com/entrouvert/lasso/LassoJNI.class $(java_lasso_source_files:.java=.class)
$(JAVAH) $(JAVAH_FLAGS) -classpath . `echo $< | sed 'su/u.ug;su.classuu'`
-libjnilasso_la_CFLAGS = -fno-strict-aliasing $(LASSO_CORE_CFLAGS) -I$(top_srcdir) -I$(top_builddir) @JAVA_INCLUDE@
+libjnilasso_la_CFLAGS = -fno-strict-aliasing $(LASSO_CORE_CFLAGS) -I$(top_srcdir) -I$(top_builddir) $(AM_CFLAGS) @JAVA_INCLUDE@
+if DEBUGGING
+libjnilasso_la_CFLAGS += -Wno-unused-parameter
+endif
+
libjnilasso_la_LDFLAGS = -export-dynamic -prefer-pic -module -avoid-version
libjnilasso_la_LIBADD = $(top_builddir)/lasso/liblasso.la $(LASSO_LIBS)
nodist_libjnilasso_la_SOURCES = com_entrouvert_lasso_LassoJNI.c
@@ -92,5 +95,4 @@ AllJunitTests: $(test_source_files:.java=.class)
chmod +x $@
endif
-endif