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
15 TOPSRCDIR
= @top_srcdir@
24 # Stand-alone programs
29 # Programs that link with libwine
32 programs
/wineconsole
/wineconsole
34 # Libraries (not dlls) to build
36 library
/libwine.
$(LIBEXT
) \
38 tsx11
/libwine_tsx11.
$(LIBEXT
) \
39 unicode
/libwine_unicode.
$(LIBEXT
)
41 # Libraries symlinks to create at the top level
44 libwine_tsx11.
$(LIBEXT
) \
45 libwine_unicode.
$(LIBEXT
) \
48 # Sub-directories to run make depend/clean into
55 # Sub-directories to run make install into
63 programs
/wineconsole \
72 all: Make.rules
$(PROGRAMS
) $(LIBPROGRAMS
) $(LIBSYMLINKS
) wine
73 @echo
"Wine build complete."
75 WINAPI_CHECK_EXTRA_FLAGS
= --global
79 Make.rules
: Make.rules.in configure
80 @echo
$? is newer than
'Make.rules', please rerun .
/configure
!
84 $(CC
) -o wine
$(EMUOBJS
) -L
$(DLLDIR
) $(IMPORTS
:%=-l
%) $(LIBWINE
) $(LIBUNICODE
) $(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
92 uninstall:: $(INSTALLSUBDIRS
:%=%/__uninstall__
)
93 cd
$(bindir) && $(RM
) wine dosmod
95 $(EMUOBJS
) $(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
114 $(EMUOBJS
): tools dlls
116 $(LIBPROGRAMS
): tools dlls wine
118 server tools
: unicode
/libwine_unicode.
$(LIBEXT
)
120 dlls
: tools
$(LIBRARIES
)
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
132 @cd dlls
&& $(MAKE
) checklink
133 @cd debugger
&& $(MAKE
) checklink
136 etags
`find $(TOPSRCDIR) -name '*.[chS]' -print | grep -v dbgmain`
139 -$(MKDIR
) $(TOPOBJDIR
)/documentation
/man3w
140 for i in
$(SUBDIRS
); do
(cd
$$i && $(MAKE
) man
); done
143 -$(MKDIR
) $(TOPOBJDIR
)/documentation
/html
144 for i in
$(SUBDIRS
); do
(cd
$$i && $(MAKE
) html
); done
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`