GetIconInfo did no correctly identify icons from cursors.
[wine/multimedia.git] / Makefile.in
blobf7b5928280148b04c4049568f92713ad882f494b
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/ntdll \
43 documentation \
44 files \
45 graphics \
46 graphics/enhmetafiledrv \
47 graphics/metafiledrv \
48 graphics/win16drv \
49 if1632 \
50 include \
51 library \
52 libtest \
53 loader \
54 loader/dos \
55 loader/ne \
56 memory \
57 misc \
58 miscemu \
59 msdos \
60 objects \
61 ole \
62 programs \
63 relay32 \
64 resources \
65 scheduler \
66 server \
67 tools \
68 unicode \
69 win32 \
70 windows
72 # Sub-directories to run make install into
73 INSTALLSUBDIRS = \
74 debugger \
75 dlls \
76 documentation \
77 include \
78 server \
79 tools
81 LIBOBJS = \
82 controls/controls.o \
83 console/console.o \
84 dlls/advapi32/advapi32.o \
85 dlls/ntdll/ntdll.o \
86 files/files.o \
87 graphics/graphics.o \
88 graphics/enhmetafiledrv/enhmetafiledrv.o \
89 graphics/metafiledrv/metafiledrv.o \
90 graphics/win16drv/win16drv.o \
91 if1632/if1632.o \
92 loader/loader.o \
93 loader/ne/ne.o \
94 loader/dos/dos.o \
95 memory/memory.o \
96 misc/misc.o \
97 msdos/msdos.o \
98 objects/objects.o \
99 ole/ole.o \
100 relay32/relay32.o \
101 resources/resources.o \
102 scheduler/scheduler.o \
103 unicode/unicode.o \
104 win32/win32.o \
105 windows/windows.o
107 EMUOBJS = \
108 miscemu/miscemu.o
110 DLLOBJS = $(DLLS:%=dlls/lib%.@LIBEXT@)
112 EXTRA_OBJS = $(LIBOBJS)
114 all: Make.rules $(PROGRAMS) $(LIBPROGRAMS) wine
115 @echo "Wine build complete."
117 LIBLINTS = $(LIBOBJS:.o=.ln)
118 EMULINTS = $(EMUOBJS:.o=.ln)
120 lint:: llib-lwine.ln $(EMULINTS)
121 $(LINT) $(ALLLINTFLAGS) -L. -lwine $(EMULINTS)
123 WINAPI_CHECK_EXTRA_FLAGS = --global
125 @MAKE_RULES@
127 Make.rules: Make.rules.in configure
128 @echo $? is newer than 'Make.rules', please rerun ./configure!
129 @exit 1
131 wine: lib$(MODULE).$(LIBEXT) $(DLLDIR) $(EMUOBJS)
132 $(CC) -o wine $(EMUOBJS) $(DLL_LINK) $(LIBS)
134 llib-lwine.ln : $(LIBLINTS)
135 $(LINT) $(ALLLINTFLAGS) -owine $(LIBLINTS)
137 install_so: lib$(MODULE).so.$(SOVERSION)
138 [ -d $(libdir) ] || $(MKDIR) $(libdir)
139 $(INSTALL_PROGRAM) lib$(MODULE).so.$(SOVERSION) $(libdir)/lib$(MODULE).so.$(SOVERSION)
140 cd $(libdir) && $(RM) lib$(MODULE).so && $(LN_S) lib$(MODULE).so.$(SOVERSION) lib$(MODULE).so
142 install_a: lib$(MODULE).a
143 [ -d $(libdir) ] || $(MKDIR) $(libdir)
144 $(INSTALL_DATA) lib$(MODULE).a $(libdir)/lib$(MODULE).a
146 install:: all $(LIBEXT:%=install_%) $(INSTALLSUBDIRS:%=%/__install__)
147 [ -d $(bindir) ] || $(MKDIR) $(bindir)
148 $(INSTALL_PROGRAM) wine $(bindir)/wine
149 $(INSTALL_PROGRAM) loader/dos/dosmod $(bindir)/dosmod
150 -$(LDCONFIG)
152 uninstall:: $(INSTALLSUBDIRS:%=%/__uninstall__)
153 cd $(libdir) && $(RM) libwine.a libwine.so libwine.so.$(SOVERSION)
154 cd $(bindir) && $(RM) wine dosmod
156 lib$(MODULE).so.$(SOVERSION): $(OBJS) Makefile.in Make.rules.in
157 $(LDSHARED) $(OBJS) -o $@
159 lib$(MODULE).so: lib$(MODULE).so.$(SOVERSION)
160 $(RM) $@ && $(LN_S) lib$(MODULE).so.$(SOVERSION) $@
162 lib$(MODULE).a: $(OBJS) Makefile.in Make.rules.in
163 $(RM) $@
164 $(AR) $@ $(OBJS)
165 $(RANLIB) $@
167 $(EMUOBJS) $(LIBOBJS) $(DLLOBJS) $(PROGRAMS) $(LIBPROGRAMS): dummy
168 @cd `dirname $@` && $(MAKE) `basename $@`
170 $(EMUOBJS) $(LIBOBJS) $(DLLOBJS) $(PROGRAMS) $(DLLDIR): tools
172 $(LIBPROGRAMS): tools dlls lib$(MODULE).$(LIBEXT)
174 $(LIBLINTS) $(EMULINTS): dummy
175 @cd `dirname $@` && $(MAKE) lint
177 checklink::
178 $(CC) -o checklink $(TOPSRCDIR)/library/checklink.c -L. -lwine $(LIBS) && $(RM) checklink
180 install_programs: dummy
181 @cd programs && $(MAKE) install
183 uninstall_programs: dummy
184 @cd programs && $(MAKE) uninstall
186 checklink::
187 @cd dlls && $(MAKE) checklink
189 TAGS etags:
190 etags `find $(TOPSRCDIR) -name '*.[chS]' -print | grep -v dbgmain`
192 manpages:
193 -$(MKDIR) $(TOPOBJDIR)/documentation/man3w
194 for i in $(SUBDIRS); do (cd $$i && $(MAKE) man); done
196 htmlpages:
197 -$(MKDIR) $(TOPOBJDIR)/documentation/html
198 for i in $(SUBDIRS); do (cd $$i && $(MAKE) html); done
200 clean::
201 $(RM) wine libwine.so.1.0 TAGS
203 distclean: clean
204 $(RM) config.* Make.rules dlls/Makedll.rules include/config.h documentation/wine.man documentation/wine.conf.man
205 $(RM) `find . \( -name Makefile -o -size 0 \) -print`
207 # We depend on configure above for checks, so we better don't use this rule.
208 #configure: configure.in
209 # autoconf
211 include/config.h.in: configure.in include/acconfig.h
212 autoheader -l include
214 ### Dependencies: