Improved the selector get/set functions.
[wine.git] / Makefile.in
blob6fac5bec2e86c075204bedbc538fccff1f054eb4
1 # This Makefile understands the following targets:
3 # all (default): build wine
4 # clean: remove all intermediate files
5 # distclean: also remove all files created by configure
6 # install: install everything
7 # uninstall: uninstall everything
8 # depend: create the dependencies
9 # etags: create a TAGS file for Emacs.
10 # manpages: compile manpages for Wine API
13 # Directories
15 TOPSRCDIR = @top_srcdir@
16 TOPOBJDIR = .
17 SRCDIR = @srcdir@
18 VPATH = @srcdir@
19 LIBEXT = @LIBEXT@
20 MODULE = wine
21 SOVERSION = 1.0
23 TOOLSUBDIRS = \
24 tools \
25 tools/wrc
27 LIBSUBDIRS = \
28 controls \
29 console \
30 debugger \
31 dlls/advapi32 \
32 dlls/crtdll \
33 dlls/display \
34 dlls/mouse \
35 dlls/mpr \
36 dlls/ntdll \
37 dlls/winaspi \
38 files \
39 graphics \
40 graphics/enhmetafiledrv \
41 graphics/metafiledrv \
42 graphics/psdrv \
43 graphics/ttydrv \
44 graphics/win16drv \
45 if1632 \
46 library \
47 loader \
48 loader/ne \
49 loader/dos \
50 memory \
51 misc \
52 msdos \
53 objects \
54 ole \
55 relay32 \
56 resources \
57 scheduler \
58 win32 \
59 windows \
60 windows/ttydrv
62 X11SUBDIRS = \
63 graphics/x11drv \
64 tsx11 \
65 windows/x11drv
67 EMUSUBDIRS = \
68 miscemu \
69 server
71 PROGSUBDIRS = libtest programs
73 DOCSUBDIRS = documentation
75 INCSUBDIRS = include
77 PROGRAMS = \
78 loader/dos/dosmod \
79 server/wineserver \
80 windows/x11drv/wineclipsrv
82 # Sub-directories to run make into
83 BUILDSUBDIRS = \
84 $(TOOLSUBDIRS) \
85 $(LIBSUBDIRS) \
86 $(X11SUBDIRS) \
87 $(DLLDIR) \
88 $(EMUSUBDIRS) \
89 $(PROGSUBDIRS) \
90 $(DOCSUBDIRS)
92 # Sub-directories to run make depend into
93 DEPENDSUBDIRS = $(LIBSUBDIRS) $(X11SUBDIRS) $(DLLDIR) $(EMUSUBDIRS) $(DOCSUBDIRS)
95 # Sub-directories to run make install into
96 INSTALLSUBDIRS = $(DLLDIR) $(DOCSUBDIRS) $(INCSUBDIRS)
98 # Sub-directories to run make lint into
99 LINTSUBDIRS = $(LIBSUBDIRS) $(X11SUBDIRS) $(DLLDIR) $(EMUSUBDIRS) $(DOCSUBDIRS)
101 # Extra sub-directories to clean
102 CLEANSUBDIRS = dlls include include/bitmaps include/wine
104 LIBOBJS = \
105 controls/controls.o \
106 console/console.o \
107 debugger/debugger.o \
108 dlls/advapi32/advapi32.o \
109 dlls/crtdll/crtdll.o \
110 dlls/display/display.o \
111 dlls/mouse/mouse.o \
112 dlls/mpr/mpr.o \
113 dlls/ntdll/ntdll.o \
114 dlls/winaspi/winaspi.o \
115 files/files.o \
116 graphics/graphics.o \
117 graphics/enhmetafiledrv/enhmetafiledrv.o \
118 graphics/metafiledrv/metafiledrv.o \
119 graphics/psdrv/psdrv.o \
120 graphics/ttydrv/ttydrv.o \
121 graphics/win16drv/win16drv.o \
122 if1632/if1632.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 objects/objects.o \
130 ole/ole.o \
131 relay32/relay32.o \
132 resources/resources.o \
133 scheduler/scheduler.o \
134 win32/win32.o \
135 windows/windows.o \
136 windows/ttydrv/ttydrv.o
138 X11OBJS = \
139 graphics/x11drv/x11drv.o \
140 tsx11/tsx11.o \
141 windows/x11drv/x11drv.o
143 EMUOBJS = \
144 miscemu/miscemu.o
146 DLLOBJS = $(DLLS:%=dlls/lib%.@LIBEXT@)
148 EXTRA_OBJS = $(LIBOBJS) $(X11OBJS)
150 EMU_TARGET = @EMU_TARGET@
152 all: Make.rules $(PROGRAMS) $(EMU_TARGET)
153 @echo "Wine build complete."
155 LIBLINTS = $(LIBOBJS:.o=.ln)
156 X11LINTS = $(X11OBJS:.o=.ln)
157 EMULINTS = $(EMUOBJS:.o=.ln)
159 lint:: llib-lwine.ln $(EMULINTS)
160 $(LINT) $(ALLLINTFLAGS) -L. -lwine $(EMULINTS)
162 WINAPI_CHECK_EXTRA_FLAGS = --global
164 @MAKE_RULES@
166 all: lib$(MODULE).$(LIBEXT) $(DLLOBJS)
168 Make.rules: Make.rules.in configure
169 @echo $? is newer than 'Make.rules', please rerun ./configure!
170 @exit 1
172 wine wine.sym: lib$(MODULE).$(LIBEXT) $(DLLOBJS) $(EMUOBJS)
173 $(CC) -o wine $(EMUOBJS) $(DLL_LINK) $(LDOPTIONS) $(X_LIBS) $(XLIB) $(LIBS)
174 nm -n wine | grep -v _compiled >wine.sym
176 llib-lwine.ln : $(LIBLINTS) $(X11LINTS)
177 $(LINT) $(ALLLINTFLAGS) -owine $(LIBLINTS) $(X11LINTS)
179 install_wine: wine
180 [ -d $(bindir) ] || $(MKDIR) $(bindir)
181 [ -d $(libdir) ] || $(MKDIR) $(libdir)
182 [ -f wine.sym ] && $(INSTALL_DATA) wine.sym $(libdir)/wine.sym
183 $(INSTALL_PROGRAM) wine $(bindir)/wine
185 install:: $(PROGRAMS) $(EMU_TARGET:%=install_%)
186 [ -d $(bindir) ] || $(MKDIR) $(bindir)
187 $(INSTALL_PROGRAM) server/wineserver $(bindir)/wineserver
188 $(INSTALL_PROGRAM) windows/x11drv/wineclipsrv $(bindir)/wineclipsrv
189 $(INSTALL_PROGRAM) loader/dos/dosmod $(bindir)/dosmod
191 uninstall::
192 cd $(libdir) && $(RM) libwine.a libwine.so libwine.so.$(SOVERSION) wine.sym
193 cd $(bindir) && $(RM) wine wineserver wineclipsrv dosmod
195 $(X11OBJS) $(EMUOBJS) $(LIBOBJS) $(DLLOBJS) $(PROGRAMS): $(TOOLSUBDIRS) dummy
196 @cd `dirname $@` && $(MAKE) `basename $@`
198 $(BUILDSUBDIRS): dummy
199 @cd $@ && $(MAKE)
201 $(LIBLINTS) $(X11LINTS) $(EMULINTS): dummy
202 @echo $@ | sed 's%\(.*\)\/[^\/]*%cd \1 \&\& make lint%' | sh
204 install_programs: dummy
205 @cd programs && $(MAKE) install
207 uninstall_programs: dummy
208 @cd programs && $(MAKE) uninstall
210 install::
211 for i in $(INSTALLSUBDIRS); do (cd $$i && $(MAKE) install) || exit 1; done
212 -$(LDCONFIG)
214 uninstall::
215 for i in $(INSTALLSUBDIRS); do (cd $$i && $(MAKE) uninstall) || exit 1; done
217 depend::
218 for i in $(DEPENDSUBDIRS); do (cd $$i && $(MAKE) depend) || exit 1; done
220 checklink::
221 @cd dlls && $(MAKE) checklink
223 TAGS etags:
224 etags `find $(TOPSRCDIR) -name '*.[chS]' -print | grep -v dbgmain`
226 manpages:
227 -$(MKDIR) $(TOPOBJDIR)/documentation/man3w
228 for i in $(LIBSUBDIRS); do (cd $$i && $(MAKE) man); done
230 htmlpages:
231 -$(MKDIR) $(TOPOBJDIR)/documentation/html
232 for i in $(LIBSUBDIRS); do (cd $$i && $(MAKE) html); done
234 clean::
235 for i in $(BUILDSUBDIRS); do (cd $$i; $(MAKE) clean) || exit 1; done
236 for i in $(CLEANSUBDIRS); do (cd $$i; $(RM) *.o \#*\# .#* *~ *% *.bak *.orig *.rej *.flc); done
237 $(RM) wine wine.sym libwine.so.1.0 TAGS .#*
239 distclean: clean
240 $(RM) config.* Make.rules include/config.h documentation/wine.man documentation/wine.conf.man
241 $(RM) `find . \( -name Makefile -o -size 0 \) -print`
243 # We depend on configure above for checks, so we better don't use this rule.
244 #configure: configure.in
245 # autoconf
247 include/config.h.in: configure.in include/acconfig.h
248 autoheader -l include
250 ### Dependencies: