Added a couple of prototypes.
[wine/multimedia.git] / Makefile.in
blob636507ee1a647cc87abbae0b072f94a9a5bb3367
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@
17 LIB_TARGET = @LIB_TARGET@
18 LIB_TYPE = @LIB_TYPE@
19 ALT_LINK = @ALT_LINK@
21 # Directories
23 TOPSRCDIR = @top_srcdir@
24 TOPOBJDIR = .
25 SRCDIR = @srcdir@
26 VPATH = @srcdir@
27 MODULE = wine
28 SOVERSION = 1.0
30 TOOLSUBDIRS = \
31 tools \
32 tools/wrc
34 LIBSUBDIRS = \
35 controls \
36 console \
37 dlls/advapi32 \
38 dlls/avifil32 \
39 dlls/comctl32 \
40 dlls/commdlg \
41 dlls/crtdll \
42 dlls/dciman32 \
43 dlls/display \
44 dlls/dplayx \
45 dlls/dsound \
46 dlls/icmp \
47 dlls/imagehlp \
48 dlls/imm32 \
49 dlls/lzexpand \
50 dlls/mouse \
51 dlls/mpr \
52 dlls/msacm \
53 dlls/msacm32 \
54 dlls/msnet32 \
55 dlls/msvideo \
56 dlls/ntdll \
57 dlls/odbc32 \
58 dlls/ole32 \
59 dlls/oleaut32 \
60 dlls/olecli \
61 dlls/oledlg \
62 dlls/olesvr \
63 dlls/psapi \
64 dlls/rasapi32 \
65 dlls/setupx \
66 dlls/shell32 \
67 dlls/sound \
68 dlls/stress \
69 dlls/tapi32 \
70 dlls/version \
71 dlls/win32s \
72 dlls/win87em \
73 dlls/winaspi \
74 dlls/windebug \
75 dlls/wing \
76 dlls/winmm \
77 dlls/winmm/mcianim \
78 dlls/winmm/mciavi \
79 dlls/winmm/mcicda \
80 dlls/winmm/mciseq \
81 dlls/winmm/mciwave \
82 dlls/winmm/midimap \
83 dlls/winmm/wavemap \
84 dlls/winmm/wineoss \
85 dlls/winsock \
86 dlls/winspool \
87 dlls/wnaspi32 \
88 files \
89 graphics \
90 graphics/enhmetafiledrv \
91 graphics/metafiledrv \
92 graphics/psdrv \
93 graphics/ttydrv \
94 graphics/win16drv \
95 if1632 \
96 library \
97 loader \
98 loader/ne \
99 loader/dos \
100 memory \
101 misc \
102 msdos \
103 objects \
104 ole \
105 relay32 \
106 resources \
107 scheduler \
108 win32 \
109 windows \
110 windows/ttydrv
112 X11SUBDIRS = \
113 graphics/x11drv \
114 tsx11 \
115 windows/x11drv
117 EMUSUBDIRS = \
118 debugger \
119 miscemu \
120 server
122 PROGSUBDIRS = libtest programs
124 DOCSUBDIRS = documentation
126 INCSUBDIRS = include
128 PROGRAMS = \
129 loader/dos/dosmod \
130 server/wineserver \
131 windows/x11drv/wineclipsrv
133 # Sub-directories to run make into
134 BUILDSUBDIRS = \
135 $(TOOLSUBDIRS) \
136 $(LIBSUBDIRS) \
137 $(X11SUBDIRS) \
138 $(EMUSUBDIRS) \
139 $(PROGSUBDIRS) \
140 $(DOCSUBDIRS)
142 # Sub-directories to run make depend into
143 DEPENDSUBDIRS = $(LIBSUBDIRS) $(X11SUBDIRS) $(EMUSUBDIRS) $(DOCSUBDIRS)
145 # Sub-directories to run make install into
146 INSTALLSUBDIRS = $(DOCSUBDIRS) $(INCSUBDIRS)
148 # Sub-directories to run make lint into
149 LINTSUBDIRS = $(LIBSUBDIRS) $(X11SUBDIRS) $(EMUSUBDIRS) $(DOCSUBDIRS)
151 # Extra sub-directories to clean
152 CLEANSUBDIRS = dlls include include/bitmaps include/wine
154 LIBOBJS = \
155 controls/controls.o \
156 console/console.o \
157 dlls/advapi32/advapi32.o \
158 dlls/avifil32/avifil32.o \
159 dlls/comctl32/comctl32.o \
160 dlls/commdlg/commdlg.o \
161 dlls/crtdll/crtdll.o \
162 dlls/dciman32/dciman32.o \
163 dlls/display/display.o \
164 dlls/dplayx/dplayx.o \
165 dlls/dsound/dsound.o \
166 dlls/icmp/icmp.o \
167 dlls/imagehlp/imagehlp.o \
168 dlls/imm32/imm32.o \
169 dlls/lzexpand/lzexpand.o \
170 dlls/mouse/mouse.o \
171 dlls/mpr/mpr.o \
172 dlls/msacm/msacm.o \
173 dlls/msacm32/msacm32.o \
174 dlls/msnet32/msnet32.o \
175 dlls/msvideo/msvideo.o \
176 dlls/ntdll/ntdll.o \
177 dlls/odbc32/odbc32.o \
178 dlls/ole32/ole32.o \
179 dlls/oleaut32/oleaut32.o \
180 dlls/olecli/olecli.o \
181 dlls/oledlg/oledlg.o \
182 dlls/olesvr/olesvr.o \
183 dlls/psapi/psapi.o \
184 dlls/rasapi32/rasapi32.o \
185 dlls/setupx/setupx.o \
186 dlls/shell32/shell32.o \
187 dlls/sound/sound.o \
188 dlls/stress/stress.o \
189 dlls/tapi32/tapi32.o \
190 dlls/version/version.o \
191 dlls/win32s/win32s.o \
192 dlls/win87em/win87em.o \
193 dlls/winaspi/winaspi.o \
194 dlls/windebug/windebug.o \
195 dlls/wing/wing.o \
196 dlls/winmm/winmm.o \
197 dlls/winmm/mcianim/mcianim.drv.o \
198 dlls/winmm/mciavi/mciavi.drv.o \
199 dlls/winmm/mcicda/mcicda.drv.o \
200 dlls/winmm/mciseq/mciseq.drv.o \
201 dlls/winmm/mciwave/mciwave.drv.o \
202 dlls/winmm/midimap/midimap.drv.o \
203 dlls/winmm/wavemap/msacm.drv.o \
204 dlls/winmm/wineoss/wineoss.drv.o \
205 dlls/winsock/winsock.o \
206 dlls/winspool/winspool.o \
207 dlls/wnaspi32/wnaspi32.o \
208 files/files.o \
209 graphics/graphics.o \
210 graphics/enhmetafiledrv/enhmetafiledrv.o \
211 graphics/metafiledrv/metafiledrv.o \
212 graphics/psdrv/psdrv.o \
213 graphics/ttydrv/ttydrv.o \
214 graphics/win16drv/win16drv.o \
215 if1632/if1632.o \
216 loader/loader.o \
217 loader/ne/ne.o \
218 loader/dos/dos.o \
219 memory/memory.o \
220 misc/misc.o \
221 msdos/msdos.o \
222 objects/objects.o \
223 ole/ole.o \
224 relay32/relay32.o \
225 resources/resources.o \
226 scheduler/scheduler.o \
227 win32/win32.o \
228 windows/windows.o \
229 windows/ttydrv/ttydrv.o
231 X11OBJS = \
232 graphics/x11drv/x11drv.o \
233 tsx11/tsx11.o \
234 windows/x11drv/x11drv.o
236 EMUOBJS = \
237 debugger/debugger.o \
238 miscemu/miscemu.o
240 EXTRA_OBJS = $(LIBOBJS) $(X11OBJS)
242 all: Makefile Make.rules $(PROGRAMS) $(MAIN_TARGET)
243 @echo "Wine build complete."
245 LIBLINTS = $(LIBOBJS:.o=.ln)
246 X11LINTS = $(X11OBJS:.o=.ln)
247 EMULINTS = $(EMUOBJS:.o=.ln)
249 lint:: llib-lwine.ln $(EMULINTS)
250 $(LINT) $(ALLLINTFLAGS) -L. -lwine $(EMULINTS)
252 WINAPI_CHECK_EXTRA_FLAGS = --global
254 @MAKE_RULES@
256 Make.rules: Make.rules.in configure
257 @echo $? is newer than 'Make.rules', please rerun ./configure!
258 @exit 1
260 install:: install_$(MAIN_TARGET)
262 emu: wine
264 lib: $(LIBSUBDIRS) $(X11SUBDIRS) $(LIB_TARGET)
266 wine wine.sym: $(LIB_TARGET) $(EMUOBJS) $(X11OBJS) $(LIBOBJS)
267 $(CC) -o wine $(EMUOBJS) $(ALT_LINK) $(LDOPTIONS) $(X_LIBS) $(XLIB) $(LIBS)
268 nm -n wine | grep -v _compiled >wine.sym
270 llib-lwine.ln : $(LIBLINTS) $(X11LINTS)
271 $(LINT) $(ALLLINTFLAGS) -owine $(LIBLINTS) $(X11LINTS)
273 install_emu: install_lib
274 $(INSTALL_PROGRAM) wine $(bindir)/wine
276 install_lib: install_$(LIB_TYPE)
278 install_nolib: dummy
279 [ -d $(libdir) ] || $(MKDIR) $(libdir)
280 if [ -f wine.sym ]; then $(INSTALL_DATA) wine.sym $(libdir)/wine.sym; fi
281 [ -d $(bindir) ] || $(MKDIR) $(bindir)
282 $(INSTALL_PROGRAM) server/wineserver $(bindir)/wineserver
283 $(INSTALL_PROGRAM) windows/x11drv/wineclipsrv $(bindir)/wineclipsrv
284 $(INSTALL_PROGRAM) loader/dos/dosmod $(bindir)/dosmod
286 install_dll: install_nolib
287 $(INSTALL_PROGRAM) $(LIB_TARGET) $(libdir)
288 $(LDCONFIG) || (cd $(libdir) ; $(RM) libwine.so ; $(LN_S) $(LIB_TARGET) libwine.so)
290 install_static: install_nolib
291 $(INSTALL_DATA) $(LIB_TARGET) $(libdir)
293 uninstall::
294 cd $(libdir) && $(RM) $(LIB_TARGET) libwine.a libwine.so wine.sym
295 cd $(bindir) && $(RM) wine wineserver wineclipsrv dosmod
297 $(X11OBJS) $(EMUOBJS) $(LIBOBJS) $(PROGRAMS): $(TOOLSUBDIRS) dummy
298 @cd `dirname $@` && $(MAKE) `basename $@`
300 $(BUILDSUBDIRS): dummy
301 @cd $@ && $(MAKE)
303 $(LIBLINTS) $(X11LINTS) $(EMULINTS): dummy
304 @echo $@ | sed 's%\(.*\)\/[^\/]*%cd \1 \&\& make lint%' | sh
306 install_programs: dummy
307 @cd programs && $(MAKE) install
309 uninstall_programs: dummy
310 @cd programs && $(MAKE) uninstall
312 install::
313 for i in $(INSTALLSUBDIRS); do (cd $$i && $(MAKE) install) || exit 1; done
315 uninstall::
316 for i in $(INSTALLSUBDIRS); do (cd $$i && $(MAKE) uninstall) || exit 1; done
318 depend:: dummy
319 for i in $(DEPENDSUBDIRS); do (cd $$i && $(MAKE) depend) || exit 1; done
321 TAGS etags:
322 etags `find $(TOPSRCDIR) -name '*.[chS]' -print | grep -v dbgmain`
324 manpages:
325 -$(MKDIR) $(TOPOBJDIR)/documentation/man3w
326 for i in $(LIBSUBDIRS); do (cd $$i && $(MAKE) man); done
328 htmlpages:
329 -$(MKDIR) $(TOPOBJDIR)/documentation/html
330 for i in $(LIBSUBDIRS); do (cd $$i && $(MAKE) html); done
332 clean::
333 for i in $(BUILDSUBDIRS); do (cd $$i; $(MAKE) clean) || exit 1; done
334 for i in $(CLEANSUBDIRS); do (cd $$i; $(RM) *.o \#*\# .#* *~ *% *.bak *.orig *.rej *.flc); done
335 $(RM) wine wine.sym libwine.so.1.0 TAGS .#*
337 distclean: clean
338 $(RM) config.* Make.rules include/config.h documentation/wine.man documentation/wine.conf.man
339 $(RM) `find . \( -name Makefile -o -size 0 \) -print`
341 # We depend on configure above for checks, so we better don't use this rule.
342 #configure: configure.in
343 # autoconf
345 include/config.h.in: configure.in include/acconfig.h
346 autoheader -l include
348 ### Dependencies: