Use libwine and libwine_unicode directly from their build directory
[wine/multimedia.git] / Makefile.in
blobe6c5c6380d2750683d84d292532fd29f2d3dd4f4
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 # 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
13 # Directories
15 TOPSRCDIR = @top_srcdir@
16 TOPOBJDIR = .
17 SRCDIR = @srcdir@
18 VPATH = @srcdir@
19 LIBEXT = @LIBEXT@
20 LDCONFIG = @LDCONFIG@
21 MODULE = wine
22 IMPORTS = ntdll
24 # Stand-alone programs
25 PROGRAMS = \
26 loader/dos/dosmod \
27 server/wineserver
29 # Programs that link with libwine
30 LIBPROGRAMS = \
31 debugger/winedbg
33 # Libraries (not dlls) to build
34 LIBRARIES = \
35 library/libwine.$(LIBEXT) \
36 tsx11/libwine_tsx11.$(LIBEXT) \
37 unicode/libwine_unicode.$(LIBEXT)
39 # Libraries symlinks to create at the top level
40 LIBSYMLINKS = \
41 libwine.$(LIBEXT) \
42 libwine_tsx11.$(LIBEXT) \
43 libwine_unicode.$(LIBEXT)
45 # Sub-directories to run make depend/clean into
46 SUBDIRS = \
47 debugger \
48 dlls \
49 documentation \
50 include \
51 library \
52 libtest \
53 miscemu \
54 programs \
55 server \
56 tools \
57 tsx11 \
58 unicode
60 # Sub-directories to run make install into
61 INSTALLSUBDIRS = \
62 debugger \
63 dlls \
64 documentation \
65 include \
66 library \
67 server \
68 tools \
69 tsx11 \
70 unicode
72 EMUOBJS = \
73 miscemu/miscemu.o
75 DLLOBJS = $(DLLS:%=dlls/lib%.@LIBEXT@)
77 all: Make.rules $(PROGRAMS) $(LIBPROGRAMS) $(LIBSYMLINKS) wine
78 @echo "Wine build complete."
80 WINAPI_CHECK_EXTRA_FLAGS = --global
82 @MAKE_RULES@
84 Make.rules: Make.rules.in configure
85 @echo $? is newer than 'Make.rules', please rerun ./configure!
86 @exit 1
88 wine: dlls $(EMUOBJS)
89 $(CC) -o wine $(EMUOBJS) $(DLL_LINK) $(LIBS) $(LDFLAGS)
91 install:: all $(INSTALLSUBDIRS:%=%/__install__)
92 [ -d $(bindir) ] || $(MKDIR) $(bindir)
93 $(INSTALL_PROGRAM) wine $(bindir)/wine
94 $(INSTALL_PROGRAM) loader/dos/dosmod $(bindir)/dosmod
95 -$(LDCONFIG)
97 uninstall:: $(INSTALLSUBDIRS:%=%/__uninstall__)
98 cd $(bindir) && $(RM) wine dosmod
100 $(EMUOBJS) $(DLLOBJS) $(PROGRAMS) $(LIBPROGRAMS) $(LIBRARIES): dummy
101 @cd `dirname $@` && $(MAKE) `basename $@`
103 libwine.$(LIBEXT): library/libwine.$(LIBEXT)
104 $(RM) $@ && $(LN_S) library/libwine.$(LIBEXT) $@
106 libwine_tsx11.$(LIBEXT): tsx11/libwine_tsx11.$(LIBEXT)
107 $(RM) $@ && $(LN_S) tsx11/libwine_tsx11.$(LIBEXT) $@
109 libwine_unicode.$(LIBEXT): unicode/libwine_unicode.$(LIBEXT)
110 $(RM) $@ && $(LN_S) unicode/libwine_unicode.$(LIBEXT) $@
112 # Dependencies between directories
114 $(DLLOBJS) $(PROGRAMS): tools
116 $(EMUOBJS): tools dlls
118 $(LIBPROGRAMS): tools dlls
120 server tools: unicode/libwine_unicode.$(LIBEXT)
122 dlls: tools $(LIBRARIES)
124 checklink::
125 $(CC) -o checklink $(TOPSRCDIR)/library/checklink.c $(LIBWINE) $(LIBUNICODE) $(LIBS) && $(RM) checklink
127 install_programs: dummy
128 @cd programs && $(MAKE) install
130 uninstall_programs: dummy
131 @cd programs && $(MAKE) uninstall
133 checklink::
134 @cd dlls && $(MAKE) checklink
136 TAGS etags:
137 etags `find $(TOPSRCDIR) -name '*.[chS]' -print | grep -v dbgmain`
139 manpages:
140 -$(MKDIR) $(TOPOBJDIR)/documentation/man3w
141 for i in $(SUBDIRS); do (cd $$i && $(MAKE) man); done
143 htmlpages:
144 -$(MKDIR) $(TOPOBJDIR)/documentation/html
145 for i in $(SUBDIRS); do (cd $$i && $(MAKE) html); done
147 clean::
148 $(RM) wine
150 distclean: clean
151 $(RM) config.* TAGS Make.rules dlls/Makedll.rules programs/Makeprog.rules include/config.h documentation/wine.man documentation/wine.conf.man tools/winelauncher
152 $(RM) `find . \( -name Makefile -o -size 0 \) -print`
154 # We depend on configure above for checks, so we better don't use this rule.
155 #configure: configure.in
156 # autoconf
158 include/config.h.in: configure.in include/acconfig.h
159 autoheader -l include
161 ### Dependencies: