summaryrefslogtreecommitdiffstats
path: root/bindings/python
diff options
context:
space:
mode:
authorFrederic Peters <fpeters@entrouvert.com>2008-04-29 12:03:17 +0000
committerFrederic Peters <fpeters@entrouvert.com>2008-04-29 12:03:17 +0000
commit44f6e18fe39608468e0338116d36ddc8776dce74 (patch)
tree28edd1e34282152ad66d9b9292e038a0d8b2723a /bindings/python
parent236ff838e7cd77a611a57603d0ba5b2c9c0fba3c (diff)
downloadlasso-44f6e18fe39608468e0338116d36ddc8776dce74.tar.gz
lasso-44f6e18fe39608468e0338116d36ddc8776dce74.tar.xz
lasso-44f6e18fe39608468e0338116d36ddc8776dce74.zip
[project @ fpeters@0d.be-20071028140359-qhawdgrwjhk97y32]
added Makefile.am files; to integrate within lasso build tree (under a bindings/ directory), this also requires to add those three lines to configure.ac AC_OUTPUT: bindings/Makefile bindings/python/Makefile bindings/php5/Makefile also changed generation script to output files in the current directory Original author: Frederic Peters <fpeters@0d.be> Date: 2007-10-28 15:03:59.480000+01:00
Diffstat (limited to 'bindings/python')
-rw-r--r--bindings/python/Makefile.am26
1 files changed, 26 insertions, 0 deletions
diff --git a/bindings/python/Makefile.am b/bindings/python/Makefile.am
new file mode 100644
index 00000000..a1d1928d
--- /dev/null
+++ b/bindings/python/Makefile.am
@@ -0,0 +1,26 @@
+if PYTHON_ENABLED
+INCLUDES = -I$(top_srcdir) \
+ -I$(top_builddir) \
+ $(SASL_CFLAGS)
+
+pythondir= $(PY_SITE_PACKAGES)
+python_DATA = lasso.py
+python_LTLIBRARIES = _lasso.la
+
+_lasso_la_SOURCES = _lasso.c
+_lasso_la_CFLAGS = $(LASSO_CORE_CFLAGS) -DSWIG_COBJECT_TYPES $(PY_CFLAGS)
+_lasso_la_LIBADD = $(top_builddir)/lasso/liblasso.la $(LASSO_LIBS)
+if DARWIN
+_lasso_la_LDFLAGS = -no-undefined -module -avoid-version -Wl,-F. -Wl,-F. -bundle -framework Python
+else
+if MINGW
+_lasso_la_LDFLAGS = -no-undefined -module -avoid-version -Wl,--add-stdcall-alias
+else
+_lasso_la_LDFLAGS = -no-undefined -module -avoid-version
+endif
+endif
+
+_lasso.c:
+ $(PYTHON) $(top_srcdir)/bindings/bindings.py -l python --src-dir=$(top_srcdir)/lasso/
+
+endif