Makefile.am 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. ## Makefile for the toplevel directory of the GNU C++ Standard library.
  2. ##
  3. ## Copyright (C) 1997-2022 Free Software Foundation, Inc.
  4. ##
  5. ## This file is part of the libstdc++ version 3 distribution.
  6. ## Process this file with automake to produce Makefile.in.
  7. ## This file is part of the GNU ISO C++ Library. This library is free
  8. ## software; you can redistribute it and/or modify it under the
  9. ## terms of the GNU General Public License as published by the
  10. ## Free Software Foundation; either version 3, or (at your option)
  11. ## any later version.
  12. ## This library is distributed in the hope that it will be useful,
  13. ## but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. ## GNU General Public License for more details.
  16. ## You should have received a copy of the GNU General Public License along
  17. ## with this library; see the file COPYING3. If not see
  18. ## <http://www.gnu.org/licenses/>.
  19. include $(top_srcdir)/fragment.am
  20. if GLIBCXX_HOSTED
  21. ## Note that python must come after src.
  22. hosted_source = src doc po testsuite python
  23. endif
  24. ## Keep this list sync'd with acinclude.m4:GLIBCXX_CONFIGURE.
  25. SUBDIRS = include libsupc++ $(hosted_source)
  26. ACLOCAL_AMFLAGS = -I . -I .. -I ../config
  27. # Testsuite/check forwarding targets.
  28. check-%:
  29. cd testsuite && $(MAKE) $@
  30. # Documentation forwarding targets.
  31. doc-%:
  32. cd doc && $(MAKE) $@
  33. # Documentation conditionals for output.
  34. if BUILD_XML
  35. STAMP_XML = doc-xml
  36. STAMP_INSTALL_XML = doc-install-xml
  37. else
  38. STAMP_XML =
  39. STAMP_INSTALL_XML =
  40. endif
  41. if BUILD_HTML
  42. STAMP_HTML = doc-html
  43. STAMP_INSTALL_HTML = doc-install-html
  44. else
  45. STAMP_HTML =
  46. STAMP_INSTALL_HTML =
  47. endif
  48. if BUILD_MAN
  49. STAMP_MAN = doc-man
  50. STAMP_INSTALL_MAN = doc-install-man
  51. else
  52. STAMP_MAN =
  53. STAMP_INSTALL_MAN =
  54. endif
  55. if BUILD_PDF
  56. STAMP_PDF = doc-pdf
  57. STAMP_INSTALL_PDF = doc-install-pdf
  58. else
  59. STAMP_PDF =
  60. STAMP_INSTALL_PDF =
  61. endif
  62. if BUILD_EPUB
  63. STAMP_EPUB = doc-epub
  64. STAMP_INSTALL_EPUB = doc-install-epub
  65. else
  66. STAMP_EPUB = doc-epub
  67. STAMP_INSTALL_EPUB = doc-install-epub
  68. endif
  69. # Documentation primary rules.
  70. #
  71. # xml:
  72. # html:
  73. # pdf:
  74. # man:
  75. # info:
  76. # ps:
  77. # dvi:
  78. # epub:
  79. # install-xml:
  80. # install-html:
  81. # install-pdf:
  82. # install-man:
  83. # install-info:
  84. # install-ps:
  85. # install-dvi:
  86. # install-epub:
  87. xml: $(STAMP_XML)
  88. install-xml: $(STAMP_INSTALL_XML)
  89. html: $(STAMP_HTML)
  90. install-html: $(STAMP_INSTALL_HTML)
  91. man: $(STAMP_MAN)
  92. install-man: $(STAMP_INSTALL_MAN)
  93. pdf: $(STAMP_PDF)
  94. install-pdf: $(STAMP_INSTALL_PDF)
  95. epub: $(STAMP_EPUB)
  96. install-epub: $(STAMP_INSTALL_EPUB)
  97. info:
  98. install-info:
  99. ps:
  100. install-ps:
  101. dvi:
  102. install-dvi:
  103. # Multilib support.
  104. MAKEOVERRIDES=
  105. # All the machinations with string instantiations messes up the
  106. # automake-generated TAGS rule. Make a simple one here.
  107. TAGS: tags-recursive $(LISP)
  108. # Work around what appears to be a GNU make bug handling MAKEFLAGS
  109. # values defined in terms of make variables, as is the case for CC and
  110. # friends when we are called from the top level Makefile.
  111. AM_MAKEFLAGS = \
  112. "AR_FLAGS=$(AR_FLAGS)" \
  113. "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
  114. "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
  115. "CFLAGS=$(CFLAGS)" \
  116. "CXXFLAGS=$(CXXFLAGS)" \
  117. "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
  118. "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
  119. "INSTALL=$(INSTALL)" \
  120. "INSTALL_DATA=$(INSTALL_DATA)" \
  121. "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
  122. "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
  123. "LDFLAGS=$(LDFLAGS)" \
  124. "LIBCFLAGS=$(LIBCFLAGS)" \
  125. "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
  126. "MAKE=$(MAKE)" \
  127. "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
  128. "SHELL=$(SHELL)" \
  129. "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
  130. "exec_prefix=$(exec_prefix)" \
  131. "infodir=$(infodir)" \
  132. "libdir=$(libdir)" \
  133. "includedir=$(includedir)" \
  134. "prefix=$(prefix)" \
  135. "tooldir=$(tooldir)" \
  136. "gxx_include_dir=$(gxx_include_dir)" \
  137. "AR=$(AR)" \
  138. "AS=$(AS)" \
  139. "LD=$(LD)" \
  140. "RANLIB=$(RANLIB)" \
  141. "NM=$(NM)" \
  142. "NM_FOR_BUILD=$(NM_FOR_BUILD)" \
  143. "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
  144. "DESTDIR=$(DESTDIR)" \
  145. "WERROR=$(WERROR)"
  146. # Subdir rules rely on $(FLAGS_TO_PASS)
  147. FLAGS_TO_PASS = $(AM_MAKEFLAGS)
  148. # target overrides
  149. -include $(tmake_file)
  150. include $(top_srcdir)/../multilib.am