- stubs for SHLWAPI.295 (create a URL shortcut ?) and SHLWAPI.394
[wine/multimedia.git] / Makefile.in
blob92238dc1a3915575479d8c04250d980aa3451e89
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-lib: install libraries needed to run applications
9 # install-dev: install development environment
10 # install: install everything
11 # uninstall: uninstall everything
12 # depend: create the dependencies
13 # etags: create a TAGS file for Emacs.
14 # manpages: compile manpages for Wine API
17 # Directories
19 TOPSRCDIR = @top_srcdir@
20 TOPOBJDIR = .
21 SRCDIR = @srcdir@
22 VPATH = @srcdir@
23 LIBEXT = @LIBEXT@
24 LDCONFIG = @LDCONFIG@
25 LDD = @LDD@
26 MODULE = none
28 # Sub-directories to run make depend/clean into
29 SUBDIRS = \
30 dlls \
31 documentation \
32 include \
33 library \
34 miscemu \
35 ole \
36 programs \
37 server \
38 tools \
39 tsx11 \
40 unicode
42 # Sub-directories to install for install-lib
43 INSTALLLIBSUBDIRS = \
44 dlls \
45 documentation \
46 library \
47 miscemu \
48 programs \
49 server \
50 tsx11 \
51 unicode
53 # Sub-directories to install for install-dev
54 INSTALLDEVSUBDIRS = \
55 include \
56 ole \
57 tools
59 INSTALLSUBDIRS = $(INSTALLDEVSUBDIRS) $(INSTALLLIBSUBDIRS)
61 # Sub-directories to run make test into
62 TESTSUBDIRS = \
63 dlls \
64 programs
66 EMUOBJS = \
67 miscemu/miscemu.o
69 all: Make.rules wine
70 @echo "Wine build complete."
72 WINAPI_CHECK_EXTRA_FLAGS = --global
74 @MAKE_RULES@
76 Make.rules: Make.rules.in configure
77 @echo $? is newer than 'Make.rules', please rerun ./configure!
78 @exit 1
80 wine: $(WINEWRAPPER)
81 $(RM) $@ && $(LN_S) $(WINEWRAPPER) $@
83 # Installation rules
85 install-lib:: $(INSTALLLIBSUBDIRS:%=%/__install__)
87 install-dev:: $(INSTALLDEVSUBDIRS:%=%/__install__)
89 install::
90 -$(LDCONFIG)
91 @if test -n "`LANG=C $(LDD) $(bindir)/wine|grep not.found`"; \
92 then \
93 echo "*************************************************" ; \
94 echo "*************************************************" ; \
95 echo "The installed Wine libraries will not be found!" ; \
96 echo "You can either:" ; \
97 echo " Add the line '$(libdir)' to /etc/ld.so.conf" ; \
98 echo ' export LD_LIBRARY_PATH=$$LD_LIBRARY_PATH:$(libdir)' ; \
99 echo "*************************************************" ; \
100 echo "*************************************************" ; \
103 .PHONY: install-lib install-dev
105 # Dependencies between directories
107 all: $(SUBDIRS)
108 dlls: library ole tools tsx11 unicode
109 server: library tools unicode
110 miscemu programs: dlls library ole tools tsx11 unicode
111 tools: library unicode
113 dlls/__install__: library ole tools tsx11 unicode
114 server/__install__: library tools unicode
115 miscemu/__install__ programs/__install__: library ole tools tsx11 unicode dlls/__install__
116 library/__install__: library
117 ole/__install__: ole
118 tools/__install__: tools
119 unicode/__install__: unicode
121 # Test rules
123 checklink::
124 $(CC) -o checklink $(TOPSRCDIR)/library/checklink.c && $(RM) checklink
126 checklink::
127 @cd dlls && $(MAKE) checklink
128 @cd programs && $(MAKE) checklink
130 test_environment: dummy
131 @cd programs/winetest && $(MAKE) all
133 $(TESTSUBDIRS:%=%/__test__): test_environment
135 check test:: $(TESTSUBDIRS:%=%/__test__)
137 .PHONY: checklink test_environment
139 # Misc rules
141 TAGS etags:
142 etags `find $(TOPSRCDIR) -name '*.[ch]' -a -not -name '*.spec.c' -a -not -name '*.glue.c' -a -not -name '*.dbg.c' -print`
144 manpages:
145 $(MKINSTALLDIRS) $(TOPOBJDIR)/documentation/man3w
146 for i in $(SUBDIRS); do (cd $$i && $(MAKE) man); done
148 htmlpages:
149 $(MKINSTALLDIRS) $(TOPOBJDIR)/documentation/html
150 for i in $(SUBDIRS); do (cd $$i && $(MAKE) html); done
152 clean::
153 $(RM) wine
155 distclean: clean
156 $(RM) config.* TAGS Make.rules dlls/Makedll.rules programs/Makeprog.rules include/config.h
157 $(RM) -r autom4te.cache
158 $(RM) `find . \( -name Makefile -o -size 0 \) -print`
160 .PHONY: manpages htmlpages distclean
162 ### Dependencies: