Makefile.in 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. # This Makefile understands the following targets:
  2. #
  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. # install-lib: install libraries needed to run applications
  9. # install-dev: install development environment
  10. # install: install everything
  11. # uninstall: uninstall everything
  12. # depend: create the dependencies
  13. # etags: create a TAGS file for Emacs.
  14. # manpages: compile manpages for Wine API
  15. # htmlpages: compile html pages for Wine API
  16. # sgmlpages: compile sgml source for the Wine API Guide
  17. # Directories
  18. TOPSRCDIR = @top_srcdir@
  19. TOPOBJDIR = .
  20. SRCDIR = @srcdir@
  21. VPATH = @srcdir@
  22. LIBEXT = @LIBEXT@
  23. LDCONFIG = @LDCONFIG@
  24. LDD = @LDD@
  25. MODULE = none
  26. FONTSSUBDIRS = @FONTSSUBDIRS@
  27. # Sub-directories to run make depend/clean into
  28. SUBDIRS = \
  29. dlls \
  30. documentation \
  31. fonts \
  32. include \
  33. libs \
  34. loader \
  35. programs \
  36. server \
  37. tools
  38. # Sub-directories to install for install-lib
  39. INSTALLLIBSUBDIRS = \
  40. documentation \
  41. $(FONTSSUBDIRS) \
  42. loader \
  43. programs \
  44. server
  45. # Sub-directories to install for install-dev
  46. INSTALLDEVSUBDIRS = include tools
  47. # Sub-directories to install for both install-lib and install-dev
  48. INSTALLBOTHSUBDIRS = dlls libs
  49. INSTALLSUBDIRS = $(INSTALLDEVSUBDIRS) $(INSTALLLIBSUBDIRS)
  50. # Sub-directories to run make test into
  51. TESTSUBDIRS = \
  52. dlls \
  53. programs
  54. all: Make.rules wine
  55. @echo "Wine build complete."
  56. WINAPI_CHECK_EXTRA_FLAGS = --global
  57. @MAKE_RULES@
  58. Make.rules: Make.rules.in configure
  59. @echo $? is newer than 'Make.rules', please rerun ./configure!
  60. @exit 1
  61. wine: $(WINEWRAPPER)
  62. $(RM) $@ && $(LN_S) $(WINEWRAPPER) $@
  63. # Installation rules
  64. install-aclocal: dummy
  65. $(MKINSTALLDIRS) $(datadir)/aclocal
  66. $(INSTALL_DATA) $(SRCDIR)/aclocal.m4 $(datadir)/aclocal/wine.m4
  67. install-lib:: $(INSTALLLIBSUBDIRS:%=%/__install__) $(INSTALLBOTHSUBDIRS:%=%/__install-lib__)
  68. install-dev:: $(INSTALLDEVSUBDIRS:%=%/__install__) $(INSTALLBOTHSUBDIRS:%=%/__install-dev__) install-aclocal
  69. install:: install-lib install-dev install-aclocal
  70. -$(LDCONFIG)
  71. @if test -n "`LANG=C $(LDD) $(bindir)/wine|grep not.found`"; \
  72. then \
  73. echo "*************************************************" ; \
  74. echo "*************************************************" ; \
  75. echo "The installed Wine libraries will not be found!" ; \
  76. echo "You can either:" ; \
  77. echo " Add the line '$(libdir)' to /etc/ld.so.conf and run /sbin/ldconfig" ; \
  78. echo ' export LD_LIBRARY_PATH=$$LD_LIBRARY_PATH:$(libdir)' ; \
  79. echo "*************************************************" ; \
  80. echo "*************************************************" ; \
  81. fi
  82. uninstall:: $(INSTALLBOTHSUBDIRS:%=%/__uninstall__)
  83. $(RM) $(datadir)/aclocal/wine.m4
  84. -rmdir $(datadir)/wine $(datadir)/aclocal
  85. .PHONY: install-aclocal
  86. # Dependencies between directories
  87. all: $(INSTALLSUBDIRS) $(INSTALLBOTHSUBDIRS)
  88. dlls: include libs tools
  89. fonts loader server: libs tools
  90. programs: dlls include libs tools
  91. include: libs tools
  92. tools: libs
  93. dlls/__install-lib__ dlls/__install-dev__: libs tools include/__install__
  94. include/__install__: include libs tools
  95. libs/__install-lib__ libs/__install-dev__: libs
  96. fonts/__install__ loader/__install__ server/__install__: libs tools
  97. programs/__install__: libs tools include/__install__ dlls/__install-lib__
  98. tools/__install__: tools
  99. $(SUBDIRS:%=%/__depend__): tools include
  100. # Test rules
  101. checklink:: $(TESTSUBDIRS:%=%/__checklink__)
  102. check test:: $(TESTSUBDIRS:%=%/__test__)
  103. $(TESTSUBDIRS:%=%/__test__): wine
  104. crosstest:: $(TESTSUBDIRS:%=%/__crosstest__)
  105. $(TESTSUBDIRS:%=%/__crosstest__): tools include
  106. # Misc rules
  107. TAGS etags:
  108. find $(TOPSRCDIR) -name '*.[ch]' -a -not -name '*.spec.c' -a -not -name '*.dbg.c' -print | etags -
  109. tags ctags:
  110. find $(TOPSRCDIR) -name '*.[ch]' -a -not -name '*.spec.c' -a -not -name '*.dbg.c' -print | ctags --c-types=+px -L -
  111. manpages:
  112. $(MKINSTALLDIRS) $(TOPOBJDIR)/documentation/man3w
  113. cd dlls && $(MAKE) man
  114. htmlpages:
  115. $(MKINSTALLDIRS) $(TOPOBJDIR)/documentation/html
  116. cd dlls && $(MAKE) doc-html
  117. sgmlpages:
  118. $(MKINSTALLDIRS) $(TOPOBJDIR)/documentation/api-guide
  119. cd dlls && $(MAKE) doc-sgml
  120. clean::
  121. $(RM) wine
  122. distclean: clean
  123. $(RM) config.* configure.lineno TAGS tags Make.rules dlls/Makedll.rules dlls/Maketest.rules programs/Makeprog.rules libs/Makelib.rules include/config.h
  124. $(RM) -r autom4te.cache
  125. $(RM) `find . \( -name Makefile -o -size 0 \) -print`
  126. .PHONY: manpages htmlpages distclean
  127. ### Dependencies: