diff options
Diffstat (limited to 'misc/Makefile.common')
-rw-r--r-- | misc/Makefile.common | 51 |
1 files changed, 27 insertions, 24 deletions
diff --git a/misc/Makefile.common b/misc/Makefile.common index aa5ec1013..447b558e2 100644 --- a/misc/Makefile.common +++ b/misc/Makefile.common @@ -3,10 +3,16 @@ XINE_LIB = $(top_builddir)/src/xine-engine/libxine.la xineincludedir = $(includedir)/xine xineplugdir = $(XINE_PLUGINDIR) -xineplug_ldflags = $(NOUNDEF) -avoid-version -module +xineplug_ldflags = $(NOUNDEF) $(GCSECTIONS) -avoid-version -module + +xinepostdir = $(XINE_PLUGINDIR)/post +vidixdir = $(XINE_PLUGINDIR)/vidix $(XINE_LIB): - @cd $(top_srcdir)/src/xine-engine && $(MAKE) + $(MAKE) -C $(top_builddir)/src/xine-engine + +$(top_builddir)/contrib/libxdg-basedir/libxdg-basedir.la: + $(MAKE) -C $(top_builddir)/contrib/libxdg-basedir install-data-hook: @if test $$MAKELEVEL -le 4 ; then \ @@ -15,14 +21,18 @@ install-data-hook: fi; \ fi; \ if test -x /usr/bin/chcon -a "`id -u`" -eq 0; then \ - list='$(lib_LTLIBRARIES)'; \ - if test -n "$$list" ; then \ + list='$(xineplug_LTLIBRARIES)'; \ for p in $$list; do \ p="`echo $$p | sed -e 's/\.la$$/\.so/g;s|^.*/||'`"; \ - echo " chcon system_u:object_r:texrel_shlib_t $(DESTDIR)$(libdir)/$$p"; \ - chcon system_u:object_r:texrel_shlib_t $(DESTDIR)$(libdir)/$$p || :; \ + echo " chcon system_u:object_r:texrel_shlib_t $(DESTDIR)$(xineplugdir)/$$p"; \ + chcon system_u:object_r:texrel_shlib_t $(DESTDIR)$(xineplugdir)/$$p || :; \ + done; \ + list='$(xinepost_LTLIBRARIES)'; \ + for p in $$list; do \ + p="`echo $$p | sed -e 's/\.la$$/\.so/g;s|^.*/||'`"; \ + echo " chcon system_u:object_r:texrel_shlib_t $(DESTDIR)$(xinepostdir)/$$p"; \ + chcon system_u:object_r:texrel_shlib_t $(DESTDIR)$(xinepostdir)/$$p || :; \ done; \ - fi; \ fi pass1: @@ -31,29 +41,22 @@ pass1: pass2: @$(MAKE) MULTIPASS_CFLAGS="$(PASS2_CFLAGS)" -debug: - @$(MAKE) CFLAGS="$(DEBUG_CFLAGS)" - -install-debug: debug - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - @list='$(SUBDIRS)'; for subdir in $$list; do \ - (cd $$subdir && $(MAKE) $@) || exit; \ - done; - $(MAKE) $(AM_MAKEFLAGS) install-data-hook - uninstall-hook: - @if echo '$(libdir)' | egrep ^'$(XINE_PLUGINDIR)' >/dev/null; then \ - list='$(lib_LTLIBRARIES)'; for p in $$list; do \ - p="`echo $$p | sed -e 's/\.la$$/\.so/g;s|^.*/||'`"; \ - echo " rm -f $(DESTDIR)$(libdir)/$$p"; \ - rm -f $(DESTDIR)$(libdir)/$$p; \ - done; \ - fi @list='$(xineplug_LTLIBRARIES)'; for p in $$list; do \ p="`echo $$p | sed -e 's/\.la$$/\.so/g;s|^.*/||'`"; \ echo " rm -f $(DESTDIR)$(xineplugdir)/$$p"; \ rm -f $(DESTDIR)$(xineplugdir)/$$p; \ done; + @list='$(xinepost_LTLIBRARIES)'; for p in $$list; do \ + p="`echo $$p | sed -e 's/\.la$$/\.so/g;s|^.*/||'`"; \ + echo " rm -f $(DESTDIR)$(xinepostdir)/$$p"; \ + rm -f $(DESTDIR)$(xinepostdir)/$$p; \ + done; + @list='$(vidix_LTLIBRARIES)'; for p in $$list; do \ + p="`echo $$p | sed -e 's/\.la$$/\.so/g;s|^.*/||'`"; \ + echo " rm -f $(DESTDIR)$(vidixdir)/$$p"; \ + rm -f $(DESTDIR)$(vidixdir)/$$p; \ + done; mostlyclean-generic: -rm -f *~ \#* .*~ .\#* |