Implemented SHCreateShellFolderViewEx.
[wine.git] / Makefile.in
blob5bd7b52c321503f0b435322577a464a6b48c9c43
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 TOOLSUBDIRS = \
27 tools \
28 tools/wrc
30 LIBSUBDIRS = \
31 controls \
32 console \
33 dlls/advapi32 \
34 dlls/avifil32 \
35 dlls/comctl32 \
36 dlls/commdlg \
37 dlls/imagehlp \
38 dlls/msacm \
39 dlls/msacm32 \
40 dlls/ntdll \
41 dlls/psapi \
42 dlls/rasapi32 \
43 dlls/shell32 \
44 dlls/tapi32 \
45 dlls/ver \
46 dlls/version \
47 dlls/win87em \
48 dlls/winaspi \
49 dlls/winspool \
50 dlls/wnaspi32 \
51 files \
52 graphics \
53 graphics/enhmetafiledrv \
54 graphics/metafiledrv \
55 graphics/psdrv \
56 graphics/ttydrv \
57 graphics/win16drv \
58 if1632 \
59 library \
60 loader \
61 loader/ne \
62 loader/dos \
63 memory \
64 misc \
65 msdos \
66 multimedia \
67 objects \
68 ole \
69 relay32 \
70 resources \
71 scheduler \
72 server \
73 win32 \
74 windows \
75 windows/ttydrv
77 X11SUBDIRS = \
78 graphics/x11drv \
79 tsx11 \
80 windows/x11drv
82 EMUSUBDIRS = \
83 debugger \
84 miscemu
86 PROGSUBDIRS = libtest programs
88 DOCSUBDIRS = documentation
90 INCSUBDIRS = include
92 # Sub-directories to run make into
93 BUILDSUBDIRS = \
94 $(TOOLSUBDIRS) \
95 $(LIBSUBDIRS) \
96 $(X11SUBDIRS) \
97 $(EMUSUBDIRS) \
98 $(PROGSUBDIRS) \
99 $(DOCSUBDIRS)
101 # Sub-directories to run make depend into
102 DEPENDSUBDIRS = $(LIBSUBDIRS) $(X11SUBDIRS) $(EMUSUBDIRS) $(DOCSUBDIRS)
104 # Sub-directories to run make install into
105 INSTALLSUBDIRS = $(DOCSUBDIRS) $(INCSUBDIRS)
107 LIBOBJS = \
108 controls/controls.o \
109 console/console.o \
110 dlls/advapi32/advapi32.o \
111 dlls/avifil32/avifil32.o \
112 dlls/comctl32/comctl32.o \
113 dlls/commdlg/commdlg.o \
114 dlls/imagehlp/imagehlp.o \
115 dlls/msacm/msacm.o \
116 dlls/msacm32/msacm32.o \
117 dlls/ntdll/ntdll.o \
118 dlls/psapi/psapi.o \
119 dlls/rasapi32/rasapi32.o \
120 dlls/shell32/shell32.o \
121 dlls/tapi32/tapi32.o \
122 dlls/ver/ver.o \
123 dlls/version/version.o \
124 dlls/win87em/win87em.o \
125 dlls/winaspi/winaspi.o \
126 dlls/winspool/winspool.o \
127 dlls/wnaspi32/wnaspi32.o \
128 files/files.o \
129 graphics/graphics.o \
130 graphics/enhmetafiledrv/enhmetafiledrv.o \
131 graphics/metafiledrv/metafiledrv.o \
132 graphics/psdrv/psdrv.o \
133 graphics/ttydrv/ttydrv.o \
134 graphics/win16drv/win16drv.o \
135 if1632/if1632.o \
136 loader/loader.o \
137 loader/ne/ne.o \
138 loader/dos/dos.o \
139 memory/memory.o \
140 misc/misc.o \
141 msdos/msdos.o \
142 multimedia/multimedia.o \
143 objects/objects.o \
144 ole/ole.o \
145 relay32/relay32.o \
146 resources/resources.o \
147 scheduler/scheduler.o \
148 server/server.o \
149 win32/win32.o \
150 windows/windows.o \
151 windows/ttydrv/ttydrv.o
153 X11OBJS = \
154 graphics/x11drv/x11drv.o \
155 tsx11/tsx11.o \
156 windows/x11drv/x11drv.o
158 EMUOBJS = \
159 debugger/debugger.o \
160 miscemu/miscemu.o
162 LIB_TARGET = @LIB_TARGET@
164 ALT_LINK = @ALT_LINK@
166 all: Makefile Make.rules $(MAIN_TARGET)
168 @MAKE_RULES@
170 Make.rules: Make.rules.in configure
171 @echo $? is newer than 'Make.rules', please rerun ./configure!
172 @exit 1
174 install:: install_$(MAIN_TARGET)
176 uninstall:: uninstall_$(MAIN_TARGET)
178 emu: wine
180 lib: $(LIBSUBDIRS) $(X11SUBDIRS) $(LIB_TARGET)
182 wine wine.sym: $(LIB_TARGET) $(EMUOBJS) $(X11OBJS) $(LIBOBJS) dummy
183 $(CC) -o wine $(EMUOBJS) $(ALT_LINK) $(LDOPTIONS) $(X_LIBS) $(XLIB) $(LIBS)
184 nm -n wine | grep -v _compiled >wine.sym
185 @echo "Wine build complete."
187 libwine.a: $(TOOLSUBDIRS) $(LIBOBJS) $(X11OBJS)
188 $(RM) $@
189 $(AR) $@ $(LIBOBJS) $(X11OBJS)
190 $(RANLIB) $@
192 libwine.so.1.0: $(TOOLSUBDIRS) $(LIBOBJS) $(X11OBJS)
193 $(LDSHARED) -o$@ $(LIBOBJS) $(X11OBJS) $(LDOPTIONS)
194 ln -sf $@ libwine.so
196 install_emu: install_lib
197 [ -d $(bindir) ] || $(MKDIR) $(bindir)
198 $(INSTALL_PROGRAM) wine $(bindir)/wine
199 $(INSTALL_PROGRAM) loader/dos/dosmod $(bindir)/dosmod
201 uninstall_emu: uninstall_lib
202 $(RM) $(bindir)/wine $(bindir)/dosmod
204 install_lib: dummy
205 [ -d $(libdir) ] || $(MKDIR) $(libdir)
206 if [ -f wine.sym ]; then $(INSTALL_DATA) wine.sym $(libdir)/wine.sym; fi
207 if [ $(LIB_TARGET) ]; then \
208 $(INSTALL_DATA) $(LIB_TARGET) $(libdir); \
209 if [ $(LIB_TARGET) = libwine.so.1.0 ]; then $(LDCONFIG); fi \
212 uninstall_lib: dummy
213 cd $(libdir); $(RM) $(LIB_TARGET) libwine.a libwine.so wine.sym
215 $(X11OBJS) $(EMUOBJS) $(LIBOBJS): dummy
216 @cd `dirname $@`; $(SUBMAKE)
218 $(BUILDSUBDIRS): dummy
219 @cd $@; $(SUBMAKE)
221 install_programs: dummy
222 @cd programs; $(SUBMAKE) install
224 uninstall_programs: dummy
225 @cd programs; $(SUBMAKE) uninstall
227 install::
228 for i in $(INSTALLSUBDIRS); do (cd $$i && $(MAKE) install) || exit 1; done
230 uninstall::
231 for i in $(INSTALLSUBDIRS); do (cd $$i && $(MAKE) uninstall) || exit 1; done
233 depend:: dummy
234 for i in $(DEPENDSUBDIRS); do (cd $$i && $(MAKE) depend) || exit 1; done
236 TAGS etags:
237 etags `find $(TOPSRCDIR) -name '*.[chS]' -print | grep -v dbgmain`
239 manpages:
240 -$(MKDIR) $(TOPOBJDIR)/documentation/man3w
241 for i in $(LIBSUBDIRS); do (cd $$i && $(MAKE) man); done
243 htmlpages:
244 -$(MKDIR) $(TOPOBJDIR)/documentation/html
245 for i in $(LIBSUBDIRS); do (cd $$i && $(MAKE) html); done
247 clean::
248 for i in $(BUILDSUBDIRS); do (cd $$i; $(MAKE) clean) || exit 1; done
249 for i in include include/bitmaps include/wine; do (cd $$i; $(RM) *.o \#*\# .#* *~ *% *.bak *.orig *.rej *.flc); done
250 $(RM) wine wine.sym libwine.a libwine.so.1.0 libwine.so TAGS .#*
252 distclean: clean
253 $(RM) config.* Make.rules include/config.h documentation/wine.man
254 $(RM) `find . \( -name Makefile -o -size 0 \) -print`
256 # We depend on configure above for checks, so we better don't use this rule.
257 #configure: configure.in
258 # autoconf
260 include/config.h.in: configure.in include/acconfig.h
261 autoheader -l include
263 ### Dependencies: