If an animation is already playing do not restart it.
[wine/multimedia.git] / Makefile.in
blob8b2eff12687c603f372f4f003fe8ac5acc4d85b9
1 # This Makefile understands the following targets:
3 # all (default): build wine
4 # clean: remove all intermediate files
5 # distclean: also remove all files created by configure
6 # test: run tests
7 # testclean: clean test results to force running all tests again
8 # install-lib: install libraries needed to run applications
9 # install-dev: install development environment
10 # install: install everything
11 # uninstall: uninstall everything
12 # depend: create the dependencies
13 # etags: create a TAGS file for Emacs.
14 # manpages: compile manpages for Wine API
15 # htmlpages: compile html pages for Wine API
16 # sgmlpages: compile sgml source for the Wine API Guide
18 # Directories
20 TOPSRCDIR = @top_srcdir@
21 TOPOBJDIR = .
22 SRCDIR = @srcdir@
23 VPATH = @srcdir@
24 LIBEXT = @LIBEXT@
25 LDCONFIG = @LDCONFIG@
26 LDD = @LDD@
27 MODULE = none
29 FONTSSUBDIRS = @FONTSSUBDIRS@
31 # Sub-directories to run make depend/clean into
32 SUBDIRS = \
33 dlls \
34 documentation \
35 fonts \
36 include \
37 libs \
38 loader \
39 programs \
40 server \
41 tools
43 # Sub-directories to install for install-lib
44 INSTALLLIBSUBDIRS = \
45 documentation \
46 $(FONTSSUBDIRS) \
47 loader \
48 programs \
49 server
51 # Sub-directories to install for install-dev
52 INSTALLDEVSUBDIRS = include tools
54 # Sub-directories to install for both install-lib and install-dev
55 INSTALLBOTHSUBDIRS = dlls libs
57 INSTALLSUBDIRS = $(INSTALLDEVSUBDIRS) $(INSTALLLIBSUBDIRS)
59 # Sub-directories to run make test into
60 TESTSUBDIRS = \
61 dlls \
62 programs
64 all: Make.rules wine
65 @echo "Wine build complete."
67 WINAPI_CHECK_EXTRA_FLAGS = --global
69 @MAKE_RULES@
71 Make.rules: Make.rules.in configure
72 @echo $? is newer than 'Make.rules', please rerun ./configure!
73 @exit 1
75 wine: $(WINEWRAPPER)
76 $(RM) $@ && $(LN_S) $(WINEWRAPPER) $@
78 # Installation rules
80 install-aclocal: dummy
81 $(MKINSTALLDIRS) $(datadir)/aclocal
82 $(INSTALL_DATA) $(SRCDIR)/aclocal.m4 $(datadir)/aclocal/wine.m4
84 install-lib:: $(INSTALLLIBSUBDIRS:%=%/__install__) $(INSTALLBOTHSUBDIRS:%=%/__install-lib__)
86 install-dev:: $(INSTALLDEVSUBDIRS:%=%/__install__) $(INSTALLBOTHSUBDIRS:%=%/__install-dev__) install-aclocal
88 install:: install-lib install-dev install-aclocal
89 -$(LDCONFIG)
90 @if test -n "`LANG=C $(LDD) $(bindir)/wine|grep not.found`"; \
91 then \
92 echo "*************************************************" ; \
93 echo "*************************************************" ; \
94 echo "The installed Wine libraries will not be found!" ; \
95 echo "You can either:" ; \
96 echo " Add the line '$(libdir)' to /etc/ld.so.conf and run /sbin/ldconfig" ; \
97 echo ' export LD_LIBRARY_PATH=$$LD_LIBRARY_PATH:$(libdir)' ; \
98 echo "*************************************************" ; \
99 echo "*************************************************" ; \
102 uninstall:: $(INSTALLBOTHSUBDIRS:%=%/__uninstall__)
103 $(RM) $(datadir)/aclocal/wine.m4
104 -rmdir $(datadir)/wine $(datadir)/aclocal
106 .PHONY: install-aclocal
108 # Dependencies between directories
110 all: $(INSTALLSUBDIRS) $(INSTALLBOTHSUBDIRS)
111 dlls: include libs tools
112 fonts loader server: libs tools
113 programs: dlls include libs tools
114 include: libs tools
115 tools: libs
117 dlls/__install-lib__ dlls/__install-dev__: libs tools include/__install__
118 include/__install__: include libs tools
119 libs/__install-lib__ libs/__install-dev__: libs
120 fonts/__install__ loader/__install__ server/__install__: libs tools
121 programs/__install__: libs tools include/__install__ dlls/__install-lib__
122 tools/__install__: tools
124 # Dependencies rules
126 $(SUBDIRS:%=%/__depend__): idl
128 idl: $(WIDL) dummy
129 cd include && $(MAKE) all
131 $(WIDL): $(TOOLSDIR)/libs/libwpp.a $(TOOLSDIR)/libs/libwine_port.a
132 cd $(TOOLSDIR)/tools/widl && $(MAKE) `basename $@`
134 $(TOOLSDIR)/libs/libwpp.a $(TOOLSDIR)/libs/libwine_port.a:
135 cd $(TOOLSDIR)/libs && $(MAKE) `basename $@`
137 .PHONY: idl
139 # Test rules
141 checklink:: $(TESTSUBDIRS:%=%/__checklink__)
143 check test:: wine $(TESTSUBDIRS:%=%/__test__)
145 crosstest:: tools $(TESTSUBDIRS:%=%/__crosstest__)
147 # Misc rules
149 TAGS etags:
150 find $(TOPSRCDIR) -name '*.[ch]' -a -not -name '*.spec.c' -a -not -name '*.dbg.c' -print | etags -
152 tags ctags:
153 find $(TOPSRCDIR) -name '*.[ch]' -a -not -name '*.spec.c' -a -not -name '*.dbg.c' -print | ctags --c-types=+px -L -
155 manpages:
156 $(MKINSTALLDIRS) $(TOPOBJDIR)/documentation/man3w
157 cd dlls && $(MAKE) man
159 htmlpages:
160 $(MKINSTALLDIRS) $(TOPOBJDIR)/documentation/html
161 cd dlls && $(MAKE) doc-html
163 sgmlpages:
164 $(MKINSTALLDIRS) $(TOPOBJDIR)/documentation/api-guide
165 cd dlls && $(MAKE) doc-sgml
167 clean::
168 $(RM) wine
170 distclean: clean
171 $(RM) config.* configure.lineno TAGS tags Make.rules dlls/Makedll.rules dlls/Maketest.rules programs/Makeprog.rules libs/Makelib.rules include/config.h
172 $(RM) -r autom4te.cache
173 $(RM) `find . \( -name Makefile -o -size 0 \) -print`
175 .PHONY: manpages htmlpages distclean
177 ### Dependencies: