SUBDIRS = actions base components dvb dvb_ci gdi service driver nav gui python mmi
-
-noinst_LTLIBRARIES = libenigma.la
-
-libenigma_la_SOURCES =
-libenigma_la_LIBADD = \
- $(top_builddir)/lib/actions/libenigma_actions.la \
- $(top_builddir)/lib/base/libenigma_base.la \
- $(top_builddir)/lib/components/libenigma_components.la \
- $(top_builddir)/lib/driver/libenigma_driver.la \
- $(top_builddir)/lib/mmi/libenigma_mmi.la \
- $(top_builddir)/lib/dvb/libenigma_dvb.la \
- $(top_builddir)/lib/dvb_ci/libenigma_dvb_ci.la \
- $(top_builddir)/lib/gdi/libenigma_gdi.la \
- $(top_builddir)/lib/gui/libenigma_gui.la \
- $(top_builddir)/lib/python/libenigma_python.la \
- $(top_builddir)/lib/nav/libenigma_nav.la \
- $(top_builddir)/lib/service/libenigma_service.la
EXTRA_DIST = parseactions.py
-noinst_LTLIBRARIES = libenigma_actions.la
+noinst_LIBRARIES = libenigma_actions.a
-libenigma_actions_la_SOURCES = \
+libenigma_actions_a_SOURCES = \
action.cpp \
action.h
-nodist_libenigma_actions_la_SOURCES = \
+nodist_libenigma_actions_a_SOURCES = \
actionids.h
BUILT_SOURCES = actionids.h
-include Python.h \
-include $(top_builddir)/enigma2_config.h
-noinst_LTLIBRARIES = libenigma_base.la
+noinst_LIBRARIES = libenigma_base.a
-libenigma_base_la_SOURCES = \
+libenigma_base_a_SOURCES = \
buffer.cpp \
buffer.h \
connection.cpp \
-include Python.h \
-include $(top_builddir)/enigma2_config.h
-noinst_LTLIBRARIES = libenigma_components.la
+noinst_LIBRARIES = libenigma_components.a
-libenigma_components_la_SOURCES = \
+libenigma_components_a_SOURCES = \
file_eraser.cpp \
file_eraser.h \
scan.cpp \
-include Python.h \
-include $(top_builddir)/enigma2_config.h
-noinst_LTLIBRARIES = libenigma_driver.la
+noinst_LIBRARIES = libenigma_driver.a
-libenigma_driver_la_SOURCES = \
+libenigma_driver_a_SOURCES = \
avswitch.cpp \
avswitch.h \
etimezone.cpp \
-include Python.h \
-include $(top_builddir)/enigma2_config.h
-noinst_LTLIBRARIES = libenigma_dvb.la
+noinst_LIBRARIES = libenigma_dvb.a
-libenigma_dvb_la_SOURCES = \
+libenigma_dvb_a_SOURCES = \
crc32.cpp \
crc32.h \
db.cpp \
-include Python.h \
-include $(top_builddir)/enigma2_config.h
-noinst_LTLIBRARIES = libenigma_dvb_ci.la
+noinst_LIBRARIES = libenigma_dvb_ci.a
-libenigma_dvb_ci_la_SOURCES = \
+libenigma_dvb_ci_a_SOURCES = \
dvbci.cpp \
dvbci.h \
dvbci_appmgr.cpp \
AM_CXXFLAGS = \
$(LIBSDL_CFLAGS)
-noinst_LTLIBRARIES = libenigma_gdi.la
+noinst_LIBRARIES = libenigma_gdi.a
-libenigma_gdi_la_SOURCES = \
+libenigma_gdi_a_SOURCES = \
accel.cpp \
accel.h \
bcm.cpp \
region.h
if HAVE_LIBSDL
-libenigma_gdi_la_SOURCES += \
+libenigma_gdi_a_SOURCES += \
sdl.cpp \
sdl.h
endif
-include Python.h \
-include $(top_builddir)/enigma2_config.h
-noinst_LTLIBRARIES = libenigma_gui.la
+noinst_LIBRARIES = libenigma_gui.a
-libenigma_gui_la_SOURCES = \
+libenigma_gui_a_SOURCES = \
ebutton.cpp \
ebutton.h \
ecanvas.cpp \
-include Python.h \
-include $(top_builddir)/enigma2_config.h
-noinst_LTLIBRARIES = libenigma_mmi.la
+noinst_LIBRARIES = libenigma_mmi.a
-libenigma_mmi_la_SOURCES = \
+libenigma_mmi_a_SOURCES = \
mmi_ui.cpp \
mmi_ui.h
-include Python.h \
-include $(top_builddir)/enigma2_config.h
-noinst_LTLIBRARIES = libenigma_nav.la
+noinst_LIBRARIES = libenigma_nav.a
-libenigma_nav_la_SOURCES = \
+libenigma_nav_a_SOURCES = \
core.cpp \
core.h \
pcore.cpp \
SUBDIRS = Components Tools Screens Plugins
-noinst_LTLIBRARIES = libenigma_python.la
+noinst_LIBRARIES = libenigma_python.a
-libenigma_python_la_SOURCES = \
+libenigma_python_a_SOURCES = \
connections.cpp \
connections.h \
python.cpp \
python.h \
swig.h
-nodist_libenigma_python_la_SOURCES = \
+nodist_libenigma_python_a_SOURCES = \
enigma_python_wrap.cxx
EXTRA_DIST = \
AM_CXXFLAGS = \
$(LIBXINE_CFLAGS)
-noinst_LTLIBRARIES = libenigma_service.la
+noinst_LIBRARIES = libenigma_service.a
-libenigma_service_la_SOURCES = \
+libenigma_service_a_SOURCES = \
event.cpp \
event.h \
iservice.h \
servicemp3.h
if HAVE_LIBXINE
-libenigma_service_la_SOURCES += \
+libenigma_service_a_SOURCES += \
servicexine.cpp \
servicexine.h
endif
enigma-playlist.cpp \
enigma-scan.cpp
+enigma2_LDADD_WHOLE = \
+ $(top_builddir)/lib/actions/libenigma_actions.a \
+ $(top_builddir)/lib/base/libenigma_base.a \
+ $(top_builddir)/lib/components/libenigma_components.a \
+ $(top_builddir)/lib/driver/libenigma_driver.a \
+ $(top_builddir)/lib/mmi/libenigma_mmi.a \
+ $(top_builddir)/lib/dvb/libenigma_dvb.a \
+ $(top_builddir)/lib/dvb_ci/libenigma_dvb_ci.a \
+ $(top_builddir)/lib/gdi/libenigma_gdi.a \
+ $(top_builddir)/lib/gui/libenigma_gui.a \
+ $(top_builddir)/lib/python/libenigma_python.a \
+ $(top_builddir)/lib/nav/libenigma_nav.a \
+ $(top_builddir)/lib/service/libenigma_service.a
+
enigma2_LDADD = \
- $(top_builddir)/lib/libenigma.la \
@BASE_LIBS@ \
@LIBGIF_LIBS@ \
@LIBJPEG_LIBS@ \
@PTHREAD_LIBS@ \
@PYTHON_LDFLAGS@
+enigma2_LDFLAGS = -Wl,--export-dynamic
+
+BUILT_SOURCES = version.h
+
GIT_DIR = $(top_srcdir)/.git
version.h:
dist-hook:
echo "#define ENIGMA2_LAST_CHANGE_DATE \"`date --rfc-3339=date`\"" > version.h;
echo "#define ENIGMA2_BRANCH \"$(PACKAGE_VERSION)\"" >> version.h;
+
+enigma2$(EXEEXT): $(enigma2_OBJECTS) $(enigma2_DEPENDENCIES) $(enigma2_LDADD_WHOLE)
+ $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ $(enigma2_LDFLAGS) $(enigma2_OBJECTS) \
+ -Wl,--whole-archive $(enigma2_LDADD_WHOLE) -Wl,--no-whole-archive $(enigma2_LDADD) $(LIBS)