makefiles: Auto-generate the list of all subdirectories too.
[wine/multimedia.git] / Makefile.in
blobeaf9fa68de550857d795eb3f67aa0c49d4e39b67
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_DIRS = @ALL_DIRS@
31 ALL_DLL_DIRS = @ALL_DLL_DIRS@
32 ALL_INSTALL_DIRS = @ALL_INSTALL_DIRS@
33 ALL_PROGRAM_DIRS = @ALL_PROGRAM_DIRS@
34 ALL_STATICLIB_DIRS = @ALL_STATICLIB_DIRS@
35 ALL_TEST_DIRS = @ALL_TEST_DIRS@
36 ALL_TOOL_DIRS = @ALL_TOOL_DIRS@
37 ALL_TOP_DIRS = @ALL_TOP_DIRS@
39 # Sub-directories to run make depend/clean into
40 SUBDIRS = $(ALL_DIRS)
42 # Sub-directories to run make all into
43 BUILDSUBDIRS = \
44 libs/wine \
45 $(ALL_TOOL_DIRS) \
46 $(ALL_TOP_DIRS) \
47 $(ALL_STATICLIB_DIRS) \
48 $(ALL_DLL_DIRS) \
49 $(ALL_PROGRAM_DIRS) \
50 $(ALL_TEST_DIRS)
52 # Sub-directories to run make install/uninstall into
53 INSTALLSUBDIRS = \
54 libs/wine \
55 $(ALL_TOOL_DIRS) \
56 $(ALL_TOP_DIRS) \
57 $(ALL_STATICLIB_DIRS) \
58 $(ALL_DLL_DIRS) \
59 $(ALL_INSTALL_DIRS)
61 # Sub-directories to run make test into
62 TESTSUBDIRS = $(ALL_TEST_DIRS)
64 # Sub-directories that contain documentation
65 DOCSUBDIRS = $(ALL_DLL_DIRS)
67 # Sub-directories that don't have a makefile
68 EXTRASUBDIRS = dlls libs
70 all: wine
71 @echo "Wine build complete."
73 WINAPI_CHECK_EXTRA_FLAGS = --global
75 @MAKE_RULES@
77 $(SRCDIR)/configure: @MAINTAINER_MODE@ configure.ac aclocal.m4
78 cd $(SRCDIR) && autoconf --warnings=all
80 $(SRCDIR)/include/config.h.in: @MAINTAINER_MODE@ include/stamp-h.in
81 $(SRCDIR)/include/stamp-h.in: configure.ac aclocal.m4
82 cd $(SRCDIR) && autoheader --warnings=all
83 @echo timestamp > $@
85 config.status: configure
86 @./config.status --recheck
88 include/config.h: include/stamp-h
89 include/stamp-h: include/config.h.in config.status
90 @./config.status include/config.h include/stamp-h
92 # Installation rules
94 uninstall::
95 -rmdir $(DESTDIR)$(datadir)/wine $(DESTDIR)$(fakedlldir) $(DESTDIR)$(dlldir)
97 # Import libraries
99 STATIC_LIBS = @ALL_STATIC_LIBS@
100 IMPORT_LIBS = @ALL_IMPORT_LIBS@
102 implib: $(ALL_STATICLIB_DIRS) $(IMPORT_LIBS)
103 .PHONY: implib
105 # Dependencies between directories
107 all: $(BUILDSUBDIRS)
109 # dependencies needed to build any dll or program
110 __builddeps__: libs/port libs/wine libs/wpp $(ALL_TOOL_DIRS) include $(ALL_STATICLIB_DIRS) $(IMPORT_LIBS)
111 __buildcrossdeps__: libs/port libs/wine $(ALL_TOOL_DIRS) include $(STATIC_LIBS:.a=.cross.a) $(IMPORT_LIBS:.def=.cross.a)
112 .PHONY: __builddeps__ __buildcrossdeps__
114 loader server: libs/port libs/wine tools
115 fonts: tools
116 include: tools/widl
117 programs/winetest: $(ALL_TEST_DIRS)
118 libs/wine $(ALL_TOOL_DIRS): libs/port
119 tools/wmc tools/wrc: tools
120 tools tools/wmc tools/wrc: libs/wine
121 tools/widl tools/wmc tools/wrc: libs/wpp
123 fonts/__install__ fonts/__install-lib__: tools
124 include/__install__ include/__install-dev__: include
125 libs/wine/__install__ libs/wine/__install-lib__ libs/wine/__install-dev__: libs/wine
126 loader/__install__ loader/__install-lib__: libs/port libs/wine tools
127 server/__install__ server/__install-lib__: libs/port libs/wine tools
128 tools/__install__ tools/__install-lib__ tools/__install-dev__: tools
129 tools/widl/__install__ tools/widl/__install-dev__: tools/widl
130 tools/winebuild/__install__ tools/winebuild/__install-dev__: tools/winebuild
131 tools/winedump/__install__ tools/winedump/__install-dev__: tools/winedump
132 tools/winegcc/__install__ tools/winegcc/__install-dev__: tools/winegcc
133 tools/wmc/__install__ tools/wmc/__install-dev__: tools/wmc
134 tools/wrc/__install__ tools/wrc/__install-dev__: tools/wrc
136 RECURSE_TARGETS = \
137 __clean__ \
138 __depend__ \
139 __install__ \
140 __instal-dev__ \
141 __install-lib__ \
142 __uninstall__ \
143 __crosstest__
145 depend: $(MAKEDEP)
147 $(MAKEDEP): include/config.h tools/Makefile
148 @cd $(TOOLSDIR)/tools && $(MAKE) makedep$(TOOLSEXT)
150 # Misc rules
152 TAGS etags:
153 $(RM) TAGS
154 (test -d .git && git ls-files '*.[chly]' '*.idl' || find -L $(TOPSRCDIR) -name '*.[ch]' -print) | xargs etags -a
156 tags ctags:
157 $(RM) tags
158 (test -d .git && git ls-files '*.[chly]' '*.idl' || find -L $(TOPSRCDIR) -name '*.[ch]' -print) | xargs ctags -a
160 manpages htmlpages sgmlpages xmlpages: dummy
161 @cd documentation && $(MAKE) $@
163 distclean:: clean
164 $(RM) config.* configure.lineno TAGS tags include/config.h include/stamp-h
165 $(RM) -r autom4te.cache
167 .PHONY: manpages htmlpages sgmlpages xmlpages distclean
169 # Makefile rules
171 ALL_CONFIGS = Makefile $(ALL_DIRS:%=%/Makefile) @ALL_MAKERULES@ @ALL_SYMLINKS@
173 $(ALL_CONFIGS):
174 @./config.status $@
175 .INIT: Makefile
176 .BEGIN: Makefile
177 .MAKEFILEDEPS:
179 distclean::
180 $(RM) $(ALL_CONFIGS)
182 @ALL_MAKEFILE_DEPENDS@