Unified 16-bit and 32-bit scheduling a bit more.
[wine/multimedia.git] / Makefile.in
blob3787e06d107a7ac4cd5bacf36b354b0f9c40e8a4
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 ole/libwine_uuid.a \
37 tsx11/libwine_tsx11.$(LIBEXT) \
38 unicode/libwine_unicode.$(LIBEXT)
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
47 # Sub-directories to run make depend/clean into
48 SUBDIRS = \
49 $(INSTALLSUBDIRS) \
50 libtest \
51 miscemu \
52 programs
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
67 EMUOBJS = \
68 miscemu/miscemu.o
70 DLLOBJS = $(DLLS:%=dlls/lib%.@LIBEXT@)
72 all: Make.rules $(PROGRAMS) $(LIBPROGRAMS) $(LIBSYMLINKS) wine
73 @echo "Wine build complete."
75 WINAPI_CHECK_EXTRA_FLAGS = --global
77 @MAKE_RULES@
79 Make.rules: Make.rules.in configure
80 @echo $? is newer than 'Make.rules', please rerun ./configure!
81 @exit 1
83 wine: dlls $(EMUOBJS)
84 $(CC) -o wine $(EMUOBJS) $(DLL_LINK) $(LIBS) $(LDFLAGS)
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)
92 uninstall:: $(INSTALLSUBDIRS:%=%/__uninstall__)
93 cd $(bindir) && $(RM) wine dosmod
95 $(EMUOBJS) $(DLLOBJS) $(PROGRAMS) $(LIBPROGRAMS) $(LIBRARIES): dummy
96 @cd `dirname $@` && $(MAKE) `basename $@`
98 libwine.$(LIBEXT): library/libwine.$(LIBEXT)
99 $(RM) $@ && $(LN_S) library/libwine.$(LIBEXT) $@
101 libwine_tsx11.$(LIBEXT): tsx11/libwine_tsx11.$(LIBEXT)
102 $(RM) $@ && $(LN_S) tsx11/libwine_tsx11.$(LIBEXT) $@
104 libwine_unicode.$(LIBEXT): unicode/libwine_unicode.$(LIBEXT)
105 $(RM) $@ && $(LN_S) unicode/libwine_unicode.$(LIBEXT) $@
107 libwine_uuid.a: ole/libwine_uuid.a
108 $(RM) $@ && $(LN_S) ole/libwine_uuid.a $@
110 # Dependencies between directories
112 $(DLLOBJS) $(PROGRAMS): tools
114 $(EMUOBJS): tools dlls
116 $(LIBPROGRAMS): tools dlls
118 server tools: unicode/libwine_unicode.$(LIBEXT)
120 dlls: tools $(LIBRARIES)
122 checklink::
123 $(CC) -o checklink $(TOPSRCDIR)/library/checklink.c $(LIBWINE) $(LIBS) && $(RM) checklink
125 install_programs: dummy
126 @cd programs && $(MAKE) install
128 uninstall_programs: dummy
129 @cd programs && $(MAKE) uninstall
131 checklink::
132 @cd dlls && $(MAKE) checklink
133 @cd debugger && $(MAKE) checklink
135 TAGS etags:
136 etags `find $(TOPSRCDIR) -name '*.[chS]' -print | grep -v dbgmain`
138 manpages:
139 -$(MKDIR) $(TOPOBJDIR)/documentation/man3w
140 for i in $(SUBDIRS); do (cd $$i && $(MAKE) man); done
142 htmlpages:
143 -$(MKDIR) $(TOPOBJDIR)/documentation/html
144 for i in $(SUBDIRS); do (cd $$i && $(MAKE) html); done
146 clean::
147 $(RM) wine
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`
153 # We depend on configure above for checks, so we better don't use this rule.
154 #configure: configure.in
155 # autoconf
157 include/config.h.in: configure.in include/acconfig.h
158 autoheader -l include
160 ### Dependencies: