tools/wine.inf: Add d3d8.dll to the fake dlls list.
[wine/multimedia.git] / Makefile.in
blobc1348e6e9675d2bbb61842a23aacc3502a90106e
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 # crosstest: build tests as native windows applications (requires MinGW)
9 # install-lib: install libraries needed to run applications
10 # install-dev: install development environment
11 # install: install everything
12 # uninstall: uninstall everything
13 # depend: create the dependencies
14 # etags: create a TAGS file for Emacs.
15 # manpages: compile manpages for Wine API
16 # htmlpages: compile html pages for Wine API
17 # sgmlpages: compile sgml source for the Wine API Guide
19 # Directories
21 TOPSRCDIR = @top_srcdir@
22 TOPOBJDIR = .
23 SRCDIR = @srcdir@
24 VPATH = @srcdir@
25 LIBEXT = @LIBEXT@
26 MODULE = none
28 FONTSSUBDIRS = @FONTSSUBDIRS@
30 # Sub-directories to run make depend/clean into
31 SUBDIRS = \
32 dlls \
33 documentation \
34 fonts \
35 include \
36 libs \
37 loader \
38 programs \
39 server \
40 tools
42 # Sub-directories to install for install-lib
43 INSTALLLIBSUBDIRS = \
44 $(FONTSSUBDIRS) \
45 loader \
46 programs \
47 server
49 # Sub-directories to install for install-dev
50 INSTALLDEVSUBDIRS = include
52 # Sub-directories to install for both install-lib and install-dev
53 INSTALLBOTHSUBDIRS = dlls libs tools
55 INSTALLSUBDIRS = $(INSTALLDEVSUBDIRS) $(INSTALLLIBSUBDIRS)
57 # Sub-directories to run make test into
58 TESTSUBDIRS = dlls
60 all: Make.rules wine
61 @echo "Wine build complete."
63 WINAPI_CHECK_EXTRA_FLAGS = --global
65 @MAKE_RULES@
67 Make.rules: Make.rules.in configure
68 @echo $? is newer than 'Make.rules', please rerun ./configure!
69 @exit 1
71 wine: $(WINEWRAPPER)
72 $(RM) $@ && $(LN_S) $(WINEWRAPPER) $@
74 # Installation rules
76 install-aclocal: dummy
77 $(MKINSTALLDIRS) $(DESTDIR)$(datadir)/aclocal
78 $(INSTALL_DATA) $(SRCDIR)/aclocal.m4 $(DESTDIR)$(datadir)/aclocal/wine.m4
80 install-lib:: $(INSTALLLIBSUBDIRS:%=%/__install__) $(INSTALLBOTHSUBDIRS:%=%/__install-lib__)
82 install-dev:: $(INSTALLDEVSUBDIRS:%=%/__install__) $(INSTALLBOTHSUBDIRS:%=%/__install-dev__) install-aclocal
84 install:: install-lib install-dev install-aclocal
86 uninstall:: $(INSTALLBOTHSUBDIRS:%=%/__uninstall__)
87 $(RM) $(DESTDIR)$(datadir)/aclocal/wine.m4
88 -rmdir $(DESTDIR)$(datadir)/wine $(DESTDIR)$(datadir)/aclocal
90 .PHONY: install-aclocal
92 # Dependencies between directories
94 all: $(INSTALLSUBDIRS) $(INSTALLBOTHSUBDIRS)
95 dlls: include libs tools
96 fonts loader server: libs tools
97 programs: dlls include libs tools
98 include: libs tools
99 tools: libs
101 dlls/__install-lib__ dlls/__install-dev__: libs tools include
102 include/__install__: include libs tools
103 libs/__install-lib__ libs/__install-dev__: libs
104 fonts/__install__ loader/__install__ server/__install__: libs tools
105 programs/__install__: libs tools include dlls/__install-lib__
106 tools/__install-lib__ tools/__install-dev__: tools
108 $(SUBDIRS:%=%/__depend__): tools include
110 # Test rules
112 checklink:: $(TESTSUBDIRS:%=%/__checklink__)
114 check test:: $(TESTSUBDIRS:%=%/__test__)
115 $(TESTSUBDIRS:%=%/__test__): wine
117 crosstest:: $(TESTSUBDIRS:%=%/__crosstest__)
118 $(TESTSUBDIRS:%=%/__crosstest__): tools include
120 # Misc rules
122 TAGS etags:
123 find $(TOPSRCDIR)/ -name '*.[ch]' -print | etags -
125 tags ctags:
126 find $(TOPSRCDIR)/ -name '*.[ch]' -print | ctags --c-types=+px -L -
128 manpages htmlpages sgmlpages:
129 cd documentation && $(MAKE) $@
131 clean::
132 $(RM) wine
134 distclean: clean
135 $(RM) config.* configure.lineno TAGS tags Make.rules dlls/Makedll.rules dlls/Makeimplib.rules dlls/Maketest.rules programs/Makeprog.rules libs/Makelib.rules include/config.h
136 $(RM) -r autom4te.cache
137 $(RM) `find . \( -name Makefile -o -size 0 \) -print`
139 .PHONY: manpages htmlpages sgmlpages distclean
141 ### Dependencies: