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 # crosstest: build tests as native windows applications (requires MinGW)
9 # install-lib: install libraries needed to run applications
10 # install-dev: install development environment
11 # install: install everything
12 # uninstall: uninstall everything
13 # depend: create the dependencies
14 # ctags: create a tags file for vim and others.
15 # etags: create a TAGS file for Emacs.
16 # manpages: compile manpages for Wine API
17 # htmlpages: compile html pages for Wine API
18 # sgmlpages: compile sgml source for the Wine API Guide
19 # xmlpages: compile xml source for the Wine API Guide
22 @echo
"Wine build complete."
24 # Rules for re-running configure
26 config.status
: $(srcdir)/configure
27 @.
/config.status
--recheck
29 include/config.h
: include/stamp-h
30 include/stamp-h
: $(srcdir)/include/config.h.in config.status
31 @.
/config.status
include/config.h
include/stamp-h
35 .PHONY
: clean distclean __clean__
39 $(RM
) config.
* configure.lineno TAGS
tags include/config.h
include/stamp-h Makefile Make.tmp .gitignore
40 $(RM
) -r autom4te.cache
42 # Rules for uninstalling
44 .PHONY
: install install-lib install-dev
uninstall __uninstall__
45 uninstall:: __uninstall__
46 -rmdir
$(DESTDIR
)$(fontdir
) $(DESTDIR
)$(datadir)/wine
$(DESTDIR
)$(fakedlldir
) $(DESTDIR
)$(dlldir
) $(DESTDIR
)$(includedir)
48 # Dependencies between directories
50 # dependencies needed to build any dll or program
51 __tooldeps__
: libs
/port libs
/wine libs
/wpp
52 __builddeps__
: __tooldeps__
include
53 .PHONY
: depend
check test testclean crosstest __tooldeps__ __builddeps__
55 loader
: libs
/port libs
/wine tools
56 server
: libs
/port libs
/wine tools
include
58 include: tools tools
/widl
59 libs
/wine tools
: libs
/port
60 tools
/wmc tools
/wrc
: tools
61 tools
/sfnt2fon tools
/wmc tools
/wrc
: libs
/wine
62 tools
/widl tools
/wmc tools
/wrc
: libs
/wpp
63 libs
/port libs
/wine libs
/wpp
: include/config.h
67 TAGSFLAGS
= --langmap
='c:+.idl.l.rh,make:(Make*.in)'
71 (test -d .git
&& git ls-files || find
-L
$(top_srcdir
) -name
'*.[ch]' -print) | xargs etags
-a
$(TAGSFLAGS
)
75 (test -d .git
&& git ls-files || find
-L
$(top_srcdir
) -name
'*.[ch]' -print) | xargs ctags
-a
$(TAGSFLAGS
)