aboutsummaryrefslogtreecommitdiffstats
path: root/libical/src/python/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'libical/src/python/Makefile.am')
-rw-r--r--libical/src/python/Makefile.am42
1 files changed, 42 insertions, 0 deletions
diff --git a/libical/src/python/Makefile.am b/libical/src/python/Makefile.am
new file mode 100644
index 0000000000..8eaf4a74cb
--- /dev/null
+++ b/libical/src/python/Makefile.am
@@ -0,0 +1,42 @@
+
+lib_LTLIBRARIES = libLibicalWrap.la
+
+libLibicalWrap_la_SOURCES = LibicalWrap.c
+
+INCLUDES = \
+ -I$(top_builddir) \
+ -I$(top_srcdir)/src \
+ -I$(top_builddir)/src \
+ -I$(top_srcdir)/src/libical \
+ -I$(top_builddir)/src/libical \
+ -I$(top_srcdir)/src/libicalss \
+ $(PY_CFLAGS)
+
+LDADD = ../libical/libical.la ../libicalss/libicalss.la
+
+all: LibicalWrap.so
+
+LibicalWrap.c: LibicalWrap.i
+ swig -python -o LibicalWrap.c LibicalWrap.i
+
+# This part should be done with libtool, but I don't know how to do
+# it. Libtool needs to generate a shared library in this directory
+# regardless of the value of AM_DISABLE_SHARED
+LibicalWrap.so: LibicalWrap.c
+ ld -shared -o LibicalWrap.so LibicalWrap.o ../libical/.libs/libical.a ../libicalss/.libs/libicalss.a
+
+CLEANFILES = LibicalWrap.c LibicalWrap_wrap.doc Libical.pyc LibicalWrap.so
+
+EXTRA_DIST = \
+Libical.py \
+LibicalWrap.i \
+python-binding.txt \
+test.py \
+Collection.py \
+Component.py \
+DerivedProperties.py \
+Property.py \
+Store.py \
+ChangeLog
+
+