summaryrefslogtreecommitdiff
path: root/lib/tevent/tevent.mk
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-12-20 19:54:13 +0100
committerJelmer Vernooij <jelmer@samba.org>2008-12-20 19:54:13 +0100
commit28f80dbb7cc7daeb6d285dd26d3ef32a42af93ca (patch)
treeec537947800e5421f7baa97721a1524f59d68d61 /lib/tevent/tevent.mk
parent1f4bd4b82cda56ef27d3942a790fcfb908494d46 (diff)
downloadsamba-28f80dbb7cc7daeb6d285dd26d3ef32a42af93ca.tar.gz
samba-28f80dbb7cc7daeb6d285dd26d3ef32a42af93ca.tar.bz2
samba-28f80dbb7cc7daeb6d285dd26d3ef32a42af93ca.zip
Stop using SWIG for ldb Python bindings.
Diffstat (limited to 'lib/tevent/tevent.mk')
-rw-r--r--lib/tevent/tevent.mk14
1 files changed, 5 insertions, 9 deletions
diff --git a/lib/tevent/tevent.mk b/lib/tevent/tevent.mk
index 223bd981cf..b3a6608b99 100644
--- a/lib/tevent/tevent.mk
+++ b/lib/tevent/tevent.mk
@@ -37,17 +37,13 @@ clean::
check-python:: build-python
$(LIB_PATH_VAR)=. PYTHONPATH=".:$(teventdir)" $(PYTHON) $(teventdir)/tests.py
-install-swig::
- mkdir -p $(DESTDIR)`$(SWIG) -swiglib`
- cp tevent.i $(DESTDIR)`$(SWIG) -swiglib`
+build-python:: tevent.$(SHLIBEXT)
-build-python:: _events.$(SHLIBEXT)
+pytevent.o: $(teventdir)/pytevent.c
+ $(CC) $(PICFLAG) -c $(teventdir)/pytevent.c $(CFLAGS) `$(PYTHON_CONFIG) --cflags`
-events_wrap.o: $(teventdir)/events_wrap.c
- $(CC) $(PICFLAG) -c $(teventdir)/events_wrap.c $(CFLAGS) `$(PYTHON_CONFIG) --cflags`
-
-_events.$(SHLIBEXT): libtevent.$(SHLIBEXT) events_wrap.o
- $(SHLD) $(SHLD_FLAGS) -o $@ events_wrap.o -L. -ltevent `$(PYTHON_CONFIG) --libs`
+tevent.$(SHLIBEXT): libtevent.$(SHLIBEXT) pytevent.o
+ $(SHLD) $(SHLD_FLAGS) -o $@ pytevent.o -L. -ltevent `$(PYTHON_CONFIG) --libs`
install-python:: build-python
mkdir -p $(DESTDIR)`$(PYTHON) -c "import distutils.sysconfig; print distutils.sysconfig.get_python_lib(0, prefix='$(prefix)')"` \