Release 981025.
[wine/gsoc-2012-control.git] / Makefile.in
blob1a5649d69ac7ec32341a083de7409eddd3ea03b1
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 dlls/comctl32 \
31 dlls/imagehlp \
32 dlls/msacm \
33 dlls/msacm32 \
34 dlls/psapi \
35 dlls/shell32 \
36 dlls/winaspi \
37 dlls/wnaspi32 \
38 files \
39 graphics \
40 graphics/metafiledrv \
41 graphics/x11drv \
42 ipc \
43 library \
44 loader \
45 loader/ne \
46 loader/dos \
47 memory \
48 misc \
49 msdos \
50 multimedia \
51 objects \
52 ole \
53 relay32 \
54 resources \
55 scheduler \
56 server \
57 tsx11 \
58 win32 \
59 windows
61 EMUSUBDIRS = \
62 debugger \
63 graphics/psdrv \
64 graphics/win16drv \
65 if1632 \
66 miscemu
68 PROGSUBDIRS = libtest programs
70 DOCSUBDIRS = documentation
72 # All sub-directories
73 ALLSUBDIRS = \
74 $(LIBSUBDIRS) \
75 $(EMUSUBDIRS) \
76 $(PROGSUBDIRS) \
77 $(DOCSUBDIRS)
79 # Sub-directories to run make depend into
80 DEPENDSUBDIRS = $(LIBSUBDIRS) $(EMUSUBDIRS) $(DOCSUBDIRS)
82 # Sub-directories to run make install into
83 INSTALLSUBDIRS = $(DOCSUBDIRS)
85 LIBOBJS = \
86 controls/controls.o \
87 dlls/comctl32/comctl32.o \
88 dlls/imagehlp/imagehlp.o \
89 dlls/msacm/msacm.o \
90 dlls/msacm32/msacm32.o \
91 dlls/psapi/psapi.o \
92 dlls/shell32/shell32.o \
93 dlls/winaspi/winaspi.o \
94 dlls/wnaspi32/wnaspi32.o \
95 files/files.o \
96 graphics/graphics.o \
97 graphics/metafiledrv/metafiledrv.o \
98 graphics/x11drv/x11drv.o \
99 ipc/ipc.o \
100 loader/loader.o \
101 loader/ne/ne.o \
102 loader/dos/dos.o \
103 memory/memory.o \
104 misc/misc.o \
105 msdos/msdos.o \
106 multimedia/multimedia.o \
107 objects/objects.o \
108 ole/ole.o \
109 relay32/relay32.o \
110 resources/resources.o \
111 scheduler/scheduler.o \
112 server/server.o \
113 tsx11/tsx11.o \
114 win32/win32.o \
115 windows/windows.o
117 EMUOBJS = \
118 debugger/debugger.o \
119 graphics/psdrv/psdrv.o \
120 graphics/win16drv/win16drv.o \
121 if1632/if1632.o \
122 miscemu/miscemu.o
124 LIB_TARGET = @LIB_TARGET@
126 ALT_LINK = @ALT_LINK@
128 all: $(MAIN_TARGET)
130 @MAKE_RULES@
132 install:: install_$(MAIN_TARGET)
134 uninstall:: uninstall_$(MAIN_TARGET)
136 emu: wine
138 lib: $(LIBSUBDIRS) $(LIB_TARGET)
140 wine wine.sym: $(LIBSUBDIRS) $(LIB_TARGET) $(EMUSUBDIRS) dummy
141 $(CC) -o wine $(EMUOBJS) $(LIB_TARGET) $(ALT_LINK) $(LDOPTIONS) $(X_LIBS) $(XPM_LIB) $(XLIB) $(LIBS)
142 nm -n wine | grep -v _compiled >wine.sym
144 libwine.a: $(LIBOBJS)
145 $(RM) $@
146 $(AR) $@ $(LIBOBJS)
147 $(RANLIB) $@
149 libwine.so.1.0: $(LIBOBJS)
150 $(CC) -shared -Wl,-soname,libwine.so -o$@ $(LIBOBJS) $(LDOPTIONS) $(X_LIBS) $(XPM_LIB) $(XLIB) $(LIBS)
152 install_emu: install_lib
153 [ -d $(bindir) ] || $(MKDIR) $(bindir)
154 $(INSTALL_PROGRAM) wine $(bindir)/wine
155 $(INSTALL_PROGRAM) loader/dos/dosmod $(bindir)/dosmod
157 uninstall_emu: uninstall_lib
158 $(RM) $(bindir)/wine $(bindir)/dosmod
160 install_lib: install_includes
161 [ -d $(libdir) ] || $(MKDIR) $(libdir)
162 if [ $(LIB_TARGET) ]; then $(INSTALL_DATA) $(LIB_TARGET) $(libdir); fi
163 $(INSTALL_DATA) wine.sym $(libdir)/wine.sym
165 uninstall_lib: uninstall_includes
166 cd $(libdir); $(RM) $(LIB_TARGET)
167 $(RM) $(libdir)/wine.sym
169 install_includes: dummy
170 [ -d $(includedir) ] || $(MKDIR) $(includedir)
171 cd $(TOPSRCDIR)/include; $(INSTALL_DATA) windows.h wintypes.h $(includedir)
173 # Don't just do a rm -rf on $(includedir) -- don't want to wipe out
174 # anything extra the user may have put there.
175 uninstall_includes: dummy
176 $(RM) $(includedir)/windows.h $(includedir)/wintypes.h
177 -rmdir $(includedir)
179 $(ALLSUBDIRS): dummy
180 @cd $@; $(SUBMAKE)
182 install_programs: dummy
183 @cd programs; $(SUBMAKE) install
185 uninstall_programs: dummy
186 @cd programs; $(SUBMAKE) uninstall
188 install::
189 for i in $(INSTALLSUBDIRS); do (cd $$i && $(MAKE) install) || exit 1; done
191 uninstall::
192 for i in $(INSTALLSUBDIRS); do (cd $$i && $(MAKE) uninstall) || exit 1; done
194 depend:: dummy
195 for i in $(DEPENDSUBDIRS); do (cd $$i && $(MAKE) depend) || exit 1; done
197 TAGS etags:
198 etags `find $(TOPSRCDIR) -name '*.[chS]' -print | grep -v dbgmain`
200 manpages:
201 -$(MKDIR) $(TOPOBJDIR)/documentation/man3w
202 for i in $(LIBSUBDIRS); do (cd $$i && $(MAKE) man); done
204 htmlpages:
205 -$(MKDIR) $(TOPOBJDIR)/documentation/html
206 for i in $(LIBSUBDIRS); do (cd $$i && $(MAKE) html); done
208 clean::
209 for i in $(ALLSUBDIRS); do (cd $$i; $(MAKE) clean) || exit 1; done
210 for i in include; do (cd $$i; $(RM) *.o \#*\# .#* *~ *% *.bak *.orig *.rej *.flc); done
211 $(RM) wine wine.sym libwine.a libwine.so.1.0 TAGS .#*
213 distclean: clean
214 $(RM) config.* Make.rules include/config.h
215 $(RM) `find . \( -name Makefile -o -size 0 \) -print`
217 configure: configure.in
218 autoconf
220 include/config.h.in: configure.in include/acconfig.h
221 autoheader -l include
223 ### Dependencies: