From 280bf6f6ba2c6ad6d4f470573ca23d72541813c1 Mon Sep 17 00:00:00 2001 From: Jamie Bullock Date: Tue, 4 Sep 2007 19:07:55 +0000 Subject: Added basic SWIG wrapper generator (use ./configure --enable-swig etc) --- swig/Makefile.am | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 swig/Makefile.am (limited to 'swig/Makefile.am') diff --git a/swig/Makefile.am b/swig/Makefile.am new file mode 100644 index 0000000..6214909 --- /dev/null +++ b/swig/Makefile.am @@ -0,0 +1,18 @@ +MAINTAINERCLEANFILES = xtract.py xtract_wrap.c Makefile.in _xtract.so + +BUILT_SOURCES = $(srcdir)/xtract_wrap.c +SWIG_SOURCES = xtract.i + +pkgpython_PYTHON = xtract.py +pkgpyexec_LTLIBRARIES = _xtract.la +_xtract_la_SOURCES = $(srcdir)/xtract_wrap.c $(SWIG_SOURCES) +_xtract_la_CFLAGS = $(SWIG_PYTHON_CPPFLAGS) -I$(top_srcdir)/src +_xtract_la_LDFLAGS = -module -lxtract +_xtract_la_LIBADD = ../src/libxtract.la + +xtract_wrap.c : $(SWIG_SOURCES) + $(SWIG) $(SWIG_PYTHON_OPT) -I$(top_srcdir) -o $@ $< + +clean-local: + -rm -f _xtract.so xtract.py xtract_wrap.c xtract.pyc + -- cgit v1.2.3