2012-10-03 18:18:43 +10:00
|
|
|
AM_CPPFLAGS = -I$(abs_top_builddir)
|
2011-09-02 21:53:51 +10:00
|
|
|
|
|
|
|
|
PYSRC = $(top_srcdir)/lang/python
|
|
|
|
|
if DEBUG
|
|
|
|
|
PY_SETUP_DEBUG = -g
|
|
|
|
|
endif
|
|
|
|
|
all-local: _wiredtiger.so
|
2011-09-16 16:38:39 +10:00
|
|
|
$(PYSRC)/wiredtiger_wrap.c: $(top_srcdir)/src/include/wiredtiger.in $(PYSRC)/wiredtiger.i
|
2011-09-08 18:26:44 +10:00
|
|
|
@(cd $(PYSRC) && \
|
2012-10-24 14:33:39 +11:00
|
|
|
$(SWIG) -python -threads -O -Wall -nodefaultctor -nodefaultdtor -I$(abs_top_builddir) wiredtiger.i)
|
2011-09-02 21:53:51 +10:00
|
|
|
|
2011-09-06 07:09:39 +10:00
|
|
|
_wiredtiger.so: $(top_builddir)/libwiredtiger.la $(PYSRC)/wiredtiger_wrap.c
|
2011-09-02 21:53:51 +10:00
|
|
|
$(PYTHON) $(PYSRC)/setup.py build_ext -b . -t . -f $(PY_SETUP_DEBUG)
|
2012-05-04 10:39:46 +10:00
|
|
|
|
|
|
|
|
TESTS = $(top_srcdir)/examples/python/run-ex_access
|