Added console support.
[wine/multimedia.git] / Makefile.in
blob91b8c5763ae5ef6cbf0d80f7d1c22a0c771d3ab2
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/comctl32 \
32 dlls/imagehlp \
33 dlls/msacm \
34 dlls/msacm32 \
35 dlls/ntdll \
36 dlls/psapi \
37 dlls/shell32 \
38 dlls/winaspi \
39 dlls/wnaspi32 \
40 files \
41 graphics \
42 graphics/metafiledrv \
43 graphics/psdrv \
44 ipc \
45 library \
46 loader \
47 loader/ne \
48 loader/dos \
49 memory \
50 misc \
51 msdos \
52 multimedia \
53 objects \
54 ole \
55 relay32 \
56 resources \
57 scheduler \
58 server \
59 win32 \
60 windows
62 X11SUBDIRS = \
63 graphics/x11drv \
64 tsx11 \
65 windows/x11drv
67 EMUSUBDIRS = \
68 debugger \
69 graphics/win16drv \
70 if1632 \
71 miscemu
73 PROGSUBDIRS = libtest programs
75 DOCSUBDIRS = documentation
77 # All sub-directories
78 ALLSUBDIRS = \
79 $(LIBSUBDIRS) \
80 $(X11SUBDIRS) \
81 $(EMUSUBDIRS) \
82 $(PROGSUBDIRS) \
83 $(DOCSUBDIRS)
85 # Sub-directories to run make depend into
86 DEPENDSUBDIRS = $(LIBSUBDIRS) $(X11SUBDIRS) $(EMUSUBDIRS) $(DOCSUBDIRS)
88 # Sub-directories to run make install into
89 INSTALLSUBDIRS = $(DOCSUBDIRS)
91 LIBOBJS = \
92 controls/controls.o \
93 console/console.o \
94 dlls/comctl32/comctl32.o \
95 dlls/imagehlp/imagehlp.o \
96 dlls/msacm/msacm.o \
97 dlls/msacm32/msacm32.o \
98 dlls/ntdll/ntdll.o \
99 dlls/psapi/psapi.o \
100 dlls/shell32/shell32.o \
101 dlls/winaspi/winaspi.o \
102 dlls/wnaspi32/wnaspi32.o \
103 files/files.o \
104 graphics/graphics.o \
105 graphics/metafiledrv/metafiledrv.o \
106 graphics/psdrv/psdrv.o \
107 ipc/ipc.o \
108 loader/loader.o \
109 loader/ne/ne.o \
110 loader/dos/dos.o \
111 memory/memory.o \
112 misc/misc.o \
113 msdos/msdos.o \
114 multimedia/multimedia.o \
115 objects/objects.o \
116 ole/ole.o \
117 relay32/relay32.o \
118 resources/resources.o \
119 scheduler/scheduler.o \
120 server/server.o \
121 win32/win32.o \
122 windows/windows.o
124 X11OBJS = \
125 graphics/x11drv/x11drv.o \
126 tsx11/tsx11.o \
127 windows/x11drv/x11drv.o
129 EMUOBJS = \
130 debugger/debugger.o \
131 graphics/win16drv/win16drv.o \
132 if1632/if1632.o \
133 miscemu/miscemu.o
135 LIB_TARGET = @LIB_TARGET@
137 ALT_LINK = @ALT_LINK@
139 all: $(MAIN_TARGET)
141 @MAKE_RULES@
143 install:: install_$(MAIN_TARGET)
145 uninstall:: uninstall_$(MAIN_TARGET)
147 emu: wine
149 lib: $(LIBSUBDIRS) $(X11SUBDIRS) $(LIB_TARGET)
151 wine wine.sym: $(LIBSUBDIRS) $(X11SUBDIRS) $(LIB_TARGET) $(EMUSUBDIRS) dummy
152 $(CC) -o wine $(EMUOBJS) $(LIB_TARGET) $(ALT_LINK) $(LDOPTIONS) $(X_LIBS) $(XLIB) $(LIBS)
153 nm -n wine | grep -v _compiled >wine.sym
154 @echo "Wine build complete."
156 libwine.a: $(LIBOBJS) $(X11OBJS)
157 $(RM) $@
158 $(AR) $@ $(LIBOBJS) $(X11OBJS)
159 $(RANLIB) $@
161 libwine.so.1.0: $(LIBOBJS) $(X11OBJS)
162 $(CC) -shared -Wl,-soname,libwine.so -o$@ $(LIBOBJS) $(X11OBJS) $(LDOPTIONS) $(X_LIBS) $(XLIB) $(LIBS)
164 install_emu: install_lib
165 [ -d $(bindir) ] || $(MKDIR) $(bindir)
166 $(INSTALL_PROGRAM) wine $(bindir)/wine
167 $(INSTALL_PROGRAM) loader/dos/dosmod $(bindir)/dosmod
169 uninstall_emu: uninstall_lib
170 $(RM) $(bindir)/wine $(bindir)/dosmod
172 install_lib: install_includes
173 [ -d $(libdir) ] || $(MKDIR) $(libdir)
174 if [ $(LIB_TARGET) ]; then $(INSTALL_DATA) $(LIB_TARGET) $(libdir); fi
175 $(INSTALL_DATA) wine.sym $(libdir)/wine.sym
177 uninstall_lib: uninstall_includes
178 cd $(libdir); $(RM) $(LIB_TARGET)
179 $(RM) $(libdir)/wine.sym
181 install_includes: dummy
182 [ -d $(includedir) ] || $(MKDIR) $(includedir)
183 cd $(TOPSRCDIR)/include; $(INSTALL_DATA) windows.h wintypes.h $(includedir)
185 # Don't just do a rm -rf on $(includedir) -- don't want to wipe out
186 # anything extra the user may have put there.
187 uninstall_includes: dummy
188 $(RM) $(includedir)/windows.h $(includedir)/wintypes.h
189 -rmdir $(includedir)
191 $(ALLSUBDIRS): dummy
192 @cd $@; $(SUBMAKE)
194 install_programs: dummy
195 @cd programs; $(SUBMAKE) install
197 uninstall_programs: dummy
198 @cd programs; $(SUBMAKE) uninstall
200 install::
201 for i in $(INSTALLSUBDIRS); do (cd $$i && $(MAKE) install) || exit 1; done
203 uninstall::
204 for i in $(INSTALLSUBDIRS); do (cd $$i && $(MAKE) uninstall) || exit 1; done
206 depend:: dummy
207 for i in $(DEPENDSUBDIRS); do (cd $$i && $(MAKE) depend) || exit 1; done
209 TAGS etags:
210 etags `find $(TOPSRCDIR) -name '*.[chS]' -print | grep -v dbgmain`
212 manpages:
213 -$(MKDIR) $(TOPOBJDIR)/documentation/man3w
214 for i in $(LIBSUBDIRS); do (cd $$i && $(MAKE) man); done
216 htmlpages:
217 -$(MKDIR) $(TOPOBJDIR)/documentation/html
218 for i in $(LIBSUBDIRS); do (cd $$i && $(MAKE) html); done
220 clean::
221 for i in $(ALLSUBDIRS); do (cd $$i; $(MAKE) clean) || exit 1; done
222 for i in include; do (cd $$i; $(RM) *.o \#*\# .#* *~ *% *.bak *.orig *.rej *.flc); done
223 $(RM) wine wine.sym libwine.a libwine.so.1.0 TAGS .#*
225 distclean: clean
226 $(RM) config.* Make.rules include/config.h
227 $(RM) `find . \( -name Makefile -o -size 0 \) -print`
229 configure: configure.in
230 autoconf
232 include/config.h.in: configure.in include/acconfig.h
233 autoheader -l include
235 ### Dependencies: