libwine: Add a helper function to read a symlink.
[wine.git] / Makefile.in
blob13b5a5a053618147ceddf934f90ef6504ceff090
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 # test: run tests
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 # The following variable definitions are copied into all makefiles
23 prefix = @prefix@
24 exec_prefix = @exec_prefix@
25 bindir = @bindir@
26 libdir = @libdir@
27 datarootdir = @datarootdir@
28 datadir = @datadir@
29 mandir = @mandir@
30 includedir = @includedir@
31 fontdir = ${datadir}/wine/fonts
32 dlldir = ${libdir}/wine
33 top_srcdir = @top_srcdir@
34 top_builddir = @top_builddir@
35 srcdir = @srcdir@
36 SHELL = /bin/sh
37 RM = rm -f
38 MV = mv
39 CC = @CC@
40 CXX = @CXX@
41 CPPBIN = @CPPBIN@
42 CROSSCC = @CROSSCC@
43 CFLAGS = @CFLAGS@
44 CPPFLAGS = @CPPFLAGS@
45 CROSSCFLAGS = @CROSSCFLAGS@
46 EXTRACFLAGS = @EXTRACFLAGS@
47 MSVCRTFLAGS = @BUILTINFLAG@
48 TARGETFLAGS = @TARGETFLAGS@
49 UNWINDFLAGS = @UNWINDFLAGS@
50 LDEXECFLAGS = @LDEXECFLAGS@
51 LIBS = @LIBS@
52 BISON = @BISON@
53 FLEX = @FLEX@
54 EXEEXT = @EXEEXT@
55 TOOLSEXT = @TOOLSEXT@
56 DLLTOOL = @DLLTOOL@
57 AR = @AR@
58 ARFLAGS = @ARFLAGS@
59 RANLIB = @RANLIB@
60 STRIP = @STRIP@
61 LN_S = @LN_S@
62 TOOLSDIR = @TOOLSDIR@
63 LD = @LD@
64 LDFLAGS = @LDFLAGS@
65 DLLFLAGS = @DLLFLAGS@
66 PRELINK = @PRELINK@
67 FONTFORGE = @FONTFORGE@
68 RSVG = @RSVG@
69 CONVERT = @CONVERT@
70 ICOTOOL = @ICOTOOL@
71 MSGFMT = @MSGFMT@
72 CROSSTARGET = @CROSSTARGET@
73 SUBDIRS = @SUBDIRS@
74 RUNTESTFLAGS = -q -P wine
75 MAKEDEP = $(TOOLSDIR)/tools/makedep$(TOOLSEXT)
76 WRC = $(TOOLSDIR)/tools/wrc/wrc$(TOOLSEXT)
77 PACKAGE_VERSION = @PACKAGE_VERSION@
78 SED_CMD = LC_ALL=C sed -e 's,@bindir\@,$(bindir),g' -e 's,@dlldir\@,$(dlldir),g' -e 's,@srcdir\@,$(srcdir),g' -e 's,@PACKAGE_STRING\@,@PACKAGE_STRING@,g' -e 's,@PACKAGE_VERSION\@,@PACKAGE_VERSION@,g'
79 LDRPATH_INSTALL = @LDRPATH_INSTALL@
80 LDRPATH_LOCAL = @LDRPATH_LOCAL@
81 INSTALL_PROGRAM = STRIPPROG="$(STRIP)" $(top_srcdir)/tools/install-sh $(INSTALL_PROGRAM_FLAGS)
82 INSTALL_SCRIPT = $(top_srcdir)/tools/install-sh $(INSTALL_SCRIPT_FLAGS)
83 INSTALL_DATA = $(top_srcdir)/tools/install-sh -m 644 $(INSTALL_DATA_FLAGS)
84 prog_manext = 1
85 api_manext = 3w
86 conf_manext = 5
87 WINELOADER_PROGRAMS = @WINELOADER_PROGRAMS@
88 WINELOADER_DEPENDS = @WINELOADER_DEPENDS@
89 WINELOADER_LDFLAGS = @WINELOADER_LDFLAGS@
90 LIBWINE_SHAREDLIB = @LIBWINE_SHAREDLIB@
91 LIBWINE_IMPORTLIB = @LIBWINE_IMPORTLIB@
92 LIBWINE_LDFLAGS = @LIBWINE_LDFLAGS@
93 LIBWINE_DEPENDS = @LIBWINE_DEPENDS@
94 DISABLED_SUBDIRS = @DISABLED_SUBDIRS@
95 CONFIGURE_TARGETS = @CONFIGURE_TARGETS@
96 TOP_INSTALL_LIB = @TOP_INSTALL_LIB@
97 TOP_INSTALL_DEV = @TOP_INSTALL_DEV@
98 @ALL_VARS_RULES@
99 @SET_MAKE@
101 all: wine
102 @echo "Wine build complete."
104 # Rules for re-running configure
106 config.status: $(srcdir)/configure
107 @./config.status --recheck
109 include/config.h: include/stamp-h
110 include/stamp-h: $(srcdir)/include/config.h.in config.status
111 @./config.status include/config.h include/stamp-h
113 # Rules for cleaning
115 distclean:: clean
116 $(RM) -r autom4te.cache documentation/html documentation/api-guide documentation/api-guide-xml documentation/man$(api_manext)
118 # Rules for API documentation
120 install-manpages:: manpages
121 for i in documentation/man$(api_manext)/*.$(api_manext); do $(INSTALL_DATA) $$i $(DESTDIR)$(mandir)/$$i; done
123 .PHONY: install-manpages
125 # Dependencies between directories
127 # dependencies needed to build any dll or program
128 __tooldeps__: libs/wpp
129 __builddeps__: __tooldeps__ libs/wine include po
130 .PHONY: depend dummy install install-lib install-dev
132 dummy:
133 server: include
134 libs/port libs/wine libs/wpp: include/config.h
136 # Misc rules
138 TAGSFLAGS = --langmap='c:+.idl.l.rh,make:(Make*.in)'
140 TAGS etags:
141 $(RM) TAGS
142 (test -d .git && git ls-files || find -L $(top_srcdir) -name '*.[ch]' -print) | xargs etags -a $(TAGSFLAGS)
144 tags ctags:
145 $(RM) tags
146 (test -d .git && git ls-files || find -L $(top_srcdir) -name '*.[ch]' -print) | xargs ctags -a $(TAGSFLAGS)