DVDPlayer: add missing linker flags for libdreamdvd
[enigma2.git] / lib / python / Plugins / Extensions / DVDPlayer / src / Makefile.am
index 9aeb477a1a84231685a3dd01613d60375906ba34..3e2ee67cb32a0a6690664ebc9ac95d71f6d42fc9 100644 (file)
@@ -1,8 +1,18 @@
-servicedvd.so:
-       $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(DEFS) -I$(top_srcdir)/include -Wall -W servicedvd.cpp -shared -fPIC -Wl,-soname,servicedvd.so -o servicedvd.so $(LDFLAGS) -ldreamdvd
+AM_CPPFLAGS = \
+       -I$(top_srcdir) \
+       -I$(top_srcdir)/include \
+       -include Python.h \
+       -include $(top_builddir)/enigma2_config.h
 
-#-nostartfiles 
+AM_CXXFLAGS = @LIBDDVD_CFLAGS@
 
-all: servicedvd.so
+plugindir = $(pkglibdir)/python/Plugins/Extensions/DVDPlayer
 
-CLEANFILES = servicedvd.so
+plugin_LTLIBRARIES = servicedvd.la
+
+servicedvd_la_SOURCES = \
+       servicedvd.cpp \
+       servicedvd.h
+
+servicedvd_la_LDFLAGS = -avoid-version -module
+servicedvd_la_LIBADD = @LIBDDVD_LIBS@