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
21 # Start of common header
22 # The following variable definitions are copied into all makefiles
25 exec_prefix = @
exec_prefix@
28 datarootdir
= @datarootdir@
31 fontdir
= ${datadir}/wine
/fonts
32 includedir = @
includedir@
/wine
34 fakedlldir
= ${dlldir}/fakedlls
35 top_srcdir
= @top_srcdir@
36 top_builddir
= @top_builddir@
47 EXTRACFLAGS
= @EXTRACFLAGS@
48 MSVCRTFLAGS
= @BUILTINFLAG@
49 TARGETFLAGS
= @TARGETFLAGS@
50 UNWINDFLAGS
= @UNWINDFLAGS@
55 DLLPREFIX
= @DLLPREFIX@
68 FONTFORGE
= @FONTFORGE@
73 CROSSTARGET
= @CROSSTARGET@
75 RUNTESTFLAGS
= -q
-P wine
76 MAKEDEP
= $(TOOLSDIR
)/tools
/makedep
$(TOOLSEXT
)
77 WINEBUILD
= $(TOOLSDIR
)/tools
/winebuild
/winebuild
$(TOOLSEXT
)
78 WRC
= $(TOOLSDIR
)/tools
/wrc
/wrc
$(TOOLSEXT
)
79 LIBPORT
= $(top_builddir
)/libs
/port
/libwine_port.a
80 LIBWPP
= $(top_builddir
)/libs
/wpp
/libwpp.a
81 LIBWINE
= -L
$(top_builddir
)/libs
/wine
-lwine
82 LIBWINE_STATIC
= $(top_builddir
)/libs
/wine
/libwine_static.a
83 SED_CMD
= LC_ALL
=C sed
-e
's,@bindir\@,$(bindir),g' -e
's,@dlldir\@,$(dlldir),g' -e
's,@PACKAGE_STRING\@,@PACKAGE_STRING@,g' -e
's,@PACKAGE_VERSION\@,@PACKAGE_VERSION@,g'
84 LDRPATH_INSTALL
= @LDRPATH_INSTALL@
85 LDRPATH_LOCAL
= @LDRPATH_LOCAL@
86 INSTALL_PROGRAM
= STRIPPROG
="$(STRIP)" $(top_srcdir
)/tools
/install-sh
$(INSTALL_PROGRAM_FLAGS
)
87 INSTALL_SCRIPT
= $(top_srcdir
)/tools
/install-sh
$(INSTALL_SCRIPT_FLAGS
)
88 INSTALL_DATA
= $(top_srcdir
)/tools
/install-sh
-m
644 $(INSTALL_DATA_FLAGS
)
95 # End of common header
98 @echo
"Wine build complete."
100 # Rules for re-running configure
102 config.status
: $(srcdir)/configure
103 @.
/config.status
--recheck
105 include/config.h
: include/stamp-h
106 include/stamp-h
: $(srcdir)/include/config.h.in config.status
107 @.
/config.status
include/config.h
include/stamp-h
111 .PHONY
: clean distclean __clean__
115 $(RM
) config.
* configure.lineno TAGS
tags include/config.h
include/stamp-h Makefile Make.tmp .gitignore
116 $(RM
) -r autom4te.cache
118 # Rules for uninstalling
120 .PHONY
: install install-lib install-dev
uninstall __uninstall__
121 uninstall:: __uninstall__
122 -rmdir
$(DESTDIR
)$(fontdir
) $(DESTDIR
)$(datadir)/wine
$(DESTDIR
)$(fakedlldir
) $(DESTDIR
)$(dlldir
) $(DESTDIR
)$(includedir)
124 # Dependencies between directories
126 # dependencies needed to build any dll or program
127 __tooldeps__
: libs
/port libs
/wine libs
/wpp
128 __builddeps__
: __tooldeps__
include
129 .PHONY
: depend dummy
check test testclean crosstest __tooldeps__ __builddeps__
132 loader
: libs
/port libs
/wine tools
133 server
: libs
/port libs
/wine tools
include
134 fonts
: tools
/sfnt2fon
135 include: tools tools
/widl
136 libs
/wine tools
: libs
/port
137 tools
/wmc tools
/wrc
: tools
138 tools
/sfnt2fon tools
/wmc tools
/wrc
: libs
/wine
139 tools
/widl tools
/wmc tools
/wrc
: libs
/wpp
140 libs
/port libs
/wine libs
/wpp
: include/config.h
144 TAGSFLAGS
= --langmap
='c:+.idl.l.rh,make:(Make*.in)'
148 (test -d .git
&& git ls-files || find
-L
$(top_srcdir
) -name
'*.[ch]' -print) | xargs etags
-a
$(TAGSFLAGS
)
152 (test -d .git
&& git ls-files || find
-L
$(top_srcdir
) -name
'*.[ch]' -print) | xargs ctags
-a
$(TAGSFLAGS
)