view swig/python/Makefile.am @ 138:cfb8a5f6ea06

removing unneeded %newobject decl newobject is only for management of a returned object -- it cannot handle nested structures that need complicated teardown
author Tej Chajed <tchajed+github@gmail.com>
date Sun, 02 Dec 2012 13:51:23 -0600
parents 110afbaa8aaa
children 34f6492223b2
line wrap: on
line source
MAINTAINERCLEANFILES = xtract.py xtract_wrap.c Makefile.in _xtract.so

BUILT_SOURCES = $(srcdir)/xtract_wrap.c
SWIG_SOURCES = ../xtract.i

pkgpython_PYTHON = xtract.py __init__.py
pkgpyexec_LTLIBRARIES = _xtract.la
_xtract_la_SOURCES = $(srcdir)/xtract_wrap.c $(SWIG_SOURCES)
_xtract_la_CFLAGS = $(AX_SWIG_PYTHON_CPPFLAGS) -I$(top_srcdir)/src
_xtract_la_LDFLAGS = -module -lxtract
_xtract_la_LIBADD = $(top_srcdir)/src/libxtract.la

$(srcdir)/xtract_wrap.c : $(SWIG_SOURCES)
	$(SWIG) $(AX_SWIG_PYTHON_OPT) -I$(top_srcdir) -o $@ $<

clean-local:
	-rm -f _xtract.so xtract.py xtract_wrap.c xtract.pyc