further updates to the build system, generate enigma2.sh
[enigma2.git] / lib / python / Plugins / Extensions / SocketMMI / src / Makefile.am
index 9fb72097e415e24c494cd497b5cfdc9a79adad37..5ce7d031b49c1442c9d3cb8478885d9366aeeff5 100644 (file)
@@ -1,22 +1,15 @@
-CPPFLAGS += \
+AM_CPPFLAGS = \
        -I$(top_srcdir) \
+       -I$(top_srcdir)/include \
        -include Python.h \
        -include $(top_builddir)/enigma2_config.h
 
-OBJS = socket_mmi.cpp
+plugindir = $(pkglibdir)/python/Plugins/Extensions/SocketMMI
 
--include $(OBJS:.cpp=.d)
+plugin_LTLIBRARIES = socketmmi.la
 
-installdir = $(pkglibdir)/python/Plugins/Extensions/SocketMMI
+socketmmi_la_SOURCES = \
+       socket_mmi.cpp \
+       socket_mmi.h
 
-install_PYTHON = \
-       socketmmi.so
-
-socketmmi.so: socket_mmi.cpp socket_mmi.h
-       $(CXX) $(CPPFLAGS) -MD $(CXXFLAGS) $(DEFS) -I$(top_srcdir)/include \
-       -Wall -W $(OBJS) -shared -fPIC -Wl,-soname,socketmmi.so -o socketmmi.so \
-       $(LDFLAGS)
-
-all: socketmmi.so
-
-CLEANFILES = socketmmi.so socketmmi.d
+socketmmi_la_LDFLAGS = -avoid-version -module