makefiles: Add shell functions to generate dependencies for symlinks and rule files.
[wine/multimedia.git] / Makefile.in
blob75e74be2e28fe874ce61f7d14fba3b45d23ed4b1
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 # Sub-directories that don't have a makefile
31 EXTRASUBDIRS = dlls libs
33 all: wine
34 @echo "Wine build complete."
36 WINAPI_CHECK_EXTRA_FLAGS = --global
38 @MAKE_RULES@
40 # Rules for re-running configure
42 $(SRCDIR)/configure: @MAINTAINER_MODE@ configure.ac aclocal.m4
43 cd $(SRCDIR) && autoconf --warnings=all
45 $(SRCDIR)/include/config.h.in: @MAINTAINER_MODE@ include/stamp-h.in
46 $(SRCDIR)/include/stamp-h.in: configure.ac aclocal.m4
47 cd $(SRCDIR) && autoheader --warnings=all
48 @echo timestamp > $@
50 config.status: configure
51 @./config.status --recheck
53 include/config.h: include/stamp-h
54 include/stamp-h: include/config.h.in config.status
55 @./config.status include/config.h include/stamp-h
57 # Rules for cleaning
59 .PHONY: __clean__
60 clean:: __clean__
61 $(RM) tools/makedep$(EXEEXT)
63 distclean:: clean
64 $(RM) config.* configure.lineno TAGS tags include/config.h include/stamp-h Makefile
65 $(RM) -r autom4te.cache
67 # Dependencies between directories
69 # dependencies needed to build any dll or program
70 __tooldeps__: libs/port libs/wine libs/wpp
71 __builddeps__ __buildcrossdeps__: __tooldeps__ include
72 .PHONY: test crosstest __tooldeps__ __builddeps__ __buildcrossdeps__
74 loader server: libs/port libs/wine tools
75 fonts: tools
76 include: tools/widl
77 libs/wine: libs/port
78 tools/wmc tools/wrc: tools
79 tools tools/wmc tools/wrc: libs/wine
80 tools/widl tools/wmc tools/wrc: libs/wpp
82 $(MAKEDEP): include/config.h tools/Makefile
83 @cd $(TOOLSDIR)/tools && $(MAKE) makedep$(TOOLSEXT)
85 # Misc rules
87 TAGS etags:
88 $(RM) TAGS
89 (test -d .git && git ls-files '*.[chly]' '*.idl' || find -L $(TOPSRCDIR) -name '*.[ch]' -print) | xargs etags -a
91 tags ctags:
92 $(RM) tags
93 (test -d .git && git ls-files '*.[chly]' '*.idl' || find -L $(TOPSRCDIR) -name '*.[ch]' -print) | xargs ctags -a
95 # Makefile rules
97 .INIT: Makefile
98 .BEGIN: Makefile
99 .MAKEFILEDEPS:
101 @ALL_MAKEFILE_DEPENDS@
103 uninstall::
104 -rmdir $(DESTDIR)$(datadir)/wine $(DESTDIR)$(fakedlldir) $(DESTDIR)$(dlldir)