regedit: Turkish translation.
[wine] / Makefile.in
1 # This Makefile understands the following targets:
2 #
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 # etags:           create a TAGS file for Emacs.
15 # manpages:        compile manpages for Wine API
16 # htmlpages:       compile html pages for Wine API
17 # sgmlpages:       compile sgml source for the Wine API Guide
18
19 # Directories
20
21 TOPSRCDIR = @top_srcdir@
22 TOPOBJDIR = .
23 SRCDIR    = @srcdir@
24 VPATH     = @srcdir@
25 LIBEXT    = @LIBEXT@
26 MODULE    = none
27
28 FONTSSUBDIRS = @FONTSSUBDIRS@
29
30 # Sub-directories to run make depend/clean into
31 SUBDIRS = \
32         dlls \
33         documentation \
34         fonts \
35         include \
36         libs \
37         loader \
38         programs \
39         server \
40         tools
41
42 # Sub-directories to install for install-lib
43 INSTALLLIBSUBDIRS = \
44         $(FONTSSUBDIRS) \
45         loader \
46         programs \
47         server
48
49 # Sub-directories to install for install-dev
50 INSTALLDEVSUBDIRS = include
51
52 # Sub-directories to install for both install-lib and install-dev
53 INSTALLBOTHSUBDIRS = dlls libs tools
54
55 INSTALLSUBDIRS = $(INSTALLDEVSUBDIRS) $(INSTALLLIBSUBDIRS)
56
57 # Sub-directories to run make test into
58 TESTSUBDIRS = \
59         dlls \
60         programs
61
62 all: Make.rules wine
63         @echo "Wine build complete."
64
65 WINAPI_CHECK_EXTRA_FLAGS = --global
66
67 @MAKE_RULES@
68
69 Make.rules: Make.rules.in configure
70         @echo $? is newer than 'Make.rules', please rerun ./configure!
71         @exit 1
72
73 wine: $(WINEWRAPPER)
74         $(RM) $@ && $(LN_S) $(WINEWRAPPER) $@
75
76 # Installation rules
77
78 install-aclocal: dummy
79         $(MKINSTALLDIRS) $(datadir)/aclocal
80         $(INSTALL_DATA) $(SRCDIR)/aclocal.m4 $(datadir)/aclocal/wine.m4
81
82 install-lib:: $(INSTALLLIBSUBDIRS:%=%/__install__) $(INSTALLBOTHSUBDIRS:%=%/__install-lib__)
83
84 install-dev:: $(INSTALLDEVSUBDIRS:%=%/__install__) $(INSTALLBOTHSUBDIRS:%=%/__install-dev__) install-aclocal
85
86 install:: install-lib install-dev install-aclocal
87
88 uninstall:: $(INSTALLBOTHSUBDIRS:%=%/__uninstall__)
89         $(RM) $(datadir)/aclocal/wine.m4
90         -rmdir $(datadir)/wine $(datadir)/aclocal
91
92 .PHONY: install-aclocal
93
94 # Dependencies between directories
95
96 all: $(INSTALLSUBDIRS) $(INSTALLBOTHSUBDIRS)
97 dlls: include libs tools
98 fonts loader server: libs tools
99 programs: dlls include libs tools
100 include: libs tools
101 tools: libs
102
103 dlls/__install-lib__ dlls/__install-dev__: libs tools include
104 include/__install__: include libs tools
105 libs/__install-lib__ libs/__install-dev__: libs
106 fonts/__install__ loader/__install__ server/__install__: libs tools
107 programs/__install__: libs tools include dlls/__install-lib__
108 tools/__install-lib__ tools/__install-dev__: tools
109
110 $(SUBDIRS:%=%/__depend__): tools include
111
112 # Test rules
113
114 checklink:: $(TESTSUBDIRS:%=%/__checklink__)
115
116 check test:: $(TESTSUBDIRS:%=%/__test__)
117 $(TESTSUBDIRS:%=%/__test__): wine
118
119 crosstest:: $(TESTSUBDIRS:%=%/__crosstest__)
120 $(TESTSUBDIRS:%=%/__crosstest__): tools include
121
122 # Misc rules
123
124 TAGS etags:
125         find $(TOPSRCDIR) -name '*.[ch]' -print | etags -
126
127 tags ctags:
128         find $(TOPSRCDIR) -name '*.[ch]' -print | ctags --c-types=+px -L -
129
130 manpages htmlpages sgmlpages:
131         cd documentation && $(MAKE) $@
132
133 clean::
134         $(RM) wine
135
136 distclean: clean
137         $(RM) config.* configure.lineno TAGS tags Make.rules dlls/Makedll.rules dlls/Makeimplib.rules dlls/Maketest.rules programs/Makeprog.rules libs/Makelib.rules include/config.h
138         $(RM) -r autom4te.cache
139         $(RM) `find . \( -name Makefile -o -size 0 \) -print`
140
141 .PHONY: manpages htmlpages sgmlpages distclean
142
143 ### Dependencies: