From 44f6e18fe39608468e0338116d36ddc8776dce74 Mon Sep 17 00:00:00 2001 From: Frederic Peters Date: Tue, 29 Apr 2008 12:03:17 +0000 Subject: [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 Date: 2007-10-28 15:03:59.480000+01:00 --- bindings/python/Makefile.am | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 bindings/python/Makefile.am (limited to 'bindings/python') 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 -- cgit