urlmon/tests: Added more url parsing tests.
[wine/multimedia.git] / Makefile.in
blob2f2c85b9caa14903dcd7939fd00c579fa12d4506
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_TOOL_DIRS = @ALL_TOOL_DIRS@
32 # Sub-directories to run make depend/clean into
33 SUBDIRS = \
34 dlls \
35 documentation \
36 fonts \
37 include \
38 libs/port \
39 libs/wine \
40 libs/wpp \
41 loader \
42 programs \
43 server \
44 $(ALL_TOOL_DIRS)
46 # Sub-directories to run make install/uninstall into
47 INSTALLSUBDIRS = libs/wine $(ALL_TOOL_DIRS) @ALL_TOP_DIRS@
49 # Sub-directories to run make test into
50 TESTSUBDIRS = dlls
52 # Sub-directories that don't have a makefile
53 EXTRASUBDIRS = libs
55 all: wine
56 @echo "Wine build complete."
58 WINAPI_CHECK_EXTRA_FLAGS = --global
60 @MAKE_RULES@
62 $(SRCDIR)/configure: @MAINTAINER_MODE@ configure.ac aclocal.m4
63 cd $(SRCDIR) && autoconf --warnings=all
65 $(SRCDIR)/include/config.h.in: @MAINTAINER_MODE@ include/stamp-h.in
66 $(SRCDIR)/include/stamp-h.in: configure.ac aclocal.m4
67 cd $(SRCDIR) && autoheader --warnings=all
68 @echo timestamp > $@
70 config.status: configure
71 @./config.status --recheck
73 include/config.h: include/stamp-h
74 include/stamp-h: include/config.h.in config.status
75 @./config.status include/config.h include/stamp-h
77 # Installation rules
79 uninstall::
80 -rmdir $(DESTDIR)$(datadir)/wine
82 # Dependencies between directories
84 all: $(INSTALLSUBDIRS)
86 # dependencies needed to build any dll or program
87 __builddeps__: libs/port libs/wine libs/wpp $(ALL_TOOL_DIRS) include
88 .PHONY: __builddeps__
90 dlls programs: __builddeps__
91 loader server: libs/port libs/wine tools
92 fonts: tools
93 include: tools/widl
94 programs: dlls
95 libs/wine $(ALL_TOOL_DIRS): libs/port
96 tools/wmc tools/wrc: tools
97 tools tools/wmc tools/wrc: libs/wine
98 tools/widl tools/wmc tools/wrc: libs/wpp
100 dlls/__install__ dlls/__install-lib__ dlls/__install-dev__: __builddeps__
101 programs/__install__ programs/__install-lib__: __builddeps__
102 fonts/__install__ fonts/__install-lib__: tools
103 include/__install__ include/__install-dev__: include
104 libs/wine/__install__ libs/wine/__install-lib__ libs/wine/__install-dev__: libs/wine
105 loader/__install__ loader/__install-lib__: libs/port libs/wine tools
106 server/__install__ server/__install-lib__: libs/port libs/wine tools
107 programs/__install__: dlls/__install__
108 programs/__install-lib__: dlls/__install-lib__
109 tools/__install__ tools/__install-lib__ tools/__install-dev__: tools
110 tools/widl/__install__ tools/widl/__install-dev__: tools/widl
111 tools/winebuild/__install__ tools/winebuild/__install-dev__: tools/winebuild
112 tools/winedump/__install__ tools/winedump/__install-dev__: tools/winedump
113 tools/winegcc/__install__ tools/winegcc/__install-dev__: tools/winegcc
114 tools/wmc/__install__ tools/wmc/__install-dev__: tools/wmc
115 tools/wrc/__install__ tools/wrc/__install-dev__: tools/wrc
117 RECURSE_TARGETS = \
118 __clean__ \
119 __depend__ \
120 __install__ \
121 __instal-dev__ \
122 __install-lib__ \
123 __uninstall__ \
124 __crosstest__
126 dlls $(RECURSE_TARGETS:%=dlls/%): $(MAKEDEP)
127 programs $(RECURSE_TARGETS:%=programs/%): $(MAKEDEP)
128 depend: $(MAKEDEP)
130 $(MAKEDEP): include/config.h tools/Makefile
131 @cd $(TOOLSDIR)/tools && $(MAKE) makedep$(TOOLSEXT)
133 # Test rules
135 $(TESTSUBDIRS:%=%/__test__): wine
136 $(TESTSUBDIRS:%=%/__crosstest__): __builddeps__
138 # Misc rules
140 TAGS etags:
141 $(RM) TAGS
142 (test -d .git && git ls-files '*.[chly]' '*.idl' || find -L $(TOPSRCDIR) -name '*.[ch]' -print) | xargs etags -a
144 tags ctags:
145 $(RM) tags
146 (test -d .git && git ls-files '*.[chly]' '*.idl' || find -L $(TOPSRCDIR) -name '*.[ch]' -print) | xargs ctags -a
148 manpages htmlpages sgmlpages xmlpages: dummy
149 @cd documentation && $(MAKE) $@
151 distclean:: clean
152 $(RM) config.* configure.lineno TAGS tags include/config.h include/stamp-h
153 $(RM) -r autom4te.cache
155 .PHONY: manpages htmlpages sgmlpages xmlpages distclean
157 # Makefile rules
159 ALL_MAKEFILES = @ALL_MAKEFILES@
160 ALL_CONFIGS = Makefile $(ALL_MAKEFILES) @ALL_MAKERULES@ @ALL_SYMLINKS@
162 $(ALL_CONFIGS):
163 @./config.status $@
164 .INIT: Makefile
165 .BEGIN: Makefile
166 .MAKEFILEDEPS:
168 dlls $(RECURSE_TARGETS:%=dlls/%): $(ALL_MAKEFILES)
169 programs $(RECURSE_TARGETS:%=programs/%): $(ALL_MAKEFILES)
171 distclean::
172 $(RM) $(ALL_CONFIGS)
174 @ALL_MAKEFILE_DEPENDS@