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