Change the message trace indentation to be consistent by thread.
[wine] / Makefile.in
1 # This Makefile understands the following targets:
2 #
3 # all (default):        build wine
4 # clean:                remove all intermediate files
5 # distclean:            also remove all files created by configure
6 # install:              install everything
7 # uninstall:            uninstall everything
8 # depend:               create the dependencies
9 # etags:                create a TAGS file for Emacs.
10 # manpages:             compile manpages for Wine API
11 #
12
13 # Directories
14
15 TOPSRCDIR = @top_srcdir@
16 TOPOBJDIR = .
17 SRCDIR    = @srcdir@
18 VPATH     = @srcdir@
19 LIBEXT    = @LIBEXT@
20 LDCONFIG  = @LDCONFIG@
21 MODULE    = wine
22 IMPORTS   = ntdll
23
24 # Stand-alone programs
25 PROGRAMS = \
26         loader/dos/dosmod \
27         server/wineserver
28
29 # Programs that link with libwine
30 LIBPROGRAMS = \
31         debugger/winedbg \
32         programs/wineconsole/wineconsole
33
34 # Libraries (not dlls) to build
35 LIBRARIES = \
36         library/libwine.$(LIBEXT) \
37         ole/libwine_uuid.a \
38         tsx11/libwine_tsx11.$(LIBEXT) \
39         unicode/libwine_unicode.$(LIBEXT)
40
41 # Libraries symlinks to create at the top level
42 LIBSYMLINKS = \
43         libwine.$(LIBEXT) \
44         libwine_tsx11.$(LIBEXT) \
45         libwine_unicode.$(LIBEXT) \
46         libwine_uuid.a
47
48 # Sub-directories to run make depend/clean into
49 SUBDIRS = \
50         $(INSTALLSUBDIRS) \
51         libtest \
52         miscemu \
53         programs
54
55 # Sub-directories to run make install into
56 INSTALLSUBDIRS = \
57         debugger \
58         dlls \
59         documentation \
60         include \
61         library \
62         ole \
63         programs/wineconsole \
64         server \
65         tools \
66         tsx11 \
67         unicode
68
69 EMUOBJS = \
70         miscemu/miscemu.o
71
72 all: Make.rules $(PROGRAMS) $(LIBPROGRAMS) $(LIBSYMLINKS) wine
73         @echo "Wine build complete."
74
75 WINAPI_CHECK_EXTRA_FLAGS = --global
76
77 @MAKE_RULES@
78
79 Make.rules: Make.rules.in configure
80         @echo $? is newer than 'Make.rules', please rerun ./configure!
81         @exit 1
82
83 wine: dlls $(EMUOBJS)
84         $(CC) -o wine $(EMUOBJS) -L$(DLLDIR) $(IMPORTS:%=-l%) $(LIBWINE) $(LIBUNICODE) $(LIBS) $(LDFLAGS)
85
86 install:: all $(INSTALLSUBDIRS:%=%/__install__)
87         [ -d $(bindir) ] || $(MKDIR) $(bindir)
88         $(INSTALL_PROGRAM) wine $(bindir)/wine
89         $(INSTALL_PROGRAM) loader/dos/dosmod $(bindir)/dosmod
90         -$(LDCONFIG)
91
92 uninstall:: $(INSTALLSUBDIRS:%=%/__uninstall__)
93         cd $(bindir) && $(RM) wine dosmod
94
95 $(EMUOBJS) $(PROGRAMS) $(LIBPROGRAMS) $(LIBRARIES): dummy
96         @cd `dirname $@` && $(MAKE) `basename $@`
97
98 libwine.$(LIBEXT): library/libwine.$(LIBEXT)
99         $(RM) $@ && $(LN_S) library/libwine.$(LIBEXT) $@
100
101 libwine_tsx11.$(LIBEXT): tsx11/libwine_tsx11.$(LIBEXT)
102         $(RM) $@ && $(LN_S) tsx11/libwine_tsx11.$(LIBEXT) $@
103
104 libwine_unicode.$(LIBEXT): unicode/libwine_unicode.$(LIBEXT)
105         $(RM) $@ && $(LN_S) unicode/libwine_unicode.$(LIBEXT) $@
106
107 libwine_uuid.a: ole/libwine_uuid.a
108         $(RM) $@ && $(LN_S) ole/libwine_uuid.a $@
109
110 # Dependencies between directories
111
112 $(PROGRAMS): tools
113
114 $(EMUOBJS): tools dlls
115
116 $(LIBPROGRAMS): tools dlls wine
117
118 server tools: unicode/libwine_unicode.$(LIBEXT)
119
120 dlls: tools $(LIBRARIES)
121
122 checklink::
123         $(CC) -o checklink $(TOPSRCDIR)/library/checklink.c $(LIBWINE) $(LIBS) && $(RM) checklink
124
125 install_programs: dummy
126         @cd programs && $(MAKE) install
127
128 uninstall_programs: dummy
129         @cd programs && $(MAKE) uninstall
130
131 checklink::
132         @cd dlls && $(MAKE) checklink
133         @cd debugger && $(MAKE) checklink
134
135 TAGS etags:
136         etags `find $(TOPSRCDIR) -name '*.[chS]' -print | grep -v dbgmain`
137
138 manpages:
139         -$(MKDIR) $(TOPOBJDIR)/documentation/man3w
140         for i in $(SUBDIRS); do (cd $$i && $(MAKE) man); done
141
142 htmlpages:
143         -$(MKDIR) $(TOPOBJDIR)/documentation/html
144         for i in $(SUBDIRS); do (cd $$i && $(MAKE) html); done
145
146 clean::
147         $(RM) wine
148
149 distclean: clean
150         $(RM) config.* TAGS Make.rules dlls/Makedll.rules programs/Makeprog.rules include/config.h documentation/wine.man documentation/wine.conf.man tools/winelauncher
151         $(RM) `find . \( -name Makefile -o -size 0 \) -print`
152
153 ### Dependencies: