Complete implementation for DrawStatusText{A,W}.
[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:         install everything
9 # uninstall:       uninstall everything
10 # depend:          create the dependencies
11 # etags:           create a TAGS file for Emacs.
12 # manpages:        compile manpages for Wine API
13 #
14
15 # Directories
16
17 TOPSRCDIR = @top_srcdir@
18 TOPOBJDIR = .
19 SRCDIR    = @srcdir@
20 VPATH     = @srcdir@
21 LIBEXT    = @LIBEXT@
22 LDCONFIG  = @LDCONFIG@
23 MODULE    = wine
24 IMPORTS   = ntdll.dll
25
26 # Stand-alone programs
27 PROGRAMS = \
28         server/wineserver
29
30 # Programs that link with libwine
31 LIBPROGRAMS = \
32         debugger/winedbg \
33         programs/wineconsole/wineconsole
34
35 # Libraries (not dlls) to build
36 LIBRARIES = \
37         library/libwine.$(LIBEXT) \
38         ole/libwine_uuid.a \
39         tsx11/libwine_tsx11.$(LIBEXT) \
40         unicode/libwine_unicode.$(LIBEXT)
41
42 # Dlls that we need to link against (should go away)
43 LINKABLE_DLLS = winspool.drv user32.dll gdi32.dll kernel32.dll ntdll.dll
44
45 # Libraries symlinks to create at the top level
46 LIBSYMLINKS = \
47         $(LINKABLE_DLLS:%=lib%.$(LIBEXT)) \
48         libwine.$(LIBEXT) \
49         libwine_tsx11.$(LIBEXT) \
50         libwine_unicode.$(LIBEXT) \
51         libwine_uuid.a
52
53 # Sub-directories to run make depend/clean into
54 SUBDIRS = \
55         $(INSTALLSUBDIRS) \
56         libtest \
57         miscemu \
58         programs
59
60 # Sub-directories to run make install into
61 INSTALLSUBDIRS = \
62         debugger \
63         dlls \
64         documentation \
65         include \
66         library \
67         ole \
68         programs/wineconsole \
69         server \
70         tools \
71         tsx11 \
72         unicode
73
74 # Sub-directories to run make test into
75 TESTSUBDIRS = \
76         programs/winetest \
77         dlls
78
79 EMUOBJS = \
80         miscemu/miscemu.o
81
82 all: Make.rules $(PROGRAMS) $(LIBPROGRAMS) $(LIBSYMLINKS) wine
83         @echo "Wine build complete."
84
85 WINAPI_CHECK_EXTRA_FLAGS = --global
86
87 @MAKE_RULES@
88
89 Make.rules: Make.rules.in configure
90         @echo $? is newer than 'Make.rules', please rerun ./configure!
91         @exit 1
92
93 wine: $(EMUOBJS) $(IMPORTS:%=lib%.$(LIBEXT)) library/libwine.$(LIBEXT) unicode/libwine_unicode.$(LIBEXT)
94         $(CC) -o wine $(EMUOBJS) -L. $(IMPORTS:%=-l%) $(LIBWINE) $(LIBUNICODE) $(LIBS) $(LDFLAGS)
95
96 install_wine: dummy
97         [ -d $(bindir) ] || $(MKDIR) $(bindir)
98         $(INSTALL_PROGRAM) wine $(bindir)/wine
99
100 install:: all install_wine $(INSTALLSUBDIRS:%=%/__install__)
101         -$(LDCONFIG)
102
103 uninstall:: $(INSTALLSUBDIRS:%=%/__uninstall__)
104         cd $(bindir) && $(RM) wine
105
106 $(EMUOBJS) $(PROGRAMS) $(LIBPROGRAMS) $(LIBRARIES): dummy
107         @cd `dirname $@` && $(MAKE) `basename $@`
108
109 # Symlinks to libraries that we need to link against
110
111 libwine.$(LIBEXT): library/libwine.$(LIBEXT)
112         $(RM) $@ && $(LN_S) library/libwine.$(LIBEXT) $@
113
114 libwine_tsx11.$(LIBEXT): tsx11/libwine_tsx11.$(LIBEXT)
115         $(RM) $@ && $(LN_S) tsx11/libwine_tsx11.$(LIBEXT) $@
116
117 libwine_unicode.$(LIBEXT): unicode/libwine_unicode.$(LIBEXT)
118         $(RM) $@ && $(LN_S) unicode/libwine_unicode.$(LIBEXT) $@
119
120 libwine_uuid.a: ole/libwine_uuid.a
121         $(RM) $@ && $(LN_S) ole/libwine_uuid.a $@
122
123 libwinspool.drv.$(LIBEXT): dlls/winspool.drv$(DLLEXT)
124         $(RM) $@ && $(LN_S) dlls/winspool.drv$(DLLEXT) $@
125
126 libuser32.dll.$(LIBEXT): dlls/user32.dll$(DLLEXT)
127         $(RM) $@ && $(LN_S) dlls/user32.dll$(DLLEXT) $@
128
129 libgdi32.dll.$(LIBEXT): dlls/gdi32.dll$(DLLEXT)
130         $(RM) $@ && $(LN_S) dlls/gdi32.dll$(DLLEXT) $@
131
132 libkernel32.dll.$(LIBEXT): dlls/kernel32.dll$(DLLEXT)
133         $(RM) $@ && $(LN_S) dlls/kernel32.dll$(DLLEXT) $@
134
135 libntdll.dll.$(LIBEXT): dlls/ntdll.dll$(DLLEXT)
136         $(RM) $@ && $(LN_S) dlls/ntdll.dll$(DLLEXT) $@
137
138 $(LINKABLE_DLLS:%=dlls/%$(DLLEXT)): dlls
139
140 # Dependencies between directories
141
142 $(PROGRAMS): tools
143
144 $(EMUOBJS): tools dlls
145
146 $(LIBPROGRAMS): tools dlls wine
147
148 server tools: unicode/libwine_unicode.$(LIBEXT)
149
150 dlls: tools $(LIBRARIES)
151
152 checklink::
153         $(CC) -o checklink $(TOPSRCDIR)/library/checklink.c $(LIBWINE) $(LIBS) && $(RM) checklink
154
155 install_programs: dummy
156         @cd programs && $(MAKE) install
157
158 uninstall_programs: dummy
159         @cd programs && $(MAKE) uninstall
160
161 checklink::
162         @cd dlls && $(MAKE) checklink
163         @cd debugger && $(MAKE) checklink
164
165 test_environment: dummy
166         @cd programs/winetest && $(MAKE) all
167
168 $(TESTSUBDIRS:%=%/__test__): test_environment
169
170 check test:: $(TESTSUBDIRS:%=%/__test__)
171
172 TAGS etags:
173         etags `find $(TOPSRCDIR) -name '*.[chS]' -print | grep -v dbgmain`
174
175 manpages:
176         -$(MKDIR) $(TOPOBJDIR)/documentation/man3w
177         for i in $(SUBDIRS); do (cd $$i && $(MAKE) man); done
178
179 htmlpages:
180         -$(MKDIR) $(TOPOBJDIR)/documentation/html
181         for i in $(SUBDIRS); do (cd $$i && $(MAKE) html); done
182
183 clean::
184         $(RM) wine
185
186 distclean: clean
187         $(RM) config.* TAGS Make.rules dlls/Makedll.rules programs/Makeprog.rules include/config.h
188         $(RM) -r autom4te.cache
189         $(RM) `find . \( -name Makefile -o -size 0 \) -print`
190
191 ### Dependencies: