Fixed off-by-one ordinals in MPR.
[wine/multimedia.git] / Makefile.in
blob9f7a9356c63f232bfd52e20ddde5f8ebe5186c6b
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 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/winaspi \
46 dlls/wnaspi32 \
47 files \
48 graphics \
49 graphics/enhmetafiledrv \
50 graphics/metafiledrv \
51 graphics/psdrv \
52 graphics/ttydrv \
53 ipc \
54 library \
55 loader \
56 loader/ne \
57 loader/dos \
58 memory \
59 misc \
60 msdos \
61 multimedia \
62 objects \
63 ole \
64 relay32 \
65 resources \
66 scheduler \
67 server \
68 win32 \
69 windows \
70 windows/ttydrv
72 X11SUBDIRS = \
73 graphics/x11drv \
74 tsx11 \
75 windows/x11drv
77 EMUSUBDIRS = \
78 debugger \
79 graphics/win16drv \
80 if1632 \
81 miscemu
83 PROGSUBDIRS = libtest programs
85 DOCSUBDIRS = documentation
87 INCSUBDIRS = include
89 # Sub-directories to run make into
90 BUILDSUBDIRS = \
91 $(LIBSUBDIRS) \
92 $(X11SUBDIRS) \
93 $(EMUSUBDIRS) \
94 $(PROGSUBDIRS) \
95 $(DOCSUBDIRS)
97 # Sub-directories to run make depend into
98 DEPENDSUBDIRS = $(LIBSUBDIRS) $(X11SUBDIRS) $(EMUSUBDIRS) $(DOCSUBDIRS)
100 # Sub-directories to run make install into
101 INSTALLSUBDIRS = $(DOCSUBDIRS) $(INCSUBDIRS)
103 LIBOBJS = \
104 controls/controls.o \
105 console/console.o \
106 dlls/advapi32/advapi32.o \
107 dlls/avifil32/avifil32.o \
108 dlls/comctl32/comctl32.o \
109 dlls/commdlg/commdlg.o \
110 dlls/imagehlp/imagehlp.o \
111 dlls/msacm/msacm.o \
112 dlls/msacm32/msacm32.o \
113 dlls/ntdll/ntdll.o \
114 dlls/psapi/psapi.o \
115 dlls/rasapi32/rasapi32.o \
116 dlls/shell32/shell32.o \
117 dlls/tapi32/tapi32.o \
118 dlls/ver/ver.o \
119 dlls/version/version.o \
120 dlls/winaspi/winaspi.o \
121 dlls/wnaspi32/wnaspi32.o \
122 files/files.o \
123 graphics/graphics.o \
124 graphics/enhmetafiledrv/enhmetafiledrv.o \
125 graphics/metafiledrv/metafiledrv.o \
126 graphics/psdrv/psdrv.o \
127 graphics/ttydrv/ttydrv.o \
128 ipc/ipc.o \
129 loader/loader.o \
130 loader/ne/ne.o \
131 loader/dos/dos.o \
132 memory/memory.o \
133 misc/misc.o \
134 msdos/msdos.o \
135 multimedia/multimedia.o \
136 objects/objects.o \
137 ole/ole.o \
138 relay32/relay32.o \
139 resources/resources.o \
140 scheduler/scheduler.o \
141 server/server.o \
142 win32/win32.o \
143 windows/windows.o \
144 windows/ttydrv/ttydrv.o
146 X11OBJS = \
147 graphics/x11drv/x11drv.o \
148 tsx11/tsx11.o \
149 windows/x11drv/x11drv.o
151 EMUOBJS = \
152 debugger/debugger.o \
153 graphics/win16drv/win16drv.o \
154 if1632/if1632.o \
155 miscemu/miscemu.o
157 LIB_TARGET = @LIB_TARGET@
159 ALT_LINK = @ALT_LINK@
161 all: Makefile Make.rules $(MAIN_TARGET)
163 @MAKE_RULES@
165 Make.rules: Make.rules.in configure
166 @echo $? is newer than 'Make.rules', please rerun ./configure!
167 @exit 1
169 install:: install_$(MAIN_TARGET)
171 uninstall:: uninstall_$(MAIN_TARGET)
173 emu: wine
175 lib: $(LIBSUBDIRS) $(X11SUBDIRS) $(LIB_TARGET)
177 wine wine.sym: $(LIBSUBDIRS) $(X11SUBDIRS) $(LIB_TARGET) $(EMUSUBDIRS) dummy
178 $(CC) -o wine $(EMUOBJS) $(ALT_LINK) $(LDOPTIONS) $(X_LIBS) $(XLIB) $(LIBS)
179 nm -n wine | grep -v _compiled >wine.sym
180 @echo "Wine build complete."
182 libwine.a: $(LIBOBJS) $(X11OBJS)
183 $(RM) $@
184 $(AR) $@ $(LIBOBJS) $(X11OBJS)
185 $(RANLIB) $@
187 libwine.so.1.0: $(LIBOBJS) $(X11OBJS)
188 $(LDSHARED) -o$@ $(LIBOBJS) $(X11OBJS) $(LDOPTIONS)
189 ln -sf $@ libwine.so
191 install_emu: install_lib
192 [ -d $(bindir) ] || $(MKDIR) $(bindir)
193 $(INSTALL_PROGRAM) wine $(bindir)/wine
194 $(INSTALL_PROGRAM) loader/dos/dosmod $(bindir)/dosmod
196 uninstall_emu: uninstall_lib
197 $(RM) $(bindir)/wine $(bindir)/dosmod
199 install_lib: dummy
200 [ -d $(libdir) ] || $(MKDIR) $(libdir)
201 if [ $(LIB_TARGET) ]; then $(INSTALL_DATA) $(LIB_TARGET) $(libdir); fi
202 if [ -f wine.sym ]; then $(INSTALL_DATA) wine.sym $(libdir)/wine.sym; fi
204 uninstall_lib: dummy
205 cd $(libdir); $(RM) $(LIB_TARGET)
206 if [ -f $(libdir)/wine.sym ]; then $(RM) $(libdir)/wine.sym; fi
208 $(BUILDSUBDIRS): dummy
209 @cd $@; $(SUBMAKE)
211 install_programs: dummy
212 @cd programs; $(SUBMAKE) install
214 uninstall_programs: dummy
215 @cd programs; $(SUBMAKE) uninstall
217 install::
218 for i in $(INSTALLSUBDIRS); do (cd $$i && $(MAKE) install) || exit 1; done
220 uninstall::
221 for i in $(INSTALLSUBDIRS); do (cd $$i && $(MAKE) uninstall) || exit 1; done
223 depend:: dummy
224 for i in $(DEPENDSUBDIRS); do (cd $$i && $(MAKE) depend) || exit 1; done
226 TAGS etags:
227 etags `find $(TOPSRCDIR) -name '*.[chS]' -print | grep -v dbgmain`
229 manpages:
230 -$(MKDIR) $(TOPOBJDIR)/documentation/man3w
231 for i in $(LIBSUBDIRS); do (cd $$i && $(MAKE) man); done
233 htmlpages:
234 -$(MKDIR) $(TOPOBJDIR)/documentation/html
235 for i in $(LIBSUBDIRS); do (cd $$i && $(MAKE) html); done
237 clean::
238 for i in $(BUILDSUBDIRS); do (cd $$i; $(MAKE) clean) || exit 1; done
239 for i in include include/bitmaps include/server include/wine; do (cd $$i; $(RM) *.o \#*\# .#* *~ *% *.bak *.orig *.rej *.flc); done
240 $(RM) wine wine.sym libwine.a libwine.so.1.0 libwine.so TAGS .#*
242 distclean: clean
243 $(RM) config.* Make.rules include/config.h
244 $(RM) `find . \( -name Makefile -o -size 0 \) -print`
246 # We depend on configure above for checks, so we better don't use this rule.
247 #configure: configure.in
248 # autoconf
250 include/config.h.in: configure.in include/acconfig.h
251 autoheader -l include
253 ### Dependencies: