Skip tests of GetAcceptLanguagesA if a correct call to the function
[wine.git] / Makefile.in
blobede2e78fcc88921b63e037c099b6fce0648e98aa
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
15 # htmlpages: compile html pages for Wine API
16 # sgmlpages: compile sgml source for the Wine API Guide
18 # Directories
20 TOPSRCDIR = @top_srcdir@
21 TOPOBJDIR = .
22 SRCDIR = @srcdir@
23 VPATH = @srcdir@
24 LIBEXT = @LIBEXT@
25 LDCONFIG = @LDCONFIG@
26 LDD = @LDD@
27 MODULE = none
29 # Sub-directories to run make depend/clean into
30 SUBDIRS = \
31 dlls \
32 documentation \
33 include \
34 libs \
35 loader \
36 programs \
37 server \
38 tools
40 # Sub-directories to install for install-lib
41 INSTALLLIBSUBDIRS = \
42 documentation \
43 loader \
44 programs \
45 server
47 # Sub-directories to install for install-dev
48 INSTALLDEVSUBDIRS = include tools
50 # Sub-directories to install for both install-lib and install-dev
51 INSTALLBOTHSUBDIRS = dlls libs
53 INSTALLSUBDIRS = $(INSTALLDEVSUBDIRS) $(INSTALLLIBSUBDIRS)
55 # Sub-directories to run make test into
56 TESTSUBDIRS = \
57 dlls \
58 programs
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) $(datadir)/aclocal
78 $(INSTALL_DATA) $(SRCDIR)/aclocal.m4 $(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
85 -$(LDCONFIG)
86 @if test -n "`LANG=C $(LDD) $(bindir)/wine|grep not.found`"; \
87 then \
88 echo "*************************************************" ; \
89 echo "*************************************************" ; \
90 echo "The installed Wine libraries will not be found!" ; \
91 echo "You can either:" ; \
92 echo " Add the line '$(libdir)' to /etc/ld.so.conf and run /sbin/ldconfig" ; \
93 echo ' export LD_LIBRARY_PATH=$$LD_LIBRARY_PATH:$(libdir)' ; \
94 echo "*************************************************" ; \
95 echo "*************************************************" ; \
98 uninstall:: $(INSTALLBOTHSUBDIRS:%=%/__uninstall__)
99 $(RM) $(datadir)/aclocal/wine.m4
100 -rmdir $(datadir)/wine $(datadir)/aclocal
102 .PHONY: install-aclocal
104 # Dependencies between directories
106 all: $(SUBDIRS)
107 dlls: libs tools
108 loader server: libs tools
109 programs: dlls libs tools
110 tools: libs
112 dlls/__install-lib__ dlls/__install-dev__: libs tools
113 libs/__install-lib__ libs/__install-dev__: libs
114 loader/__install__ server/__install__: libs tools
115 programs/__install__: libs tools dlls/__install-lib__
116 tools/__install__: tools
118 # Test rules
120 checklink:: $(TESTSUBDIRS:%=%/__checklink__)
122 check test:: wine $(TESTSUBDIRS:%=%/__test__)
124 crosstest:: tools $(TESTSUBDIRS:%=%/__crosstest__)
126 # Misc rules
128 TAGS etags:
129 find $(TOPSRCDIR) -name '*.[ch]' -a -not -name '*.spec.c' -a -not -name '*.dbg.c' -print | etags -
131 tags ctags:
132 find $(TOPSRCDIR) -name '*.[ch]' -a -not -name '*.spec.c' -a -not -name '*.dbg.c' -print | ctags --c-types=+px -L -
134 manpages:
135 $(MKINSTALLDIRS) $(TOPOBJDIR)/documentation/man3w
136 cd dlls && $(MAKE) man
138 htmlpages:
139 $(MKINSTALLDIRS) $(TOPOBJDIR)/documentation/html
140 cd dlls && $(MAKE) doc-html
142 sgmlpages:
143 $(MKINSTALLDIRS) $(TOPOBJDIR)/documentation/api-guide
144 cd dlls && $(MAKE) doc-sgml
146 clean::
147 $(RM) wine
149 distclean: clean
150 $(RM) config.* configure.lineno TAGS tags Make.rules dlls/Makedll.rules dlls/Maketest.rules programs/Makeprog.rules libs/Makelib.rules include/config.h
151 $(RM) -r autom4te.cache
152 $(RM) `find . \( -name Makefile -o -size 0 \) -print`
154 .PHONY: manpages htmlpages distclean
156 ### Dependencies: