- Make the ListView control Unicode ready.
[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 # 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
13 #
14
15 # Directories
16
17 TOPSRCDIR = @top_srcdir@
18 TOPOBJDIR = .
19 SRCDIR    = @srcdir@
20 VPATH     = @srcdir@
21 LIBEXT    = @LIBEXT@
22 LDCONFIG  = @LDCONFIG@
23 MODULE    = wine
24 IMPORTS   = ntdll
25
26 # Stand-alone programs
27 PROGRAMS = \
28         server/wineserver
29
30 # Programs that link with libwine
31 LIBPROGRAMS = \
32         debugger/winedbg \
33         programs/wineconsole/wineconsole
34
35 # Libraries (not dlls) to build
36 LIBRARIES = \
37         library/libwine.$(LIBEXT) \
38         ole/libwine_uuid.a \
39         tsx11/libwine_tsx11.$(LIBEXT) \
40         unicode/libwine_unicode.$(LIBEXT)
41
42 # Libraries symlinks to create at the top level
43 LIBSYMLINKS = \
44         libwine.$(LIBEXT) \
45         libwine_tsx11.$(LIBEXT) \
46         libwine_unicode.$(LIBEXT) \
47         libwine_uuid.a
48
49 # Sub-directories to run make depend/clean into
50 SUBDIRS = \
51         $(INSTALLSUBDIRS) \
52         libtest \
53         miscemu \
54         programs
55
56 # Sub-directories to run make install into
57 INSTALLSUBDIRS = \
58         debugger \
59         dlls \
60         documentation \
61         include \
62         library \
63         ole \
64         programs/wineconsole \
65         server \
66         tools \
67         tsx11 \
68         unicode
69
70 EMUOBJS = \
71         miscemu/miscemu.o
72
73 all: Make.rules $(PROGRAMS) $(LIBPROGRAMS) $(LIBSYMLINKS) wine
74         @echo "Wine build complete."
75
76 WINAPI_CHECK_EXTRA_FLAGS = --global
77
78 @MAKE_RULES@
79
80 Make.rules: Make.rules.in configure
81         @echo $? is newer than 'Make.rules', please rerun ./configure!
82         @exit 1
83
84 wine: dlls $(EMUOBJS)
85         $(CC) -o wine $(EMUOBJS) -L$(DLLDIR) $(IMPORTS:%=-l%) $(LIBWINE) $(LIBUNICODE) $(LIBS) $(LDFLAGS)
86
87 install:: all $(INSTALLSUBDIRS:%=%/__install__)
88         [ -d $(bindir) ] || $(MKDIR) $(bindir)
89         $(INSTALL_PROGRAM) wine $(bindir)/wine
90         -$(LDCONFIG)
91
92 uninstall:: $(INSTALLSUBDIRS:%=%/__uninstall__)
93         cd $(bindir) && $(RM) wine
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 test::
136         @cd programs/winetest && $(MAKE) test
137         @cd dlls && $(MAKE) test
138
139 TAGS etags:
140         etags `find $(TOPSRCDIR) -name '*.[chS]' -print | grep -v dbgmain`
141
142 manpages:
143         -$(MKDIR) $(TOPOBJDIR)/documentation/man3w
144         for i in $(SUBDIRS); do (cd $$i && $(MAKE) man); done
145
146 htmlpages:
147         -$(MKDIR) $(TOPOBJDIR)/documentation/html
148         for i in $(SUBDIRS); do (cd $$i && $(MAKE) html); done
149
150 clean::
151         $(RM) wine
152
153 distclean: clean
154         $(RM) config.* TAGS Make.rules dlls/Makedll.rules programs/Makeprog.rules include/config.h documentation/wine.man documentation/wine.conf.man tools/winelauncher
155         $(RM) `find . \( -name Makefile -o -size 0 \) -print`
156
157 ### Dependencies: