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