CB_SETCURSEL should not generate another listbox event after updating
[wine.git] / Makefile.in
blob6f75ef6ad3a14557d5146eb69a4ade9a3e02e09c
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 LDSHARED = @LDSHARED@
21 LDCONFIG = @LDCONFIG@
22 MODULE = wine
23 SOVERSION = 1.0
24 SONAME = libwine.so
26 # Stand-alone programs
27 PROGRAMS = \
28 loader/dos/dosmod \
29 server/wineserver
31 # Programs that link with libwine
32 LIBPROGRAMS = \
33 debugger/winedbg
35 # Sub-directories to run make depend/clean into
36 SUBDIRS = \
37 console \
38 controls \
39 debugger \
40 dlls \
41 dlls/advapi32 \
42 dlls/crtdll \
43 dlls/kernel \
44 dlls/ntdll \
45 documentation \
46 files \
47 graphics \
48 graphics/enhmetafiledrv \
49 graphics/metafiledrv \
50 graphics/win16drv \
51 if1632 \
52 include \
53 library \
54 libtest \
55 loader \
56 loader/dos \
57 loader/ne \
58 memory \
59 misc \
60 miscemu \
61 msdos \
62 objects \
63 ole \
64 programs \
65 relay32 \
66 resources \
67 scheduler \
68 server \
69 tools \
70 unicode \
71 win32 \
72 windows
74 # Sub-directories to run make install into
75 INSTALLSUBDIRS = \
76 debugger \
77 dlls \
78 documentation \
79 include \
80 server \
81 tools
83 LIBOBJS = \
84 controls/controls.o \
85 console/console.o \
86 dlls/advapi32/advapi32.o \
87 dlls/crtdll/crtdll.o \
88 dlls/ntdll/ntdll.o \
89 files/files.o \
90 graphics/graphics.o \
91 graphics/enhmetafiledrv/enhmetafiledrv.o \
92 graphics/metafiledrv/metafiledrv.o \
93 graphics/win16drv/win16drv.o \
94 if1632/if1632.o \
95 loader/loader.o \
96 loader/ne/ne.o \
97 loader/dos/dos.o \
98 memory/memory.o \
99 misc/misc.o \
100 msdos/msdos.o \
101 objects/objects.o \
102 ole/ole.o \
103 relay32/relay32.o \
104 resources/resources.o \
105 scheduler/scheduler.o \
106 unicode/unicode.o \
107 win32/win32.o \
108 windows/windows.o
110 EMUOBJS = \
111 miscemu/miscemu.o
113 DLLOBJS = $(DLLS:%=dlls/lib%.@LIBEXT@)
115 EXTRA_OBJS = $(LIBOBJS)
117 all: Make.rules $(PROGRAMS) $(LIBPROGRAMS) wine
118 @echo "Wine build complete."
120 LIBLINTS = $(LIBOBJS:.o=.ln)
121 EMULINTS = $(EMUOBJS:.o=.ln)
123 lint:: llib-lwine.ln $(EMULINTS)
124 $(LINT) $(ALLLINTFLAGS) -L. -lwine $(EMULINTS)
126 WINAPI_CHECK_EXTRA_FLAGS = --global
128 @MAKE_RULES@
130 Make.rules: Make.rules.in configure
131 @echo $? is newer than 'Make.rules', please rerun ./configure!
132 @exit 1
134 wine: lib$(MODULE).$(LIBEXT) $(DLLDIR) $(EMUOBJS)
135 $(CC) -o wine $(EMUOBJS) $(DLL_LINK) $(LIBS)
137 llib-lwine.ln : $(LIBLINTS)
138 $(LINT) $(ALLLINTFLAGS) -owine $(LIBLINTS)
140 install_so: lib$(MODULE).so.$(SOVERSION)
141 [ -d $(libdir) ] || $(MKDIR) $(libdir)
142 $(INSTALL_PROGRAM) lib$(MODULE).so.$(SOVERSION) $(libdir)/lib$(MODULE).so.$(SOVERSION)
143 cd $(libdir) && $(RM) lib$(MODULE).so && $(LN_S) lib$(MODULE).so.$(SOVERSION) lib$(MODULE).so
145 install_a: lib$(MODULE).a
146 [ -d $(libdir) ] || $(MKDIR) $(libdir)
147 $(INSTALL_DATA) lib$(MODULE).a $(libdir)/lib$(MODULE).a
149 install:: all $(LIBEXT:%=install_%) $(INSTALLSUBDIRS:%=%/__install__)
150 [ -d $(bindir) ] || $(MKDIR) $(bindir)
151 $(INSTALL_PROGRAM) wine $(bindir)/wine
152 $(INSTALL_PROGRAM) loader/dos/dosmod $(bindir)/dosmod
153 -$(LDCONFIG)
155 uninstall:: $(INSTALLSUBDIRS:%=%/__uninstall__)
156 cd $(libdir) && $(RM) libwine.a libwine.so libwine.so.$(SOVERSION)
157 cd $(bindir) && $(RM) wine dosmod
159 lib$(MODULE).so.$(SOVERSION): $(OBJS) Makefile.in Make.rules.in
160 $(LDSHARED) $(OBJS) -o $@
162 lib$(MODULE).so: lib$(MODULE).so.$(SOVERSION)
163 $(RM) $@ && $(LN_S) lib$(MODULE).so.$(SOVERSION) $@
165 lib$(MODULE).a: $(OBJS) Makefile.in Make.rules.in
166 $(RM) $@
167 $(AR) $@ $(OBJS)
168 $(RANLIB) $@
170 $(EMUOBJS) $(LIBOBJS) $(DLLOBJS) $(PROGRAMS) $(LIBPROGRAMS): dummy
171 @cd `dirname $@` && $(MAKE) `basename $@`
173 $(EMUOBJS) $(LIBOBJS) $(DLLOBJS) $(PROGRAMS) $(DLLDIR): tools
175 $(LIBPROGRAMS): tools dlls lib$(MODULE).$(LIBEXT)
177 $(LIBLINTS) $(EMULINTS): dummy
178 @cd `dirname $@` && $(MAKE) lint
180 checklink::
181 $(CC) -o checklink $(TOPSRCDIR)/library/checklink.c -L. -lwine $(LIBS) && $(RM) checklink
183 install_programs: dummy
184 @cd programs && $(MAKE) install
186 uninstall_programs: dummy
187 @cd programs && $(MAKE) uninstall
189 checklink::
190 @cd dlls && $(MAKE) checklink
192 TAGS etags:
193 etags `find $(TOPSRCDIR) -name '*.[chS]' -print | grep -v dbgmain`
195 manpages:
196 -$(MKDIR) $(TOPOBJDIR)/documentation/man3w
197 for i in $(SUBDIRS); do (cd $$i && $(MAKE) man); done
199 htmlpages:
200 -$(MKDIR) $(TOPOBJDIR)/documentation/html
201 for i in $(SUBDIRS); do (cd $$i && $(MAKE) html); done
203 clean::
204 $(RM) wine libwine.so.1.0 TAGS
206 distclean: clean
207 $(RM) config.* Make.rules dlls/Makedll.rules include/config.h documentation/wine.man documentation/wine.conf.man
208 $(RM) `find . \( -name Makefile -o -size 0 \) -print`
210 # We depend on configure above for checks, so we better don't use this rule.
211 #configure: configure.in
212 # autoconf
214 include/config.h.in: configure.in include/acconfig.h
215 autoheader -l include
217 ### Dependencies: