Authors: Jesse Allen <uh_ja@gmx.net>, Lionel Ulmer <lionel.ulmer@free.fr>
[wine/multimedia.git] / Makefile.in
blobbfbdba96d5894fd67b9dc4cecc931f2d8e2768c5
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 LDD = @LDD@
24 MODULE = none
26 # Sub-directories containing stand-alone programs
27 PROGSUBDIRS = \
28 server
30 # Sub-directories containing programs that use some Wine dlls
31 LIBPROGSUBDIRS = \
32 miscemu \
33 programs
35 # Sub-directories containing libraries (not dlls) to build
36 LIBSUBDIRS = \
37 library \
38 ole \
39 tsx11 \
40 unicode
42 # Sub-directories to run make depend/clean/install into
43 SUBDIRS = \
44 $(LIBPROGSUBDIRS) \
45 $(LIBSUBDIRS) \
46 $(PROGSUBDIRS) \
47 dlls \
48 documentation \
49 include \
50 tools
52 # Sub-directories to run make test into
53 TESTSUBDIRS = \
54 dlls \
55 programs
57 EMUOBJS = \
58 miscemu/miscemu.o
60 all: Make.rules $(PROGSUBDIRS) $(LIBPROGSUBDIRS) 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 install:: all $(SUBDIRS:%=%/__install__)
75 -$(LDCONFIG)
76 @if test -n "`LANG=C $(LDD) $(bindir)/wine|grep not.found`"; \
77 then \
78 echo "*************************************************" ; \
79 echo "*************************************************" ; \
80 echo "The installed Wine libraries will not be found!" ; \
81 echo "You can either:" ; \
82 echo " Add the line '$(libdir)' to /etc/ld.so.conf" ; \
83 echo ' export LD_LIBRARY_PATH=$$LD_LIBRARY_PATH:$(libdir)' ; \
84 echo "*************************************************" ; \
85 echo "*************************************************" ; \
88 uninstall:: $(SUBDIRS:%=%/__uninstall__)
90 # Dependencies between directories
92 $(LIBPROGSUBDIRS): tools dlls $(LIBSUBDIRS)
94 $(PROGSUBDIRS): tools $(LIBSUBDIRS)
96 dlls: tools $(LIBSUBDIRS)
98 tools: $(LIBSUBDIRS)
100 checklink::
101 $(CC) -o checklink $(TOPSRCDIR)/library/checklink.c && $(RM) checklink
103 checklink::
104 @cd dlls && $(MAKE) checklink
105 @cd programs && $(MAKE) checklink
107 test_environment: dummy
108 @cd programs/winetest && $(MAKE) all
110 $(TESTSUBDIRS:%=%/__test__): test_environment
112 check test:: $(TESTSUBDIRS:%=%/__test__)
114 TAGS etags:
115 etags `find $(TOPSRCDIR) -name '*.[ch]' -a -not -name '*.spec.c' -a -not -name '*.glue.c' -a -not -name '*.dbg.c' -print`
117 manpages:
118 $(MKINSTALLDIRS) $(TOPOBJDIR)/documentation/man3w
119 for i in $(SUBDIRS); do (cd $$i && $(MAKE) man); done
121 htmlpages:
122 $(MKINSTALLDIRS) $(TOPOBJDIR)/documentation/html
123 for i in $(SUBDIRS); do (cd $$i && $(MAKE) html); done
125 clean::
126 $(RM) wine
128 distclean: clean
129 $(RM) config.* TAGS Make.rules dlls/Makedll.rules programs/Makeprog.rules include/config.h
130 $(RM) -r autom4te.cache
131 $(RM) `find . \( -name Makefile -o -size 0 \) -print`
133 ### Dependencies: