X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/97b86324d322309843cc5d9d93b039d706c5ae58..9b17ab1310d7b71aea7c0d9d12f2b73520a6d750:/lib/python/Makefile.am diff --git a/lib/python/Makefile.am b/lib/python/Makefile.am index 03dcedb9..666ba67d 100644 --- a/lib/python/Makefile.am +++ b/lib/python/Makefile.am @@ -1,24 +1,45 @@ AM_CPPFLAGS = \ -I$(top_srcdir) \ -I$(top_srcdir)/include \ - -include Python.h + -include Python.h \ + -include $(top_builddir)/enigma2_config.h SUBDIRS = Components Tools Screens Plugins -noinst_LTLIBRARIES = libenigma_python.la +noinst_LIBRARIES = libenigma_python.a -libenigma_python_la_SOURCES = \ - python.cpp enigma_python_wrap.cxx connections.cpp +libenigma_python_a_SOURCES = \ + connections.cpp \ + python.cpp -enigma_python_wrap.cxx: enigma_python.i - swig -I$(top_srcdir)/ -c++ -python -O -nortti -nothreads enigma_python.i - python enigma_py_patcher.py +pythonincludedir = $(pkgincludedir)/lib/python +pythoninclude_HEADERS = \ + connections.h \ + python.h \ + swig.h -enigma.py: enigma_python_wrap.cxx +nodist_libenigma_python_a_SOURCES = \ + enigma_python.cpp -CLEANFILES = enigma.py enigma_python_wrap.cxx +noinst_PYTHON = \ + enigma_py_patcher.py + +EXTRA_DIST = \ + enigma_python.i + +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/enigma_python.Pcpp@am__quote@ + +.i.cpp: + $(AM_V_GEN)$(SWIG) $(AX_SWIG_PYTHON_OPT) -MT $@ -MD -MF $(DEPDIR)/$*.Tpo -I$(top_srcdir) -O -nortti -nothreads -o $@ $< + $(AM_V_at)mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Pcpp + $(AM_V_at)$(PYTHON) $(srcdir)/enigma_py_patcher.py + +enigma.py: enigma_python.cpp + +CLEANFILES = enigma.py enigma_python.cpp installdir = $(pkglibdir)/python install_PYTHON = \ enigma.py +