Added some stubs.
[wine/multimedia.git] / Makefile.in
blobcf35f808af919da84d263a32c1b1a8dd0139a7b9
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 # test: run tests
7 # testclean: clean test results to force running all tests again
8 # install: install everything
9 # uninstall: uninstall everything
10 # depend: create the dependencies
11 # etags: create a TAGS file for Emacs.
12 # manpages: compile manpages for Wine API
15 # Directories
17 TOPSRCDIR = @top_srcdir@
18 TOPOBJDIR = .
19 SRCDIR = @srcdir@
20 VPATH = @srcdir@
21 LIBEXT = @LIBEXT@
22 LDCONFIG = @LDCONFIG@
23 MODULE = wine
24 IMPORTS = ntdll.dll
26 # Stand-alone programs
27 PROGRAMS = \
28 server/wineserver
30 # Programs that link with libwine
31 LIBPROGRAMS = \
32 debugger/winedbg \
33 programs/wineconsole/wineconsole
35 # Libraries (not dlls) to build
36 LIBRARIES = \
37 library/libwine.$(LIBEXT) \
38 ole/libwine_uuid.a \
39 tsx11/libwine_tsx11.$(LIBEXT) \
40 unicode/libwine_unicode.$(LIBEXT)
42 # Dlls that we need to link against (should go away)
43 LINKABLE_DLLS = winspool.drv x11drv.dll user32.dll gdi32.dll kernel32.dll ntdll.dll
45 # Libraries symlinks to create at the top level
46 LIBSYMLINKS = \
47 $(LINKABLE_DLLS:%=lib%.$(LIBEXT)) \
48 libwine.$(LIBEXT) \
49 libwine_tsx11.$(LIBEXT) \
50 libwine_unicode.$(LIBEXT) \
51 libwine_uuid.a
53 # Sub-directories to run make depend/clean into
54 SUBDIRS = \
55 $(INSTALLSUBDIRS) \
56 libtest \
57 miscemu \
58 programs
60 # Sub-directories to run make install into
61 INSTALLSUBDIRS = \
62 debugger \
63 dlls \
64 documentation \
65 include \
66 library \
67 ole \
68 programs/wineconsole \
69 server \
70 tools \
71 tsx11 \
72 unicode
74 EMUOBJS = \
75 miscemu/miscemu.o
77 all: Make.rules $(PROGRAMS) $(LIBPROGRAMS) wine
78 @echo "Wine build complete."
80 WINAPI_CHECK_EXTRA_FLAGS = --global
82 @MAKE_RULES@
84 Make.rules: Make.rules.in configure
85 @echo $? is newer than 'Make.rules', please rerun ./configure!
86 @exit 1
88 wine: $(EMUOBJS) $(LIBSYMLINKS) $(IMPORTS:%=lib%.$(LIBEXT)) library/libwine.$(LIBEXT)
89 $(CC) -o wine $(EMUOBJS) -L. $(IMPORTS:%=-l%) $(LIBWINE) $(LIBS) $(LDFLAGS)
91 install_wine: dummy
92 [ -d $(bindir) ] || $(MKDIR) $(bindir)
93 $(INSTALL_PROGRAM) wine $(bindir)/wine
95 install:: all install_wine $(INSTALLSUBDIRS:%=%/__install__)
96 -$(LDCONFIG)
98 uninstall:: $(INSTALLSUBDIRS:%=%/__uninstall__)
99 cd $(bindir) && $(RM) wine
101 $(EMUOBJS) $(PROGRAMS) $(LIBPROGRAMS) $(LIBRARIES): dummy
102 @cd `dirname $@` && $(MAKE) `basename $@`
104 # Symlinks to libraries that we need to link against
106 libwine.$(LIBEXT): library/libwine.$(LIBEXT)
107 $(RM) $@ && $(LN_S) library/libwine.$(LIBEXT) $@
109 libwine_tsx11.$(LIBEXT): tsx11/libwine_tsx11.$(LIBEXT)
110 $(RM) $@ && $(LN_S) tsx11/libwine_tsx11.$(LIBEXT) $@
112 libwine_unicode.$(LIBEXT): unicode/libwine_unicode.$(LIBEXT)
113 $(RM) $@ && $(LN_S) unicode/libwine_unicode.$(LIBEXT) $@
115 libwine_uuid.a: ole/libwine_uuid.a
116 $(RM) $@ && $(LN_S) ole/libwine_uuid.a $@
118 libwinspool.drv.$(LIBEXT): dlls/winspool.drv$(DLLEXT)
119 $(RM) $@ && $(LN_S) dlls/winspool.drv$(DLLEXT) $@
121 libx11drv.dll.$(LIBEXT): dlls/x11drv.dll$(DLLEXT)
122 $(RM) $@ && $(LN_S) dlls/x11drv.dll$(DLLEXT) $@
124 libuser32.dll.$(LIBEXT): dlls/user32.dll$(DLLEXT)
125 $(RM) $@ && $(LN_S) dlls/user32.dll$(DLLEXT) $@
127 libgdi32.dll.$(LIBEXT): dlls/gdi32.dll$(DLLEXT)
128 $(RM) $@ && $(LN_S) dlls/gdi32.dll$(DLLEXT) $@
130 libkernel32.dll.$(LIBEXT): dlls/kernel32.dll$(DLLEXT)
131 $(RM) $@ && $(LN_S) dlls/kernel32.dll$(DLLEXT) $@
133 libntdll.dll.$(LIBEXT): dlls/ntdll.dll$(DLLEXT)
134 $(RM) $@ && $(LN_S) dlls/ntdll.dll$(DLLEXT) $@
136 $(LINKABLE_DLLS:%=dlls/%$(DLLEXT)): dlls
138 # Dependencies between directories
140 $(PROGRAMS): tools
142 $(EMUOBJS): tools dlls
144 $(LIBPROGRAMS): tools dlls wine
146 server tools: unicode/libwine_unicode.$(LIBEXT)
148 dlls: tools $(LIBRARIES)
150 checklink::
151 $(CC) -o checklink $(TOPSRCDIR)/library/checklink.c $(LIBWINE) $(LIBS) && $(RM) checklink
153 install_programs: dummy
154 @cd programs && $(MAKE) install
156 uninstall_programs: dummy
157 @cd programs && $(MAKE) uninstall
159 checklink::
160 @cd dlls && $(MAKE) checklink
161 @cd debugger && $(MAKE) checklink
163 check test::
164 @cd programs/winetest && $(MAKE) test
165 @cd dlls && $(MAKE) test
167 TAGS etags:
168 etags `find $(TOPSRCDIR) -name '*.[chS]' -print | grep -v dbgmain`
170 manpages:
171 -$(MKDIR) $(TOPOBJDIR)/documentation/man3w
172 for i in $(SUBDIRS); do (cd $$i && $(MAKE) man); done
174 htmlpages:
175 -$(MKDIR) $(TOPOBJDIR)/documentation/html
176 for i in $(SUBDIRS); do (cd $$i && $(MAKE) html); done
178 clean::
179 $(RM) wine
181 distclean: clean
182 $(RM) config.* TAGS Make.rules dlls/Makedll.rules programs/Makeprog.rules include/config.h include/wine/version.h
183 $(RM) `find . \( -name Makefile -o -size 0 \) -print`
185 ### Dependencies: