build and link static libraries without libtool
[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         connections.h \
14         python.cpp \
15         python.h \
16         swig.h
17
18 nodist_libenigma_python_a_SOURCES = \
19         enigma_python_wrap.cxx
20
21 EXTRA_DIST = \
22         enigma_py_patcher.py \
23         enigma_python.i
24
25 enigma_python_wrap.cxx: $(srcdir)/enigma_python.i
26         $(SWIG) $(AX_SWIG_PYTHON_OPT) -I$(top_srcdir) -O -nortti -nothreads -o $@ $<
27         $(PYTHON) $(srcdir)/enigma_py_patcher.py
28
29 enigma.py: enigma_python_wrap.cxx
30
31 CLEANFILES = enigma.py enigma_python_wrap.cxx
32
33 installdir = $(pkglibdir)/python
34
35 install_PYTHON = \
36         enigma.py
37