Draw an additional white bit for each invert bit of a cursor.
[wine] / Makefile.in
1 # This Makefile understands the following targets:
2 #
3 # all (default):        build wine
4 # lib:                  build libwine
5 # clean:                remove all intermediate files
6 # distclean:            also remove all files created by configure
7 # install:              install everything
8 # uninstall:            uninstall everything
9 # depend:               create the dependencies
10 # etags:                create a TAGS file for Emacs.
11 # manpages:             compile manpages for Wine API
12 #
13
14 # Main target to build
15
16 MAIN_TARGET = @MAIN_TARGET@
17
18 # Directories
19
20 TOPSRCDIR = @top_srcdir@
21 TOPOBJDIR = .
22 SRCDIR    = @srcdir@
23 VPATH     = @srcdir@
24 MODULE    = none
25
26 LIBSUBDIRS = \
27         tools \
28         tools/wrc \
29         controls \
30         console \
31         dlls/advapi32 \
32         dlls/avifil32 \
33         dlls/comctl32 \
34         dlls/commdlg \
35         dlls/imagehlp \
36         dlls/msacm \
37         dlls/msacm32 \
38         dlls/ntdll \
39         dlls/psapi \
40         dlls/rasapi32 \
41         dlls/shell32 \
42         dlls/tapi32 \
43         dlls/ver \
44         dlls/version \
45         dlls/win87em \
46         dlls/winaspi \
47         dlls/winspool \
48         dlls/wnaspi32 \
49         files \
50         graphics \
51         graphics/enhmetafiledrv \
52         graphics/metafiledrv \
53         graphics/psdrv \
54         graphics/ttydrv \
55         graphics/win16drv \
56         if1632 \
57         library \
58         loader \
59         loader/ne \
60         loader/dos \
61         memory \
62         misc \
63         msdos \
64         multimedia \
65         objects \
66         ole \
67         relay32 \
68         resources \
69         scheduler \
70         server \
71         win32 \
72         windows \
73         windows/ttydrv
74
75 X11SUBDIRS = \
76         graphics/x11drv \
77         tsx11 \
78         windows/x11drv
79
80 EMUSUBDIRS = \
81         debugger \
82         miscemu
83
84 PROGSUBDIRS = libtest programs
85
86 DOCSUBDIRS = documentation
87
88 INCSUBDIRS = include
89
90 # Sub-directories to run make into
91 BUILDSUBDIRS = \
92         $(LIBSUBDIRS) \
93         $(X11SUBDIRS) \
94         $(EMUSUBDIRS) \
95         $(PROGSUBDIRS) \
96         $(DOCSUBDIRS)
97
98 # Sub-directories to run make depend into
99 DEPENDSUBDIRS = $(LIBSUBDIRS) $(X11SUBDIRS) $(EMUSUBDIRS) $(DOCSUBDIRS)
100
101 # Sub-directories to run make install into
102 INSTALLSUBDIRS = $(DOCSUBDIRS) $(INCSUBDIRS)
103
104 LIBOBJS = \
105         controls/controls.o \
106         console/console.o \
107         dlls/advapi32/advapi32.o \
108         dlls/avifil32/avifil32.o \
109         dlls/comctl32/comctl32.o \
110         dlls/commdlg/commdlg.o \
111         dlls/imagehlp/imagehlp.o \
112         dlls/msacm/msacm.o \
113         dlls/msacm32/msacm32.o \
114         dlls/ntdll/ntdll.o \
115         dlls/psapi/psapi.o \
116         dlls/rasapi32/rasapi32.o \
117         dlls/shell32/shell32.o \
118         dlls/tapi32/tapi32.o \
119         dlls/ver/ver.o \
120         dlls/version/version.o \
121         dlls/win87em/win87em.o \
122         dlls/winaspi/winaspi.o \
123         dlls/winspool/winspool.o \
124         dlls/wnaspi32/wnaspi32.o \
125         files/files.o \
126         graphics/graphics.o \
127         graphics/enhmetafiledrv/enhmetafiledrv.o \
128         graphics/metafiledrv/metafiledrv.o \
129         graphics/psdrv/psdrv.o \
130         graphics/ttydrv/ttydrv.o \
131         graphics/win16drv/win16drv.o \
132         if1632/if1632.o \
133         loader/loader.o \
134         loader/ne/ne.o \
135         loader/dos/dos.o \
136         memory/memory.o \
137         misc/misc.o \
138         msdos/msdos.o \
139         multimedia/multimedia.o \
140         objects/objects.o \
141         ole/ole.o \
142         relay32/relay32.o \
143         resources/resources.o \
144         scheduler/scheduler.o \
145         server/server.o \
146         win32/win32.o \
147         windows/windows.o \
148         windows/ttydrv/ttydrv.o
149
150 X11OBJS = \
151         graphics/x11drv/x11drv.o \
152         tsx11/tsx11.o \
153         windows/x11drv/x11drv.o
154
155 EMUOBJS = \
156         debugger/debugger.o \
157         miscemu/miscemu.o
158
159 LIB_TARGET  = @LIB_TARGET@
160
161 ALT_LINK    = @ALT_LINK@
162
163 all: Makefile Make.rules $(MAIN_TARGET)
164
165 @MAKE_RULES@
166
167 Make.rules: Make.rules.in configure
168         @echo $? is newer than 'Make.rules', please rerun ./configure!
169         @exit 1
170
171 install:: install_$(MAIN_TARGET)
172
173 uninstall:: uninstall_$(MAIN_TARGET)
174
175 emu: wine
176
177 lib: $(LIBSUBDIRS) $(X11SUBDIRS) $(LIB_TARGET)
178
179 wine wine.sym: $(LIB_TARGET) $(EMUOBJS) dummy
180         $(CC) -o wine $(EMUOBJS) $(ALT_LINK) $(LDOPTIONS) $(X_LIBS) $(XLIB) $(LIBS)
181         nm -n wine | grep -v _compiled >wine.sym
182         @echo "Wine build complete."
183
184 libwine.a: $(LIBOBJS) $(X11OBJS)
185         $(RM) $@
186         $(AR) $@ $(LIBOBJS) $(X11OBJS)
187         $(RANLIB) $@
188
189 libwine.so.1.0: $(LIBOBJS) $(X11OBJS)
190         $(LDSHARED) -o$@ $(LIBOBJS) $(X11OBJS) $(LDOPTIONS)
191         ln -sf $@ libwine.so
192
193 install_emu: install_lib
194         [ -d $(bindir) ] || $(MKDIR) $(bindir)
195         $(INSTALL_PROGRAM) wine $(bindir)/wine
196         $(INSTALL_PROGRAM) loader/dos/dosmod $(bindir)/dosmod
197
198 uninstall_emu: uninstall_lib
199         $(RM) $(bindir)/wine $(bindir)/dosmod
200
201 install_lib: dummy
202         [ -d $(libdir) ] || $(MKDIR) $(libdir)
203         if [ -f wine.sym ]; then $(INSTALL_DATA) wine.sym $(libdir)/wine.sym; fi
204         if [ $(LIB_TARGET) ]; then \
205             $(INSTALL_DATA) $(LIB_TARGET) $(libdir); \
206             if [ $(LIB_TARGET) = libwine.so.1.0 ]; then $(LDCONFIG); fi \
207         fi
208
209 uninstall_lib: dummy
210         cd $(libdir); $(RM) $(LIB_TARGET) libwine.a libwine.so wine.sym
211
212 $(X11OBJS) $(EMUOBJS) $(LIBOBJS): dummy
213         @cd `dirname $@`; $(SUBMAKE)
214
215 $(BUILDSUBDIRS): dummy
216         @cd $@; $(SUBMAKE)
217
218 install_programs: dummy
219         @cd programs; $(SUBMAKE) install
220
221 uninstall_programs: dummy
222         @cd programs; $(SUBMAKE) uninstall
223
224 install::
225         for i in $(INSTALLSUBDIRS); do (cd $$i && $(MAKE) install) || exit 1; done
226
227 uninstall::
228         for i in $(INSTALLSUBDIRS); do (cd $$i && $(MAKE) uninstall) || exit 1; done
229
230 depend:: dummy
231         for i in $(DEPENDSUBDIRS); do (cd $$i && $(MAKE) depend) || exit 1; done
232
233 TAGS etags:
234         etags `find $(TOPSRCDIR) -name '*.[chS]' -print | grep -v dbgmain`
235
236 manpages:
237         -$(MKDIR) $(TOPOBJDIR)/documentation/man3w
238         for i in $(LIBSUBDIRS); do (cd $$i && $(MAKE) man); done
239
240 htmlpages:
241         -$(MKDIR) $(TOPOBJDIR)/documentation/html
242         for i in $(LIBSUBDIRS); do (cd $$i && $(MAKE) html); done
243
244 clean::
245         for i in $(BUILDSUBDIRS); do (cd $$i; $(MAKE) clean) || exit 1; done
246         for i in include include/bitmaps include/wine; do (cd $$i; $(RM) *.o \#*\# .#* *~ *% *.bak *.orig *.rej *.flc); done
247         $(RM) wine wine.sym libwine.a libwine.so.1.0 libwine.so TAGS .#*
248
249 distclean: clean
250         $(RM) config.* Make.rules include/config.h documentation/wine.man
251         $(RM) `find . \( -name Makefile -o -size 0 \) -print`
252
253 # We depend on configure above for checks, so we better don't use this rule.
254 #configure: configure.in
255 #       autoconf
256
257 include/config.h.in: configure.in include/acconfig.h
258         autoheader -l include
259
260 ### Dependencies: