summaryrefslogtreecommitdiffstats
path: root/perl
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2008-09-12 13:57:29 +0000
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2008-09-12 13:57:29 +0000
commit8ef6440a9a604567d6dbd47f8948d813cd90a2ae (patch)
tree23f5aa397807a2d4634494243121c737d7b2bb26 /perl
parent0e706e6598cbdbf0dae5ef74a0cb4c206f590b82 (diff)
downloadlasso-8ef6440a9a604567d6dbd47f8948d813cd90a2ae.tar.gz
lasso-8ef6440a9a604567d6dbd47f8948d813cd90a2ae.tar.xz
lasso-8ef6440a9a604567d6dbd47f8948d813cd90a2ae.zip
* Add options when DEBUGGING is activated, i.e. to permit compiling when -Werror is used. It removes
some of the warning for code we do not control.
Diffstat (limited to 'perl')
-rw-r--r--perl/Makefile.am7
1 files changed, 6 insertions, 1 deletions
diff --git a/perl/Makefile.am b/perl/Makefile.am
index f7f42625..f8aadfeb 100644
--- a/perl/Makefile.am
+++ b/perl/Makefile.am
@@ -18,11 +18,16 @@ SWIG_I_FILES=$(shell find $(top_srcdir)/swig/ -name '*.[ih]')
lasso_wrap.c lasso.pm: $(SWIG_I_FILES)
$(SWIG) -I$(top_builddir)/swig -v -perl5 -module lasso -o lasso_wrap.c $(top_srcdir)/swig/Lasso.i
+
$(PERL_MAKEFILE): lasso.pm lasso_wrap.c
test -e Makefile.PL || test ! -e $(srcdir)/Makefile.PL || $(LN_S) $(srcdir)/Makefile.PL .
test -e lasso_wrap.c || test ! -e $(srcdir)/lasso_wrap.c || $(LN_S) $(srcdir)/lasso_wrap.c .
test -e lasso.pm || test ! -e $(srcdir)/lasso.pm || $(LN_S) $(srcdir)/lasso.pm .
- VERSION="$(VERSION)" CC="$(CC)" CFLAGS="$(AM_CPPFLAGS) $(AM_CFLAGS) $(SWIG_OPTS) $(CPPFLAGS) $(AM_STANDARD_CFLAGS)" $(PERL) $(srcdir)/Makefile.PL DESTDIR="$(DESTDIR)" PREFIX="$(prefix)" $(MAKE_PL_OPTS) TOP_SRCDIR="$(top_srcdir)" TOP_BUILDDIR="$(top_builddir)"
+ VERSION="$(VERSION)" CC="$(CC)" CFLAGS="$(AM_CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) $(SWIG_OPTS) $(CPPFLAGS) $(AM_STANDARD_CFLAGS)" $(PERL) $(srcdir)/Makefile.PL DESTDIR="$(DESTDIR)" PREFIX="$(prefix)" $(MAKE_PL_OPTS) TOP_SRCDIR="$(top_srcdir)" TOP_BUILDDIR="$(top_builddir)"
+
+if DEBUGGING
+AM_CFLAGS+=-Wno-unused-parameter -Wno-sign-compare -Wno-unused-variable -Wno-unused-function
+endif
-perl install-perl: $(PERL_MAKEFILE)
target=`echo $@ | sed -e 's/-perl//'`; \