Merge branch 'bug_124_m2ts_support'
[enigma2.git] / lib / service / Makefile.am
index 795900a636a44e0bbc2a2b0d7453be0144ff2a75..9f956b66c078734c4975c48d3ecd6c71d0682f42 100644 (file)
@@ -1,8 +1,39 @@
-INCLUDES = \
-       -I$(top_srcdir)/include
+AM_CPPFLAGS = \
+       -I$(top_srcdir) \
+       -I$(top_srcdir)/include \
+       -include Python.h \
+       -include $(top_builddir)/enigma2_config.h
+
+AM_CXXFLAGS = \
+       $(LIBXINE_CFLAGS)
 
 noinst_LIBRARIES = libenigma_service.a
 
 libenigma_service_a_SOURCES = \
-       listboxservice.cpp service.cpp servicemp3.cpp servicedvb.cpp servicefs.cpp \
-       servicem2ts.cpp event.cpp servicedvbrecord.cpp
+       event.cpp \
+       listboxservice.cpp \
+       service.cpp \
+       servicedvb.cpp \
+       servicedvbrecord.cpp \
+       servicefs.cpp \
+       servicemp3.cpp \
+       servicem2ts.cpp
+
+serviceincludedir = $(pkgincludedir)/lib/service
+serviceinclude_HEADERS = \
+       event.h \
+       iservice.h \
+       listboxservice.h \
+       service.h \
+       servicedvb.h \
+       servicedvbrecord.h \
+       servicefs.h \
+       servicemp3.h \
+       servicem2ts.h
+
+if HAVE_LIBXINE
+libenigma_service_a_SOURCES += \
+       servicexine.cpp
+serviceinclude_HEADERS += \
+       servicexine.h
+endif