diff options
author | Darren Salt <linux@youmustbejoking.demon.co.uk> | 2010-01-21 19:04:22 +0000 |
---|---|---|
committer | Darren Salt <linux@youmustbejoking.demon.co.uk> | 2010-01-21 19:04:22 +0000 |
commit | 9caa2fc3aaa8e7160b5cbee6d56679ae9451a386 (patch) | |
tree | 941b0d7d601688a8aa3cf268537f7067f7712726 /src | |
parent | 51bcfa9ac8f0df94876dc874245df0b5bf768ee4 (diff) | |
download | xine-lib-9caa2fc3aaa8e7160b5cbee6d56679ae9451a386.tar.gz xine-lib-9caa2fc3aaa8e7160b5cbee6d56679ae9451a386.tar.bz2 |
Create libxine-interface.la and make libxine.la weakly provide it.
This reduces requirements of plugins etc., hopefully where possible and without
breakage. (Works on Linux.)
Diffstat (limited to 'src')
-rw-r--r-- | src/xine-engine/Makefile.am | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/src/xine-engine/Makefile.am b/src/xine-engine/Makefile.am index e32f2d2f4..e5aefa8da 100644 --- a/src/xine-engine/Makefile.am +++ b/src/xine-engine/Makefile.am @@ -13,11 +13,14 @@ EXTRA_DIST = lrb.c lrb.h accel_xvmc.h if WIN32 DEF_FILE = libxine-$(XINE_MAJOR).def def_ldflags="-Wl,--output-def,$(DEF_FILE)" +else +DEF_FILE = endif noinst_HEADERS = bswap.h ffmpeg_bswap.h lib_LTLIBRARIES = libxine.la +noinst_LTLBRARIES = libxine-interface.la libxine_la_SOURCES = xine.c metronom.c configfile.c buffer.c \ load_plugins.c video_decoder.c buffer_types.c \ @@ -36,15 +39,25 @@ libxine_la_LIBADD = $(PTHREAD_LIBS) $(DYNAMIC_LD_LIBS) $(LTLIBINTL) $(ZLIB_LIBS) $(AVUTIL_LIBS) libxine_la_LDFLAGS = $(AM_LDFLAGS) $(def_ldflags) $(GCSECTIONS) \ + -weak libxine-interface.la \ -version-info $(XINE_LT_CURRENT):$(XINE_LT_REVISION):$(XINE_LT_AGE) +libxine-interface.la: libxine.la + sed -e "/^dependency_libs/ s/'.*'/''/" <$< >$@ + +install-exec-hook: libxine-interface.la + $(INSTALL_DATA) "$(builddir)"/libxine-interface.la "$(DESTDIR)$(libdir)"/libxine-interface.la + +clean-local: + rm -f "$(builddir)"/libxine-interface.la + $(XINEUTILS_LIB): $(MAKE) -C $(top_builddir)/src/xine-utils libxineutils.la if WIN32 install-exec-local: cp -p $(DEF_FILE) $(DESTDIR)$(libdir) +endif uninstall-local: - rm -f $(DEF_FILE) -endif + rm -f $(DEF_FILE) "$(DESTDIR)$(libdir)"/libxine-interface.la |