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