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