Removed some flicker by detecting if we set the same value again.
[wine/multimedia.git] / Makefile.in
blob1f529eb10942553a675b66964233fa1ca107ab55
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 # Libraries (not dlls) to build
36 LIBRARIES = \
37 unicode/libwine_unicode.$(LIBEXT)
39 # Sub-directories to run make depend/clean into
40 SUBDIRS = \
41 console \
42 controls \
43 debugger \
44 dlls \
45 dlls/ntdll \
46 documentation \
47 files \
48 graphics \
49 graphics/enhmetafiledrv \
50 graphics/metafiledrv \
51 graphics/win16drv \
52 if1632 \
53 include \
54 library \
55 libtest \
56 loader \
57 loader/dos \
58 loader/ne \
59 memory \
60 misc \
61 miscemu \
62 msdos \
63 objects \
64 ole \
65 programs \
66 relay32 \
67 resources \
68 scheduler \
69 server \
70 tools \
71 unicode \
72 win32 \
73 windows
75 # Sub-directories to run make install into
76 INSTALLSUBDIRS = \
77 debugger \
78 dlls \
79 documentation \
80 include \
81 server \
82 tools \
83 unicode
85 LIBOBJS = \
86 controls/controls.o \
87 console/console.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 win32/win32.o \
107 windows/windows.o
109 EMUOBJS = \
110 miscemu/miscemu.o
112 DLLOBJS = $(DLLS:%=dlls/lib%.@LIBEXT@)
114 EXTRA_OBJS = $(LIBOBJS)
116 all: Make.rules $(PROGRAMS) $(LIBPROGRAMS) wine
117 @echo "Wine build complete."
119 LIBLINTS = $(LIBOBJS:.o=.ln)
120 EMULINTS = $(EMUOBJS:.o=.ln)
122 lint:: llib-lwine.ln $(EMULINTS)
123 $(LINT) $(ALLLINTFLAGS) -L. -lwine $(EMULINTS)
125 WINAPI_CHECK_EXTRA_FLAGS = --global
127 @MAKE_RULES@
129 Make.rules: Make.rules.in configure
130 @echo $? is newer than 'Make.rules', please rerun ./configure!
131 @exit 1
133 wine: libwine.$(LIBEXT) libwine_unicode.$(LIBEXT) dlls $(EMUOBJS)
134 $(CC) -o wine $(EMUOBJS) $(DLL_LINK) $(LIBS)
136 llib-lwine.ln : $(LIBLINTS)
137 $(LINT) $(ALLLINTFLAGS) -owine $(LIBLINTS)
139 install_so: libwine.so.$(SOVERSION)
140 [ -d $(libdir) ] || $(MKDIR) $(libdir)
141 $(INSTALL_PROGRAM) libwine.so.$(SOVERSION) $(libdir)/libwine.so.$(SOVERSION)
142 cd $(libdir) && $(RM) libwine.so && $(LN_S) libwine.so.$(SOVERSION) libwine.so
144 install_a: libwine.a
145 [ -d $(libdir) ] || $(MKDIR) $(libdir)
146 $(INSTALL_DATA) libwine.a $(libdir)/libwine.a
148 install:: all $(LIBEXT:%=install_%) $(INSTALLSUBDIRS:%=%/__install__)
149 [ -d $(bindir) ] || $(MKDIR) $(bindir)
150 $(INSTALL_PROGRAM) wine $(bindir)/wine
151 $(INSTALL_PROGRAM) loader/dos/dosmod $(bindir)/dosmod
152 -$(LDCONFIG)
154 uninstall:: $(INSTALLSUBDIRS:%=%/__uninstall__)
155 cd $(libdir) && $(RM) libwine.a libwine.so libwine.so.$(SOVERSION)
156 cd $(bindir) && $(RM) wine dosmod
158 libwine.so.$(SOVERSION): $(OBJS) Makefile.in Make.rules.in
159 $(LDSHARED) $(OBJS) -o $@
161 libwine.so: libwine.so.$(SOVERSION)
162 $(RM) $@ && $(LN_S) libwine.so.$(SOVERSION) $@
164 libwine.a: $(OBJS) Makefile.in Make.rules.in
165 $(RM) $@
166 $(AR) $@ $(OBJS)
167 $(RANLIB) $@
169 $(EMUOBJS) $(LIBOBJS) $(DLLOBJS) $(PROGRAMS) $(LIBPROGRAMS) $(LIBRARIES): dummy
170 @cd `dirname $@` && $(MAKE) `basename $@`
172 # Dependencies between directories
174 $(EMUOBJS) $(LIBOBJS) $(DLLOBJS) $(PROGRAMS) dlls: tools
176 $(LIBPROGRAMS): tools dlls libwine.$(LIBEXT) libwine_unicode.$(LIBEXT)
178 server tools dlls: libwine_unicode.$(LIBEXT)
180 libwine_unicode.$(LIBEXT): unicode/libwine_unicode.$(LIBEXT)
181 $(RM) $@ && $(LN_S) unicode/libwine_unicode.$(LIBEXT) $@
183 $(LIBLINTS) $(EMULINTS): dummy
184 @cd `dirname $@` && $(MAKE) lint
186 checklink::
187 $(CC) -o checklink $(TOPSRCDIR)/library/checklink.c -L. -lwine -lwine_unicode $(LIBS) && $(RM) checklink
189 install_programs: dummy
190 @cd programs && $(MAKE) install
192 uninstall_programs: dummy
193 @cd programs && $(MAKE) uninstall
195 checklink::
196 @cd dlls && $(MAKE) checklink
198 TAGS etags:
199 etags `find $(TOPSRCDIR) -name '*.[chS]' -print | grep -v dbgmain`
201 manpages:
202 -$(MKDIR) $(TOPOBJDIR)/documentation/man3w
203 for i in $(SUBDIRS); do (cd $$i && $(MAKE) man); done
205 htmlpages:
206 -$(MKDIR) $(TOPOBJDIR)/documentation/html
207 for i in $(SUBDIRS); do (cd $$i && $(MAKE) html); done
209 clean::
210 $(RM) wine libwine.so.$(SOVERSION) TAGS
212 distclean: clean
213 $(RM) config.* Make.rules dlls/Makedll.rules include/config.h documentation/wine.man documentation/wine.conf.man
214 $(RM) `find . \( -name Makefile -o -size 0 \) -print`
216 # We depend on configure above for checks, so we better don't use this rule.
217 #configure: configure.in
218 # autoconf
220 include/config.h.in: configure.in include/acconfig.h
221 autoheader -l include
223 ### Dependencies: