summaryrefslogtreecommitdiff
path: root/misc/Makefile.common
blob: 4adab1527f4738f4c01153804eb59335bdee7d20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
XINE_LIB = $(top_builddir)/src/xine-engine/libxine.la

xineincludedir = $(includedir)/xine

xineplugdir = $(XINE_PLUGINDIR)
xineplug_ldflags = $(LDFLAGS_NOUNDEFINED) -avoid-version -module

xinepostdir = $(XINE_PLUGINDIR)/post
vidixdir = $(XINE_PLUGINDIR)/vidix

$(XINE_LIB):
	@cd $(top_builddir)/src/xine-engine && $(MAKE)

install-data-hook:
	@if test $$MAKELEVEL -le 4 ; then \
	  if test -x "$(top_srcdir)/post-install.sh" ; then \
	    $(top_srcdir)/post-install.sh ; \
	  fi; \
	fi; \
	if test -x /usr/bin/chcon -a "`id -u`" -eq 0; 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)$(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

pass1:
	@$(MAKE) MULTIPASS_CFLAGS="$(PASS1_CFLAGS)"

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:
	@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 *~ \#* .*~ .\#*

maintainer-clean-generic:
	-@echo "This command is intended for maintainers to use;"
	-@echo "it deletes files that may require special tools to rebuild."
	-rm -f Makefile.in