Correct handling of strings in setValue.
[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
33 # Libraries (not dlls) to build
34 LIBRARIES = \
35         library/libwine.$(LIBEXT) \
36         ole/libwine_uuid.a \
37         tsx11/libwine_tsx11.$(LIBEXT) \
38         unicode/libwine_unicode.$(LIBEXT)
39
40 # Libraries symlinks to create at the top level
41 LIBSYMLINKS = \
42         libwine.$(LIBEXT) \
43         libwine_tsx11.$(LIBEXT) \
44         libwine_unicode.$(LIBEXT) \
45         libwine_uuid.a
46
47 # Sub-directories to run make depend/clean into
48 SUBDIRS = \
49         $(INSTALLSUBDIRS) \
50         libtest \
51         miscemu \
52         programs
53
54 # Sub-directories to run make install into
55 INSTALLSUBDIRS = \
56         debugger \
57         dlls \
58         documentation \
59         include \
60         library \
61         ole \
62         server \
63         tools \
64         tsx11 \
65         unicode
66
67 EMUOBJS = \
68         miscemu/miscemu.o
69
70 all: Make.rules $(PROGRAMS) $(LIBPROGRAMS) $(LIBSYMLINKS) wine
71         @echo "Wine build complete."
72
73 WINAPI_CHECK_EXTRA_FLAGS = --global
74
75 @MAKE_RULES@
76
77 Make.rules: Make.rules.in configure
78         @echo $? is newer than 'Make.rules', please rerun ./configure!
79         @exit 1
80
81 wine: dlls $(EMUOBJS)
82         $(CC) -o wine $(EMUOBJS) -L$(DLLDIR) $(IMPORTS:%=-l%) $(LIBWINE) $(LIBUNICODE) $(LIBS) $(LDFLAGS)
83
84 install:: all $(INSTALLSUBDIRS:%=%/__install__)
85         [ -d $(bindir) ] || $(MKDIR) $(bindir)
86         $(INSTALL_PROGRAM) wine $(bindir)/wine
87         $(INSTALL_PROGRAM) loader/dos/dosmod $(bindir)/dosmod
88         -$(LDCONFIG)
89
90 uninstall:: $(INSTALLSUBDIRS:%=%/__uninstall__)
91         cd $(bindir) && $(RM) wine dosmod
92
93 $(EMUOBJS) $(PROGRAMS) $(LIBPROGRAMS) $(LIBRARIES): dummy
94         @cd `dirname $@` && $(MAKE) `basename $@`
95
96 libwine.$(LIBEXT): library/libwine.$(LIBEXT)
97         $(RM) $@ && $(LN_S) library/libwine.$(LIBEXT) $@
98
99 libwine_tsx11.$(LIBEXT): tsx11/libwine_tsx11.$(LIBEXT)
100         $(RM) $@ && $(LN_S) tsx11/libwine_tsx11.$(LIBEXT) $@
101
102 libwine_unicode.$(LIBEXT): unicode/libwine_unicode.$(LIBEXT)
103         $(RM) $@ && $(LN_S) unicode/libwine_unicode.$(LIBEXT) $@
104
105 libwine_uuid.a: ole/libwine_uuid.a
106         $(RM) $@ && $(LN_S) ole/libwine_uuid.a $@
107
108 # Dependencies between directories
109
110 $(PROGRAMS): tools
111
112 $(EMUOBJS): tools dlls
113
114 $(LIBPROGRAMS): tools dlls wine
115
116 server tools: unicode/libwine_unicode.$(LIBEXT)
117
118 dlls: tools $(LIBRARIES)
119
120 checklink::
121         $(CC) -o checklink $(TOPSRCDIR)/library/checklink.c $(LIBWINE) $(LIBS) && $(RM) checklink
122
123 install_programs: dummy
124         @cd programs && $(MAKE) install
125
126 uninstall_programs: dummy
127         @cd programs && $(MAKE) uninstall
128
129 checklink::
130         @cd dlls && $(MAKE) checklink
131         @cd debugger && $(MAKE) checklink
132
133 TAGS etags:
134         etags `find $(TOPSRCDIR) -name '*.[chS]' -print | grep -v dbgmain`
135
136 manpages:
137         -$(MKDIR) $(TOPOBJDIR)/documentation/man3w
138         for i in $(SUBDIRS); do (cd $$i && $(MAKE) man); done
139
140 htmlpages:
141         -$(MKDIR) $(TOPOBJDIR)/documentation/html
142         for i in $(SUBDIRS); do (cd $$i && $(MAKE) html); done
143
144 clean::
145         $(RM) wine
146
147 distclean: clean
148         $(RM) config.* TAGS Make.rules dlls/Makedll.rules programs/Makeprog.rules include/config.h documentation/wine.man documentation/wine.conf.man tools/winelauncher
149         $(RM) `find . \( -name Makefile -o -size 0 \) -print`
150
151 ### Dependencies: