makefiles: Build the dlls directly from the top-level makefile.
[wine/multimedia.git] / Makefile.in
blob422111b8590ddb5a9c760d3f279efac42d05cce1
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 # crosstest: build tests as native windows applications (requires MinGW)
9 # install-lib: install libraries needed to run applications
10 # install-dev: install development environment
11 # install: install everything
12 # uninstall: uninstall everything
13 # depend: create the dependencies
14 # ctags: create a tags file for vim and others.
15 # etags: create a TAGS file for Emacs.
16 # manpages: compile manpages for Wine API
17 # htmlpages: compile html pages for Wine API
18 # sgmlpages: compile sgml source for the Wine API Guide
19 # xmlpages: compile xml source for the Wine API Guide
21 # Directories
23 TOPSRCDIR = @top_srcdir@
24 TOPOBJDIR = .
25 SRCDIR = @srcdir@
26 VPATH = @srcdir@
27 LIBEXT = @LIBEXT@
28 MODULE = none
30 ALL_DLL_DIRS = @ALL_DLL_DIRS@
31 ALL_STATICLIB_DIRS = @ALL_STATICLIB_DIRS@
32 ALL_TEST_DIRS = @ALL_TEST_DIRS@
33 ALL_TOOL_DIRS = @ALL_TOOL_DIRS@
34 ALL_TOP_DIRS = @ALL_TOP_DIRS@
36 # Sub-directories to run make depend/clean into
37 SUBDIRS = \
38 documentation \
39 fonts \
40 include \
41 libs/port \
42 libs/wine \
43 libs/wpp \
44 loader \
45 programs \
46 server \
47 $(ALL_TOOL_DIRS) \
48 $(ALL_STATICLIB_DIRS) \
49 $(ALL_DLL_DIRS) \
50 $(ALL_TEST_DIRS)
52 # Sub-directories to run make all into
53 BUILDSUBDIRS = \
54 libs/wine \
55 $(ALL_TOOL_DIRS) \
56 $(ALL_TOP_DIRS) \
57 $(ALL_STATICLIB_DIRS) \
58 $(ALL_DLL_DIRS) \
59 $(ALL_TEST_DIRS)
61 # Sub-directories to run make install/uninstall into
62 INSTALLSUBDIRS = \
63 libs/wine \
64 $(ALL_TOOL_DIRS) \
65 $(ALL_TOP_DIRS) \
66 $(ALL_STATICLIB_DIRS) \
67 $(ALL_DLL_DIRS)
69 # Sub-directories to run make test into
70 TESTSUBDIRS = $(ALL_TEST_DIRS)
72 # Sub-directories that contain documentation
73 DOCSUBDIRS = $(ALL_DLL_DIRS)
75 # Sub-directories that don't have a makefile
76 EXTRASUBDIRS = dlls libs
78 all: wine
79 @echo "Wine build complete."
81 WINAPI_CHECK_EXTRA_FLAGS = --global
83 @MAKE_RULES@
85 $(SRCDIR)/configure: @MAINTAINER_MODE@ configure.ac aclocal.m4
86 cd $(SRCDIR) && autoconf --warnings=all
88 $(SRCDIR)/include/config.h.in: @MAINTAINER_MODE@ include/stamp-h.in
89 $(SRCDIR)/include/stamp-h.in: configure.ac aclocal.m4
90 cd $(SRCDIR) && autoheader --warnings=all
91 @echo timestamp > $@
93 config.status: configure
94 @./config.status --recheck
96 include/config.h: include/stamp-h
97 include/stamp-h: include/config.h.in config.status
98 @./config.status include/config.h include/stamp-h
100 # Installation rules
102 uninstall::
103 -rmdir $(DESTDIR)$(datadir)/wine $(DESTDIR)$(fakedlldir) $(DESTDIR)$(dlldir)
105 # Import libraries
107 STATIC_LIBS = @ALL_STATIC_LIBS@
108 IMPORT_LIBS = @ALL_IMPORT_LIBS@
110 implib: $(ALL_STATICLIB_DIRS) $(IMPORT_LIBS)
111 .PHONY: implib
113 # Dependencies between directories
115 all: $(BUILDSUBDIRS)
117 # dependencies needed to build any dll or program
118 __builddeps__: libs/port libs/wine libs/wpp $(ALL_TOOL_DIRS) include $(ALL_STATICLIB_DIRS) $(IMPORT_LIBS)
119 __buildcrossdeps__: libs/port libs/wine $(ALL_TOOL_DIRS) include $(STATIC_LIBS:.a=.cross.a) $(IMPORT_LIBS:.def=.cross.a)
120 .PHONY: __builddeps__ __buildcrossdeps__
122 programs: __builddeps__
123 loader server: libs/port libs/wine tools
124 fonts: tools
125 include: tools/widl
126 programs: $(ALL_TEST_DIRS)
127 libs/wine $(ALL_TOOL_DIRS): libs/port
128 tools/wmc tools/wrc: tools
129 tools tools/wmc tools/wrc: libs/wine
130 tools/widl tools/wmc tools/wrc: libs/wpp
132 programs/__install__ programs/__install-lib__: __builddeps__
133 fonts/__install__ fonts/__install-lib__: tools
134 include/__install__ include/__install-dev__: include
135 libs/wine/__install__ libs/wine/__install-lib__ libs/wine/__install-dev__: libs/wine
136 loader/__install__ loader/__install-lib__: libs/port libs/wine tools
137 server/__install__ server/__install-lib__: libs/port libs/wine tools
138 tools/__install__ tools/__install-lib__ tools/__install-dev__: tools
139 tools/widl/__install__ tools/widl/__install-dev__: tools/widl
140 tools/winebuild/__install__ tools/winebuild/__install-dev__: tools/winebuild
141 tools/winedump/__install__ tools/winedump/__install-dev__: tools/winedump
142 tools/winegcc/__install__ tools/winegcc/__install-dev__: tools/winegcc
143 tools/wmc/__install__ tools/wmc/__install-dev__: tools/wmc
144 tools/wrc/__install__ tools/wrc/__install-dev__: tools/wrc
146 RECURSE_TARGETS = \
147 __clean__ \
148 __depend__ \
149 __install__ \
150 __instal-dev__ \
151 __install-lib__ \
152 __uninstall__ \
153 __crosstest__
155 programs $(RECURSE_TARGETS:%=programs/%): $(MAKEDEP)
156 depend: $(MAKEDEP)
158 $(MAKEDEP): include/config.h tools/Makefile
159 @cd $(TOOLSDIR)/tools && $(MAKE) makedep$(TOOLSEXT)
161 # Misc rules
163 TAGS etags:
164 $(RM) TAGS
165 (test -d .git && git ls-files '*.[chly]' '*.idl' || find -L $(TOPSRCDIR) -name '*.[ch]' -print) | xargs etags -a
167 tags ctags:
168 $(RM) tags
169 (test -d .git && git ls-files '*.[chly]' '*.idl' || find -L $(TOPSRCDIR) -name '*.[ch]' -print) | xargs ctags -a
171 manpages htmlpages sgmlpages xmlpages: dummy
172 @cd documentation && $(MAKE) $@
174 distclean:: clean
175 $(RM) config.* configure.lineno TAGS tags include/config.h include/stamp-h
176 $(RM) -r autom4te.cache
178 .PHONY: manpages htmlpages sgmlpages xmlpages distclean
180 # Makefile rules
182 ALL_MAKEFILES = @ALL_MAKEFILES@
183 ALL_CONFIGS = Makefile $(ALL_MAKEFILES) @ALL_MAKERULES@ @ALL_SYMLINKS@
185 $(ALL_CONFIGS):
186 @./config.status $@
187 .INIT: Makefile
188 .BEGIN: Makefile
189 .MAKEFILEDEPS:
191 programs $(RECURSE_TARGETS:%=programs/%): $(ALL_MAKEFILES)
193 distclean::
194 $(RM) $(ALL_CONFIGS)
196 @ALL_MAKEFILE_DEPENDS@