Merge branch 'obi/master'
[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.cpp
23
24 noinst_PYTHON = \
25         enigma_py_patcher.py
26
27 EXTRA_DIST = \
28         enigma_python.i
29
30 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/enigma_python.Pcpp@am__quote@
31
32 .i.cpp:
33         $(AM_V_GEN)$(SWIG) $(AX_SWIG_PYTHON_OPT) -MT $@ -MD -MF $(DEPDIR)/$*.Tpo -I$(top_srcdir) -O -nortti -nothreads -o $@ $<
34         $(AM_V_at)mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Pcpp
35         $(AM_V_at)$(PYTHON) $(srcdir)/enigma_py_patcher.py
36
37 enigma.py: enigma_python.cpp
38
39 CLEANFILES = enigma.py enigma_python.cpp
40
41 installdir = $(pkglibdir)/python
42
43 install_PYTHON = \
44         enigma.py
45