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
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
17 TOPSRCDIR
= @top_srcdir@
26 # Sub-directories containing stand-alone programs
30 # Sub-directories containing programs that use some Wine dlls
35 # Sub-directories containing libraries (not dlls) to build
42 # Sub-directories to run make depend/clean/install into
52 # Sub-directories to run make test into
60 all: Make.rules
$(PROGSUBDIRS
) $(LIBPROGSUBDIRS
) wine
61 @echo
"Wine build complete."
63 WINAPI_CHECK_EXTRA_FLAGS
= --global
67 Make.rules
: Make.rules.in configure
68 @echo
$? is newer than
'Make.rules', please rerun .
/configure
!
72 $(RM
) $@
&& $(LN_S
) $(WINEWRAPPER
) $@
74 install:: all $(SUBDIRS
:%=%/__install__
)
76 @if
test -n
"`LANG=C $(LDD) $(bindir)/wine|grep not.found`"; \
78 echo
"*************************************************" ; \
79 echo
"*************************************************" ; \
80 echo
"The installed Wine libraries will not be found!" ; \
81 echo
"You can either:" ; \
82 echo
" Add the line '$(libdir)' to /etc/ld.so.conf" ; \
83 echo
' export LD_LIBRARY_PATH=$$LD_LIBRARY_PATH:$(libdir)' ; \
84 echo
"*************************************************" ; \
85 echo
"*************************************************" ; \
88 uninstall:: $(SUBDIRS
:%=%/__uninstall__
)
90 # Dependencies between directories
92 $(LIBPROGSUBDIRS
): tools dlls
$(LIBSUBDIRS
)
94 $(PROGSUBDIRS
): tools
$(LIBSUBDIRS
)
96 dlls
: tools
$(LIBSUBDIRS
)
101 $(CC
) -o checklink
$(TOPSRCDIR
)/library
/checklink.c
&& $(RM
) checklink
104 @cd dlls
&& $(MAKE
) checklink
105 @cd programs
&& $(MAKE
) checklink
107 test_environment
: dummy
108 @cd programs
/winetest
&& $(MAKE
) all
110 $(TESTSUBDIRS
:%=%/__test__
): test_environment
112 check test:: $(TESTSUBDIRS
:%=%/__test__
)
115 etags
`find $(TOPSRCDIR) -name '*.[ch]' -a -not -name '*.spec.c' -a -not -name '*.glue.c' -a -not -name '*.dbg.c' -print`
118 $(MKINSTALLDIRS
) $(TOPOBJDIR
)/documentation
/man3w
119 for i in
$(SUBDIRS
); do
(cd
$$i && $(MAKE
) man
); done
122 $(MKINSTALLDIRS
) $(TOPOBJDIR
)/documentation
/html
123 for i in
$(SUBDIRS
); do
(cd
$$i && $(MAKE
) html
); done
129 $(RM
) config.
* TAGS Make.rules dlls
/Makedll.rules programs
/Makeprog.rules
include/config.h
130 $(RM
) -r autom4te.cache
131 $(RM
) `find . \( -name Makefile -o -size 0 \) -print`