ebd77e2d4bae2a20f4912c1b3ede7da322adb993
[enigma2.git] / lib / python / Makefile.am
1 AM_CPPFLAGS = \
2         -I$(top_srcdir) \
3         -I$(top_srcdir)/include \
4         -include Python.h \
5         -include $(top_builddir)/enigma2_config.h
6
7 SUBDIRS = Components Tools Screens Plugins
8
9 noinst_LIBRARIES = libenigma_python.a
10
11 libenigma_python_a_SOURCES = \
12         connections.cpp \
13         python.cpp
14
15 pythonincludedir = $(pkgincludedir)/lib/python
16 pythoninclude_HEADERS = \
17         connections.h \
18         python.h \
19         swig.h
20
21 nodist_libenigma_python_a_SOURCES = \
22         enigma_python_wrap.cxx
23
24 noinst_PYTHON = \
25         enigma_py_patcher.py
26
27 EXTRA_DIST = \
28         enigma_python.i
29
30 enigma_python_wrap.cxx: $(srcdir)/enigma_python.i
31         $(AM_V_GEN)$(SWIG) $(AX_SWIG_PYTHON_OPT) -I$(top_srcdir) -O -nortti -nothreads -o $@ $<
32         $(AM_V_at)$(PYTHON) $(srcdir)/enigma_py_patcher.py
33
34 enigma.py: enigma_python_wrap.cxx
35
36 CLEANFILES = enigma.py enigma_python_wrap.cxx
37
38 installdir = $(pkglibdir)/python
39
40 install_PYTHON = \
41         enigma.py
42