Add CSIDL_PROFILES. Improved logging for non-existent CSIDL values.
[wine/multimedia.git] / Makefile.in
blob2eed954a215eebd7eed166586a7be98a6d8d2258
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 sqml 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 # Sub-directories to run make depend/clean into
30 SUBDIRS = \
31 dlls \
32 documentation \
33 include \
34 library \
35 miscemu \
36 ole \
37 programs \
38 server \
39 tools \
40 unicode
42 # Sub-directories to install for install-lib
43 INSTALLLIBSUBDIRS = \
44 documentation \
45 library \
46 miscemu \
47 programs \
48 server \
49 unicode
51 # Sub-directories to install for install-dev
52 INSTALLDEVSUBDIRS = \
53 include \
54 ole \
55 tools
57 # Sub-directories to install for both install-lib and install-dev
58 INSTALLBOTHSUBDIRS = dlls
60 INSTALLSUBDIRS = $(INSTALLDEVSUBDIRS) $(INSTALLLIBSUBDIRS)
62 # Sub-directories to run make test into
63 TESTSUBDIRS = \
64 dlls \
65 programs
67 all: Make.rules wine
68 @echo "Wine build complete."
70 WINAPI_CHECK_EXTRA_FLAGS = --global
72 @MAKE_RULES@
74 Make.rules: Make.rules.in configure
75 @echo $? is newer than 'Make.rules', please rerun ./configure!
76 @exit 1
78 wine: $(WINEWRAPPER)
79 $(RM) $@ && $(LN_S) $(WINEWRAPPER) $@
81 # Installation rules
83 install-aclocal: dummy
84 $(MKINSTALLDIRS) $(datadir)/aclocal
85 $(INSTALL_DATA) $(SRCDIR)/aclocal.m4 $(datadir)/aclocal/wine.m4
87 install-lib:: $(INSTALLLIBSUBDIRS:%=%/__install__) $(INSTALLBOTHSUBDIRS:%=%/__install-lib__)
89 install-dev:: $(INSTALLDEVSUBDIRS:%=%/__install__) $(INSTALLBOTHSUBDIRS:%=%/__install-dev__) install-aclocal
91 install:: install-lib install-dev install-aclocal
92 -$(LDCONFIG)
93 @if test -n "`LANG=C $(LDD) $(bindir)/wine|grep not.found`"; \
94 then \
95 echo "*************************************************" ; \
96 echo "*************************************************" ; \
97 echo "The installed Wine libraries will not be found!" ; \
98 echo "You can either:" ; \
99 echo " Add the line '$(libdir)' to /etc/ld.so.conf" ; \
100 echo ' export LD_LIBRARY_PATH=$$LD_LIBRARY_PATH:$(libdir)' ; \
101 echo "*************************************************" ; \
102 echo "*************************************************" ; \
105 uninstall:: $(INSTALLBOTHSUBDIRS:%=%/__uninstall__)
106 $(RM) $(datadir)/aclocal/wine.m4
107 -rmdir $(datadir)/aclocal
109 $(INSTALLBOTHSUBDIRS:%=%/__install-lib__): dummy
110 cd `dirname $@` && $(MAKE) install-lib
112 $(INSTALLBOTHSUBDIRS:%=%/__install-dev__): dummy
113 cd `dirname $@` && $(MAKE) install-dev
115 $(INSTALLBOTHSUBDIRS:%=%/__uninstall__): dummy
116 cd `dirname $@` && $(MAKE) uninstall
118 .PHONY: install-aclocal $(INSTALLBOTHSUBDIRS:%=%/__install-lib__) $(INSTALLBOTHSUBDIRS:%=%/__install-dev__) $(INSTALLBOTHSUBDIRS:%=%/__uninstall__)
120 # Dependencies between directories
122 all: $(SUBDIRS)
123 dlls: library ole tools unicode
124 server: library tools unicode
125 miscemu programs: dlls library ole tools unicode
126 tools: library unicode
128 dlls/__install-lib__ dlls/__install-dev__: library ole tools unicode
129 server/__install__: library tools unicode
130 miscemu/__install__ programs/__install__: library ole tools unicode dlls/__install-lib__
131 library/__install__: library
132 ole/__install__: ole
133 tools/__install__: tools
134 unicode/__install__: unicode
136 # Test rules
138 checklink:: $(TESTSUBDIRS:%=%/__checklink__)
139 $(CC) -o checklink $(TOPSRCDIR)/library/checklink.c && $(RM) checklink
141 check test:: wine $(TESTSUBDIRS:%=%/__test__)
143 crosstest:: $(TESTSUBDIRS:%=%/__crosstest__)
145 # Misc rules
147 TAGS etags:
148 etags `find $(TOPSRCDIR) -name '*.[ch]' -a -not -name '*.spec.c' -a -not -name '*.glue.c' -a -not -name '*.dbg.c' -print`
150 tags ctags:
151 ctags --c-types=+px `find $(TOPSRCDIR) -name '*.[ch]' -a -not -name '*.spec.c' -a -not -name '*.glue.c' -a -not -name '*.dbg.c' -print`
153 manpages:
154 $(MKINSTALLDIRS) $(TOPOBJDIR)/documentation/man3w
155 for i in $(SUBDIRS); do (cd $$i && $(MAKE) man); done
157 htmlpages:
158 $(MKINSTALLDIRS) $(TOPOBJDIR)/documentation/html
159 cd dlls && $(MAKE) doc-html
161 sgmlpages:
162 $(MKINSTALLDIRS) $(TOPOBJDIR)/documentation/api-guide
163 cd dlls && $(MAKE) doc-sgml
165 clean::
166 $(RM) wine
168 distclean: clean
169 $(RM) config.* configure.lineno TAGS tags Make.rules dlls/Makedll.rules dlls/Maketest.rules programs/Makeprog.rules include/config.h
170 $(RM) -r autom4te.cache
171 $(RM) `find . \( -name Makefile -o -size 0 \) -print`
173 .PHONY: manpages htmlpages distclean
175 ### Dependencies: