]>
Commit | Line | Data |
---|---|---|
b2dad0e3 BK |
1 | ## Makefile for the toplevel directory of the GNU C++ Standard library. |
2 | ## | |
adc8a1e3 | 3 | ## Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2008, 2009 |
ffe94f83 | 4 | ## Free Software Foundation, Inc. |
b2dad0e3 BK |
5 | ## |
6 | ## This file is part of the libstdc++ version 3 distribution. | |
7 | ## Process this file with automake to produce Makefile.in. | |
8 | ||
9 | ## This file is part of the GNU ISO C++ Library. This library is free | |
10 | ## software; you can redistribute it and/or modify it under the | |
11 | ## terms of the GNU General Public License as published by the | |
748086b7 | 12 | ## Free Software Foundation; either version 3, or (at your option) |
b2dad0e3 BK |
13 | ## any later version. |
14 | ||
15 | ## This library is distributed in the hope that it will be useful, | |
16 | ## but WITHOUT ANY WARRANTY; without even the implied warranty of | |
17 | ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
18 | ## GNU General Public License for more details. | |
19 | ||
20 | ## You should have received a copy of the GNU General Public License along | |
748086b7 JJ |
21 | ## with this library; see the file COPYING3. If not see |
22 | ## <http://www.gnu.org/licenses/>. | |
b2dad0e3 | 23 | |
0df3f383 | 24 | include $(top_srcdir)/fragment.am |
b2dad0e3 | 25 | |
92eabea2 | 26 | if GLIBCXX_HOSTED |
adc8a1e3 | 27 | hosted_source = doc src po testsuite |
92eabea2 | 28 | endif |
82ba99d5 | 29 | ## Keep this list sync'd with acinclude.m4:GLIBCXX_CONFIGURE. |
41850419 TT |
30 | ## Note that python must come after src. |
31 | SUBDIRS = include libsupc++ $(hosted_source) python | |
c7053b70 | 32 | |
c41f82b2 KC |
33 | ACLOCAL_AMFLAGS = -I . -I .. -I ../config |
34 | ||
2d52e9e3 PE |
35 | # Handy forwarding targets. |
36 | check-%: | |
37 | cd testsuite && $(MAKE) $@ | |
38 | ||
4312e020 BK |
39 | doc-%: |
40 | cd doc && $(MAKE) $@ | |
41 | ||
b2dad0e3 BK |
42 | # Multilib support. |
43 | MAKEOVERRIDES= | |
44 | ||
d94611f1 | 45 | # All the machinations with string instantiations messes up the |
bf93f43b | 46 | # automake-generated TAGS rule. Make a simple one here. |
d94611f1 BK |
47 | TAGS: tags-recursive $(LISP) |
48 | ||
b2dad0e3 BK |
49 | # Work around what appears to be a GNU make bug handling MAKEFLAGS |
50 | # values defined in terms of make variables, as is the case for CC and | |
51 | # friends when we are called from the top level Makefile. | |
52 | AM_MAKEFLAGS = \ | |
53 | "AR_FLAGS=$(AR_FLAGS)" \ | |
54 | "CC_FOR_BUILD=$(CC_FOR_BUILD)" \ | |
55 | "CC_FOR_TARGET=$(CC_FOR_TARGET)" \ | |
56 | "CFLAGS=$(CFLAGS)" \ | |
57 | "CXXFLAGS=$(CXXFLAGS)" \ | |
58 | "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \ | |
59 | "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \ | |
60 | "INSTALL=$(INSTALL)" \ | |
61 | "INSTALL_DATA=$(INSTALL_DATA)" \ | |
62 | "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \ | |
63 | "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \ | |
64 | "LDFLAGS=$(LDFLAGS)" \ | |
65 | "LIBCFLAGS=$(LIBCFLAGS)" \ | |
66 | "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \ | |
67 | "MAKE=$(MAKE)" \ | |
68 | "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \ | |
69 | "PICFLAG=$(PICFLAG)" \ | |
70 | "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \ | |
71 | "SHELL=$(SHELL)" \ | |
c6192d88 | 72 | "RUNTESTFLAGS=$(RUNTESTFLAGS)" \ |
b2dad0e3 BK |
73 | "exec_prefix=$(exec_prefix)" \ |
74 | "infodir=$(infodir)" \ | |
75 | "libdir=$(libdir)" \ | |
76 | "includedir=$(includedir)" \ | |
77 | "prefix=$(prefix)" \ | |
78 | "tooldir=$(tooldir)" \ | |
3bf74da2 | 79 | "gxx_include_dir=$(gxx_include_dir)" \ |
b2dad0e3 BK |
80 | "AR=$(AR)" \ |
81 | "AS=$(AS)" \ | |
b2dad0e3 | 82 | "LD=$(LD)" \ |
b2dad0e3 BK |
83 | "RANLIB=$(RANLIB)" \ |
84 | "NM=$(NM)" \ | |
85 | "NM_FOR_BUILD=$(NM_FOR_BUILD)" \ | |
86 | "NM_FOR_TARGET=$(NM_FOR_TARGET)" \ | |
f5e79dda | 87 | "DESTDIR=$(DESTDIR)" \ |
ca618b60 | 88 | "WERROR=$(WERROR)" |
8ddfd7e5 DJ |
89 | |
90 | # Subdir rules rely on $(FLAGS_TO_PASS) | |
91 | FLAGS_TO_PASS = $(AM_MAKEFLAGS) | |
c4e82de9 JM |
92 | |
93 | .PHONY: install-html install-pdf | |
94 | install-html: | |
95 | install-pdf: |