Moved date/time/currency format handling to new lcformat.c.
[wine/wine-kai.git] / Makefile.in
blob3c286b701207fb20255f8b7f538c8e6d0b61f5db
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 sqml 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 library \
35 libs \
36 miscemu \
37 programs \
38 server \
39 tools
41 # Sub-directories to install for install-lib
42 INSTALLLIBSUBDIRS = \
43 documentation \
44 library \
45 miscemu \
46 programs \
47 server
49 # Sub-directories to install for install-dev
50 INSTALLDEVSUBDIRS = include tools
52 # Sub-directories to install for both install-lib and install-dev
53 INSTALLBOTHSUBDIRS = dlls libs
55 INSTALLSUBDIRS = $(INSTALLDEVSUBDIRS) $(INSTALLLIBSUBDIRS)
57 # Sub-directories to run make test into
58 TESTSUBDIRS = \
59 dlls \
60 programs
62 all: Make.rules wine
63 @echo "Wine build complete."
65 WINAPI_CHECK_EXTRA_FLAGS = --global
67 @MAKE_RULES@
69 Make.rules: Make.rules.in configure
70 @echo $? is newer than 'Make.rules', please rerun ./configure!
71 @exit 1
73 wine: $(WINEWRAPPER)
74 $(RM) $@ && $(LN_S) $(WINEWRAPPER) $@
76 # Installation rules
78 install-aclocal: dummy
79 $(MKINSTALLDIRS) $(datadir)/aclocal
80 $(INSTALL_DATA) $(SRCDIR)/aclocal.m4 $(datadir)/aclocal/wine.m4
82 install-lib:: $(INSTALLLIBSUBDIRS:%=%/__install__) $(INSTALLBOTHSUBDIRS:%=%/__install-lib__)
84 install-dev:: $(INSTALLDEVSUBDIRS:%=%/__install__) $(INSTALLBOTHSUBDIRS:%=%/__install-dev__) install-aclocal
86 install:: install-lib install-dev install-aclocal
87 -$(LDCONFIG)
88 @if test -n "`LANG=C $(LDD) $(bindir)/wine|grep not.found`"; \
89 then \
90 echo "*************************************************" ; \
91 echo "*************************************************" ; \
92 echo "The installed Wine libraries will not be found!" ; \
93 echo "You can either:" ; \
94 echo " Add the line '$(libdir)' to /etc/ld.so.conf" ; \
95 echo ' export LD_LIBRARY_PATH=$$LD_LIBRARY_PATH:$(libdir)' ; \
96 echo "*************************************************" ; \
97 echo "*************************************************" ; \
100 uninstall:: $(INSTALLBOTHSUBDIRS:%=%/__uninstall__)
101 $(RM) $(datadir)/aclocal/wine.m4
102 -rmdir $(datadir)/aclocal
104 $(INSTALLBOTHSUBDIRS:%=%/__install-lib__): dummy
105 cd `dirname $@` && $(MAKE) install-lib
107 $(INSTALLBOTHSUBDIRS:%=%/__install-dev__): dummy
108 cd `dirname $@` && $(MAKE) install-dev
110 $(INSTALLBOTHSUBDIRS:%=%/__uninstall__): dummy
111 cd `dirname $@` && $(MAKE) uninstall
113 .PHONY: install-aclocal $(INSTALLBOTHSUBDIRS:%=%/__install-lib__) $(INSTALLBOTHSUBDIRS:%=%/__install-dev__) $(INSTALLBOTHSUBDIRS:%=%/__uninstall__)
115 # Dependencies between directories
117 all: $(SUBDIRS)
118 dlls: library libs tools
119 server: library libs tools
120 miscemu programs: dlls library libs tools
121 tools: library libs
123 dlls/__install-lib__ dlls/__install-dev__: library libs tools
124 server/__install__: library libs tools
125 miscemu/__install__ programs/__install__: library libs tools dlls/__install-lib__
126 library/__install__: library
127 libs/__install__: libs
128 tools/__install__: tools
130 # Test rules
132 checklink:: $(TESTSUBDIRS:%=%/__checklink__)
133 $(CC) -o checklink $(TOPSRCDIR)/library/checklink.c && $(RM) checklink
135 check test:: wine $(TESTSUBDIRS:%=%/__test__)
137 crosstest:: $(TESTSUBDIRS:%=%/__crosstest__)
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 tags ctags:
145 ctags --c-types=+px `find $(TOPSRCDIR) -name '*.[ch]' -a -not -name '*.spec.c' -a -not -name '*.glue.c' -a -not -name '*.dbg.c' -print`
147 manpages:
148 $(MKINSTALLDIRS) $(TOPOBJDIR)/documentation/man3w
149 for i in $(SUBDIRS); do (cd $$i && $(MAKE) man); done
151 htmlpages:
152 $(MKINSTALLDIRS) $(TOPOBJDIR)/documentation/html
153 cd dlls && $(MAKE) doc-html
155 sgmlpages:
156 $(MKINSTALLDIRS) $(TOPOBJDIR)/documentation/api-guide
157 cd dlls && $(MAKE) doc-sgml
159 clean::
160 $(RM) wine
162 distclean: clean
163 $(RM) config.* configure.lineno TAGS tags Make.rules dlls/Makedll.rules dlls/Maketest.rules programs/Makeprog.rules include/config.h
164 $(RM) -r autom4te.cache
165 $(RM) `find . \( -name Makefile -o -size 0 \) -print`
167 .PHONY: manpages htmlpages distclean
169 ### Dependencies: