Correct usage of a scratch array in X11DRV_PolyBezier.
[wine.git] / Makefile.in
blob5f90d1b594443c0a0f1f3c56cce36d4998cb8fcf
1 # This Makefile understands the following targets:
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
14 # Main target to build
16 MAIN_TARGET = @MAIN_TARGET@
18 # Directories
20 TOPSRCDIR = @top_srcdir@
21 TOPOBJDIR = .
22 SRCDIR = @srcdir@
23 VPATH = @srcdir@
24 MODULE = none
26 TOOLSUBDIRS = \
27 tools \
28 tools/wrc
30 LIBSUBDIRS = \
31 controls \
32 console \
33 dlls/advapi32 \
34 dlls/avifil32 \
35 dlls/comctl32 \
36 dlls/commdlg \
37 dlls/crtdll \
38 dlls/dciman32 \
39 dlls/dplayx \
40 dlls/imagehlp \
41 dlls/imm32 \
42 dlls/lzexpand \
43 dlls/mpr \
44 dlls/msacm \
45 dlls/msacm32 \
46 dlls/msnet32 \
47 dlls/msvideo \
48 dlls/ntdll \
49 dlls/ole32 \
50 dlls/oleaut32 \
51 dlls/olecli \
52 dlls/oledlg \
53 dlls/olesvr \
54 dlls/psapi \
55 dlls/rasapi32 \
56 dlls/shell32 \
57 dlls/sound \
58 dlls/stress \
59 dlls/tapi32 \
60 dlls/ver \
61 dlls/version \
62 dlls/win32s \
63 dlls/win87em \
64 dlls/winaspi \
65 dlls/windebug \
66 dlls/winmm \
67 dlls/winmm/wineoss \
68 dlls/wing \
69 dlls/winspool \
70 dlls/wnaspi32 \
71 files \
72 graphics \
73 graphics/enhmetafiledrv \
74 graphics/metafiledrv \
75 graphics/psdrv \
76 graphics/ttydrv \
77 graphics/win16drv \
78 if1632 \
79 library \
80 loader \
81 loader/ne \
82 loader/dos \
83 memory \
84 misc \
85 msdos \
86 multimedia \
87 objects \
88 ole \
89 relay32 \
90 resources \
91 scheduler \
92 server \
93 win32 \
94 windows \
95 windows/ttydrv
97 X11SUBDIRS = \
98 graphics/x11drv \
99 tsx11 \
100 windows/x11drv
102 EMUSUBDIRS = \
103 debugger \
104 miscemu
106 PROGSUBDIRS = libtest programs
108 DOCSUBDIRS = documentation
110 INCSUBDIRS = include
112 # Sub-directories to run make into
113 BUILDSUBDIRS = \
114 $(TOOLSUBDIRS) \
115 $(LIBSUBDIRS) \
116 $(X11SUBDIRS) \
117 $(EMUSUBDIRS) \
118 $(PROGSUBDIRS) \
119 $(DOCSUBDIRS)
121 # Sub-directories to run make depend into
122 DEPENDSUBDIRS = $(LIBSUBDIRS) $(X11SUBDIRS) $(EMUSUBDIRS) $(DOCSUBDIRS)
124 # Sub-directories to run make install into
125 INSTALLSUBDIRS = $(DOCSUBDIRS) $(INCSUBDIRS)
127 # Sub-directories to run make lint into
128 LINTSUBDIRS = $(LIBSUBDIRS) $(X11SUBDIRS) $(EMUSUBDIRS) $(DOCSUBDIRS)
130 LIBOBJS = \
131 controls/controls.o \
132 console/console.o \
133 dlls/advapi32/advapi32.o \
134 dlls/avifil32/avifil32.o \
135 dlls/comctl32/comctl32.o \
136 dlls/commdlg/commdlg.o \
137 dlls/crtdll/crtdll.o \
138 dlls/dciman32/dciman32.o \
139 dlls/dplayx/dplayx.o \
140 dlls/imagehlp/imagehlp.o \
141 dlls/imm32/imm32.o \
142 dlls/lzexpand/lzexpand.o \
143 dlls/mpr/mpr.o \
144 dlls/msacm/msacm.o \
145 dlls/msacm32/msacm32.o \
146 dlls/msnet32/msnet32.o \
147 dlls/msvideo/msvideo.o \
148 dlls/ntdll/ntdll.o \
149 dlls/ole32/ole32.o \
150 dlls/oleaut32/oleaut32.o \
151 dlls/olecli/olecli.o \
152 dlls/oledlg/oledlg.o \
153 dlls/olesvr/olesvr.o \
154 dlls/psapi/psapi.o \
155 dlls/rasapi32/rasapi32.o \
156 dlls/shell32/shell32.o \
157 dlls/sound/sound.o \
158 dlls/stress/stress.o \
159 dlls/tapi32/tapi32.o \
160 dlls/ver/ver.o \
161 dlls/version/version.o \
162 dlls/win32s/win32s.o \
163 dlls/win87em/win87em.o \
164 dlls/winaspi/winaspi.o \
165 dlls/windebug/windebug.o \
166 dlls/winmm/wineoss/wineoss.o \
167 dlls/wing/wing.o \
168 dlls/winspool/winspool.o \
169 dlls/wnaspi32/wnaspi32.o \
170 files/files.o \
171 graphics/graphics.o \
172 graphics/enhmetafiledrv/enhmetafiledrv.o \
173 graphics/metafiledrv/metafiledrv.o \
174 graphics/psdrv/psdrv.o \
175 graphics/ttydrv/ttydrv.o \
176 graphics/win16drv/win16drv.o \
177 if1632/if1632.o \
178 loader/loader.o \
179 loader/ne/ne.o \
180 loader/dos/dos.o \
181 memory/memory.o \
182 misc/misc.o \
183 msdos/msdos.o \
184 multimedia/multimedia.o \
185 objects/objects.o \
186 ole/ole.o \
187 relay32/relay32.o \
188 resources/resources.o \
189 scheduler/scheduler.o \
190 server/server.o \
191 win32/win32.o \
192 windows/windows.o \
193 windows/ttydrv/ttydrv.o
195 X11OBJS = \
196 graphics/x11drv/x11drv.o \
197 tsx11/tsx11.o \
198 windows/x11drv/x11drv.o
200 EMUOBJS = \
201 debugger/debugger.o \
202 miscemu/miscemu.o
204 LIB_TARGET = @LIB_TARGET@
206 ALT_LINK = @ALT_LINK@
208 all: Makefile Make.rules $(MAIN_TARGET)
209 @echo "Wine build complete."
211 LIBLINTS = $(LIBOBJS:.o=.ln)
212 X11LINTS = $(X11OBJS:.o=.ln)
213 EMULINTS = $(EMUOBJS:.o=.ln)
215 lint:: llib-lwine.ln $(EMULINTS)
216 $(LINT) $(ALLLINTFLAGS) -L. -lwine $(EMULINTS)
218 WINAPI_CHECK_EXTRA_FLAGS = --global
220 @MAKE_RULES@
222 Make.rules: Make.rules.in configure
223 @echo $? is newer than 'Make.rules', please rerun ./configure!
224 @exit 1
226 install:: install_$(MAIN_TARGET)
228 uninstall:: uninstall_$(MAIN_TARGET)
230 emu: wine
232 lib: $(LIBSUBDIRS) $(X11SUBDIRS) $(LIB_TARGET)
234 wine wine.sym: $(LIB_TARGET) $(EMUOBJS) $(X11OBJS) $(LIBOBJS)
235 $(CC) -o wine $(EMUOBJS) $(ALT_LINK) $(LDOPTIONS) $(X_LIBS) $(XLIB) $(LIBS)
236 nm -n wine | grep -v _compiled >wine.sym
238 libwine.a: $(LIBOBJS) $(X11OBJS)
239 $(RM) $@
240 $(AR) $@ $(LIBOBJS) $(X11OBJS)
241 $(RANLIB) $@
243 llib-lwine.ln : $(LIBLINTS) $(X11LINTS)
244 $(LINT) $(ALLLINTFLAGS) -owine $(LIBLINTS) $(X11LINTS)
246 libwine.so.1.0: $(LIBOBJS) $(X11OBJS)
247 $(LDSHARED) -o$@ $(LIBOBJS) $(X11OBJS) $(LDOPTIONS)
248 ln -sf $@ libwine.so
250 install_emu: install_lib
251 [ -d $(bindir) ] || $(MKDIR) $(bindir)
252 $(INSTALL_PROGRAM) wine $(bindir)/wine
253 $(INSTALL_PROGRAM) loader/dos/dosmod $(bindir)/dosmod
255 uninstall_emu: uninstall_lib
256 $(RM) $(bindir)/wine $(bindir)/dosmod
258 install_lib: dummy
259 [ -d $(libdir) ] || $(MKDIR) $(libdir)
260 if [ -f wine.sym ]; then $(INSTALL_DATA) wine.sym $(libdir)/wine.sym; fi
261 if [ $(LIB_TARGET) ]; then \
262 $(INSTALL_DATA) $(LIB_TARGET) $(libdir); \
263 if [ $(LIB_TARGET) = libwine.so.1.0 ]; then $(LDCONFIG); fi \
265 [ -d $(bindir) ] || $(MKDIR) $(bindir)
266 $(INSTALL_PROGRAM) windows/x11drv/wineclipsrv $(bindir)/wineclipsrv
268 uninstall_lib: dummy
269 cd $(libdir); $(RM) $(LIB_TARGET) libwine.a libwine.so wine.sym
271 $(X11OBJS) $(EMUOBJS) $(LIBOBJS): $(TOOLSUBDIRS) dummy
272 @cd `dirname $@`; $(SUBMAKE)
274 $(BUILDSUBDIRS): dummy
275 @cd $@; $(SUBMAKE)
277 $(LIBLINTS) $(X11LINTS) $(EMULINTS): dummy
278 @echo $@ | sed 's%\(.*\)\/[^\/]*%cd \1 \&\& make lint%' | sh
281 install_programs: dummy
282 @cd programs; $(SUBMAKE) install
284 uninstall_programs: dummy
285 @cd programs; $(SUBMAKE) uninstall
287 install::
288 for i in $(INSTALLSUBDIRS); do (cd $$i && $(MAKE) install) || exit 1; done
290 uninstall::
291 for i in $(INSTALLSUBDIRS); do (cd $$i && $(MAKE) uninstall) || exit 1; done
293 depend:: dummy
294 for i in $(DEPENDSUBDIRS); do (cd $$i && $(MAKE) depend) || exit 1; done
296 TAGS etags:
297 etags `find $(TOPSRCDIR) -name '*.[chS]' -print | grep -v dbgmain`
299 manpages:
300 -$(MKDIR) $(TOPOBJDIR)/documentation/man3w
301 for i in $(LIBSUBDIRS); do (cd $$i && $(MAKE) man); done
303 htmlpages:
304 -$(MKDIR) $(TOPOBJDIR)/documentation/html
305 for i in $(LIBSUBDIRS); do (cd $$i && $(MAKE) html); done
307 clean::
308 for i in $(BUILDSUBDIRS); do (cd $$i; $(MAKE) clean) || exit 1; done
309 for i in include include/bitmaps include/wine; do (cd $$i; $(RM) *.o \#*\# .#* *~ *% *.bak *.orig *.rej *.flc); done
310 $(RM) wine wine.sym libwine.a libwine.so.1.0 libwine.so TAGS .#*
312 distclean: clean
313 $(RM) config.* Make.rules include/config.h documentation/wine.man documentation/wine.conf.man
314 $(RM) `find . \( -name Makefile -o -size 0 \) -print`
316 # We depend on configure above for checks, so we better don't use this rule.
317 #configure: configure.in
318 # autoconf
320 include/config.h.in: configure.in include/acconfig.h
321 autoheader -l include
323 ### Dependencies: