Make the MDI Window menu refreshing Windows compatible.
[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 # install-lib:     install libraries needed to run applications
9 # install-dev:     install development environment
10 # install:         install everything
11 # uninstall:       uninstall everything
12 # depend:          create the dependencies
13 # etags:           create a TAGS file for Emacs.
14 # manpages:        compile manpages for Wine API
15 # htmlpages:       compile html pages for Wine API
16 # sgmlpages:       compile sgml source for the Wine API Guide
17
18 # Directories
19
20 TOPSRCDIR = @top_srcdir@
21 TOPOBJDIR = .
22 SRCDIR    = @srcdir@
23 VPATH     = @srcdir@
24 LIBEXT    = @LIBEXT@
25 LDCONFIG  = @LDCONFIG@
26 LDD       = @LDD@
27 MODULE    = none
28
29 # Sub-directories to run make depend/clean into
30 SUBDIRS = \
31         dlls \
32         documentation \
33         include \
34         libs \
35         loader \
36         programs \
37         server \
38         tools
39
40 # Sub-directories to install for install-lib
41 INSTALLLIBSUBDIRS = \
42         documentation \
43         loader \
44         programs \
45         server
46
47 # Sub-directories to install for install-dev
48 INSTALLDEVSUBDIRS = include tools
49
50 # Sub-directories to install for both install-lib and install-dev
51 INSTALLBOTHSUBDIRS = dlls libs
52
53 INSTALLSUBDIRS = $(INSTALLDEVSUBDIRS) $(INSTALLLIBSUBDIRS)
54
55 # Sub-directories to run make test into
56 TESTSUBDIRS = \
57         dlls \
58         programs
59
60 all: Make.rules wine
61         @echo "Wine build complete."
62
63 WINAPI_CHECK_EXTRA_FLAGS = --global
64
65 @MAKE_RULES@
66
67 Make.rules: Make.rules.in configure
68         @echo $? is newer than 'Make.rules', please rerun ./configure!
69         @exit 1
70
71 wine: $(WINEWRAPPER)
72         $(RM) $@ && $(LN_S) $(WINEWRAPPER) $@
73
74 # Installation rules
75
76 install-aclocal: dummy
77         $(MKINSTALLDIRS) $(datadir)/aclocal
78         $(INSTALL_DATA) $(SRCDIR)/aclocal.m4 $(datadir)/aclocal/wine.m4
79
80 install-lib:: $(INSTALLLIBSUBDIRS:%=%/__install__) $(INSTALLBOTHSUBDIRS:%=%/__install-lib__)
81
82 install-dev:: $(INSTALLDEVSUBDIRS:%=%/__install__) $(INSTALLBOTHSUBDIRS:%=%/__install-dev__) install-aclocal
83
84 install:: install-lib install-dev install-aclocal
85         -$(LDCONFIG)
86         @if test -n "`LANG=C $(LDD) $(bindir)/wine|grep not.found`";    \
87         then                                                            \
88                 echo "*************************************************" ; \
89                 echo "*************************************************" ; \
90                 echo "The installed Wine libraries will not be found!" ; \
91                 echo "You can either:" ;                                \
92                 echo "   Add the line '$(libdir)' to /etc/ld.so.conf and run /sbin/ldconfig" ;  \
93                 echo '   export LD_LIBRARY_PATH=$$LD_LIBRARY_PATH:$(libdir)' ; \
94                 echo "*************************************************" ; \
95                 echo "*************************************************" ; \
96         fi
97
98 uninstall:: $(INSTALLBOTHSUBDIRS:%=%/__uninstall__)
99         $(RM) $(datadir)/aclocal/wine.m4
100         -rmdir $(datadir)/aclocal
101
102 .PHONY: install-aclocal
103
104 # Dependencies between directories
105
106 all: $(SUBDIRS)
107 dlls: libs tools
108 loader server: libs tools
109 programs: dlls libs tools
110 tools: libs
111
112 dlls/__install-lib__ dlls/__install-dev__: libs tools
113 libs/__install-lib__ libs/__install-dev__: libs
114 loader/__install__ server/__install__: libs tools
115 programs/__install__: libs tools dlls/__install-lib__
116 tools/__install__: tools
117
118 # Test rules
119
120 checklink:: $(TESTSUBDIRS:%=%/__checklink__)
121
122 check test:: wine $(TESTSUBDIRS:%=%/__test__)
123
124 crosstest:: $(TESTSUBDIRS:%=%/__crosstest__)
125
126 # Misc rules
127
128 TAGS etags:
129         find $(TOPSRCDIR) -name '*.[ch]' -a -not -name '*.spec.c' -a -not -name '*.dbg.c' -print | etags -
130
131 tags ctags:
132         find $(TOPSRCDIR) -name '*.[ch]' -a -not -name '*.spec.c' -a -not -name '*.dbg.c' -print | ctags --c-types=+px -L -
133
134 manpages:
135         $(MKINSTALLDIRS) $(TOPOBJDIR)/documentation/man3w
136         cd dlls && $(MAKE) man
137
138 htmlpages:
139         $(MKINSTALLDIRS) $(TOPOBJDIR)/documentation/html
140         cd dlls && $(MAKE) doc-html
141
142 sgmlpages:
143         $(MKINSTALLDIRS) $(TOPOBJDIR)/documentation/api-guide
144         cd dlls && $(MAKE) doc-sgml
145
146 clean::
147         $(RM) wine
148
149 distclean: clean
150         $(RM) config.* configure.lineno TAGS tags Make.rules dlls/Makedll.rules dlls/Maketest.rules programs/Makeprog.rules libs/Makelib.rules include/config.h
151         $(RM) -r autom4te.cache
152         $(RM) `find . \( -name Makefile -o -size 0 \) -print`
153
154 .PHONY: manpages htmlpages distclean
155
156 ### Dependencies: