2000-04-21 22:33:34 +02:00
|
|
|
## Makefile for the src subdirectory of the GNU C++ Standard library.
|
|
|
|
##
|
2002-02-14 19:24:13 +01:00
|
|
|
## Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002
|
|
|
|
## Free Software Foundation, Inc.
|
2000-04-21 22:33:34 +02:00
|
|
|
##
|
|
|
|
## This file is part of the libstdc++ version 3 distribution.
|
|
|
|
## Process this file with automake to produce Makefile.in.
|
|
|
|
|
|
|
|
## This file is part of the GNU ISO C++ Library. This library is free
|
|
|
|
## software; you can redistribute it and/or modify it under the
|
|
|
|
## terms of the GNU General Public License as published by the
|
|
|
|
## Free Software Foundation; either version 2, or (at your option)
|
|
|
|
## any later version.
|
|
|
|
|
|
|
|
## This library is distributed in the hope that it will be useful,
|
|
|
|
## but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
## GNU General Public License for more details.
|
|
|
|
|
|
|
|
## You should have received a copy of the GNU General Public License along
|
|
|
|
## with this library; see the file COPYING. If not, write to the Free
|
|
|
|
## Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
|
|
|
|
## USA.
|
|
|
|
|
|
|
|
AUTOMAKE_OPTIONS = 1.3 gnits
|
|
|
|
MAINT_CHARSET = latin1
|
|
|
|
|
2001-02-03 10:01:44 +01:00
|
|
|
mkinstalldirs = $(SHELL) $(toplevel_srcdir)/mkinstalldirs
|
|
|
|
|
2000-04-21 22:33:34 +02:00
|
|
|
# Cross compiler and multilib support.
|
2001-04-11 20:52:31 +02:00
|
|
|
CXX = @glibcpp_CXX@
|
2001-02-07 02:54:21 +01:00
|
|
|
toolexecdir = @glibcpp_toolexecdir@
|
|
|
|
toolexeclibdir = @glibcpp_toolexeclibdir@
|
2000-04-21 22:33:34 +02:00
|
|
|
toolexeclib_LTLIBRARIES = libstdc++.la
|
|
|
|
|
2000-10-12 13:45:23 +02:00
|
|
|
# Compile flags that should be constant throughout the build, both for
|
|
|
|
# SUBDIRS and for libstdc++-v3 in general.
|
|
|
|
OPTIMIZE_CXXFLAGS = @OPTIMIZE_CXXFLAGS@
|
|
|
|
|
|
|
|
# These bits are all figured out from configure. Look in acinclude.m4
|
|
|
|
# or configure.in to see how they are set. See GLIBCPP_EXPORT_FLAGS
|
|
|
|
# NB: DEBUGFLAGS have to be at the end so that -O2 can be overridden.
|
|
|
|
CONFIG_CXXFLAGS = \
|
|
|
|
@EXTRA_CXX_FLAGS@ @SECTION_FLAGS@ @CSHADOW_FLAGS@ @DEBUG_FLAGS@
|
|
|
|
|
|
|
|
# Warning flags to use.
|
|
|
|
WARN_CXXFLAGS = \
|
2001-02-26 22:48:01 +01:00
|
|
|
@WARN_FLAGS@ $(WERROR) -fdiagnostics-show-location=once
|
2000-10-12 13:45:23 +02:00
|
|
|
|
|
|
|
# Use common includes from acinclude.m4/GLIBCPP_EXPORT_INCLUDES
|
2001-07-13 18:47:56 +02:00
|
|
|
GLIBCPP_INCLUDES = @GLIBCPP_INCLUDES@
|
2000-10-12 13:45:23 +02:00
|
|
|
LIBMATH_INCLUDES = @LIBMATH_INCLUDES@
|
|
|
|
LIBSUPCXX_INCLUDES = @LIBSUPCXX_INCLUDES@
|
|
|
|
LIBIO_INCLUDES = @LIBIO_INCLUDES@
|
2000-12-23 08:13:57 +01:00
|
|
|
TOPLEVEL_INCLUDES = @TOPLEVEL_INCLUDES@
|
2000-10-12 13:45:23 +02:00
|
|
|
|
2000-05-25 15:09:01 +02:00
|
|
|
INCLUDES = \
|
2000-11-25 10:11:15 +01:00
|
|
|
-nostdinc++ \
|
2001-07-13 18:47:56 +02:00
|
|
|
$(GLIBCPP_INCLUDES) \
|
2000-12-23 08:13:57 +01:00
|
|
|
$(LIBSUPCXX_INCLUDES) $(LIBIO_INCLUDES) $(LIBMATH_INCLUDES) \
|
2001-03-25 01:16:58 +01:00
|
|
|
$(TOPLEVEL_INCLUDES)
|
2000-05-25 15:09:01 +02:00
|
|
|
|
|
|
|
sources = \
|
2001-12-15 08:05:04 +01:00
|
|
|
globals.cc limits.cc \
|
|
|
|
basic_file.cc complex_io.cc ios.cc strstream.cc \
|
|
|
|
cmath.cc bitset.cc \
|
|
|
|
functexcept.cc stdexcept.cc vterminate.cc \
|
|
|
|
c++locale.cc locale.cc localename.cc codecvt.cc \
|
2002-03-09 03:16:36 +01:00
|
|
|
collate.cc ctype.cc messages.cc monetary.cc numeric.cc time.cc \
|
2001-12-15 08:05:04 +01:00
|
|
|
concept-inst.cc locale-inst.cc misc-inst.cc stl-inst.cc \
|
2002-05-27 16:55:57 +02:00
|
|
|
string-inst.cc wstring-inst.cc valarray-inst.cc ext-inst.cc \
|
|
|
|
fstream-inst.cc io-inst.cc istream-inst.cc ostream-inst.cc \
|
|
|
|
streambuf-inst.cc sstream-inst.cc
|
2000-04-21 22:33:34 +02:00
|
|
|
|
2001-11-18 03:09:23 +01:00
|
|
|
VPATH = $(top_srcdir)/src:$(top_srcdir)
|
2000-04-21 22:33:34 +02:00
|
|
|
|
|
|
|
libstdc___la_SOURCES = $(sources)
|
|
|
|
|
2000-04-25 08:39:48 +02:00
|
|
|
libstdc___la_LIBADD = \
|
2000-11-16 02:44:03 +01:00
|
|
|
../libmath/libmath.la @libio_la@ \
|
2001-03-02 22:38:26 +01:00
|
|
|
../libsupc++/libsupc++convenience.la
|
2000-04-21 22:33:34 +02:00
|
|
|
|
2002-02-14 19:24:13 +01:00
|
|
|
if GLIBCPP_BUILD_VERSIONED_SHLIB
|
|
|
|
version_arg=-Wl,--version-script=linker.map
|
|
|
|
else
|
|
|
|
version_arg=
|
|
|
|
endif
|
2000-04-21 22:33:34 +02:00
|
|
|
|
2002-03-19 20:50:30 +01:00
|
|
|
libstdc___la_LDFLAGS = \
|
|
|
|
-version-info @libtool_VERSION@ ${version_arg} \
|
|
|
|
-lm @LIBUNWIND_FLAG@
|
2000-04-25 08:39:48 +02:00
|
|
|
|
2002-02-14 19:24:13 +01:00
|
|
|
libstdc___la_DEPENDENCIES = $(libstdc___la_LIBADD) linker.map
|
2000-04-21 22:33:34 +02:00
|
|
|
|
2001-03-01 01:37:18 +01:00
|
|
|
# Use special rules for the deprecated source files so that they find
|
|
|
|
# deprecated include files.
|
2001-07-13 18:47:56 +02:00
|
|
|
GLIBCPP_INCLUDE_DIR=@glibcpp_builddir@/include
|
2001-03-01 01:37:18 +01:00
|
|
|
strstream.lo: strstream.cc
|
2001-11-18 03:09:23 +01:00
|
|
|
$(LTCXXCOMPILE) -I$(GLIBCPP_INCLUDE_DIR)/backward -Wno-deprecated -c $<
|
2001-03-01 01:37:18 +01:00
|
|
|
strstream.o: strstream.cc
|
2001-11-18 03:09:23 +01:00
|
|
|
$(CXXCOMPILE) -I$(GLIBCPP_INCLUDE_DIR)/backward -Wno-deprecated -c $<
|
2001-03-01 01:37:18 +01:00
|
|
|
|
2001-11-01 16:46:48 +01:00
|
|
|
# Use special rules for the concept-checking instantiations so that all
|
|
|
|
# the generated template functions are also instantiated. Force the checks
|
|
|
|
# to be on so that the instantiations are actually seen.
|
|
|
|
concept-inst.lo: concept-inst.cc
|
|
|
|
$(LTCXXCOMPILE) -D_GLIBCPP_CONCEPT_CHECKS -fimplicit-templates -c $<
|
|
|
|
concept-inst.o: concept-inst.cc
|
|
|
|
$(CXXCOMPILE) -D_GLIBCPP_CONCEPT_CHECKS -fimplicit-templates -c $<
|
|
|
|
|
2000-12-23 08:13:57 +01:00
|
|
|
|
configopts.html: Edit.
2000-10-10 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
* docs/configopts.html: Edit.
* libio/Makefile.am (INCLUDES): Remove duplicates, simplify.
* libio/Makefile.in: Regenerate.
* libmath/Makefile.am (INCLUDES): Remove duplicates, simplify.
* libmath/Makefile.in: Regenerate.
* libsupc++/Makefile.am (INCLUDES): Remove duplicate.
* libsupc++/Makefile.in: Regenerate.
* Makefile.am (AM_MAKEFLAGS): Add GLIBCPP_INCLUDES,
TOPLEVEL_INCLUDES, LIBMATH_INCLUDES, LIBIO_INCLUDES,
CSHADOW_INCLUDES up here.
* Makefile.in: Regenerate.
* src/Makefile.am (CSHADOW_INCLUDES): Add include/c_std, include/c
for shadow headers.
(myinstallheaders): Change glibcpp_includedir to GLIBCPP_INCLUDES.
Move GLIBCPP_INCLUDES, TOPLEVEL_INCLUDES, LIBMATH_INCLUDES,
LIBIO_INCLUDES, CSHADOW_INCLUDES up Makefile hierarchy.
* src/Makefile.in: Regenerate.
* include/c: New directory.
* include/c/bits/(std_cassert.h, std_cctype.h, std_cerrno.h,
std_cfloat.h, std_climits.h, std_clocale.h, std_cmath.h,
std_csetjmp.h, std_csignal.h, std_cstdarg.h, std_cstddef.h,
std_cstdio.h, std_cstdlib.h, std_cstring.h, std_ctime.h,
std_cwchar.h, std_cwctype.h): Add, moving from...
* include/bits: ...here.
* include/c_std: New directory.
* include/c_std/bits/*: Populate from...
* shadow: ...here. Remove directory.
From-SVN: r36805
2000-10-09 10:55:06 +02:00
|
|
|
# AM_CXXFLAGS needs to be in each subdirectory so that it can be
|
2000-10-17 12:12:23 +02:00
|
|
|
# modified in a per-library or per-sub-library way. Need to manually
|
|
|
|
# set this option because CONFIG_CXXFLAGS has to be after
|
|
|
|
# OPTIMIZE_CXXFLAGS on the compile line so that -O2 can be overridden
|
|
|
|
# as the occasion call for it. (ie, --enable-debug)
|
configopts.html: Edit.
2000-10-10 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
* docs/configopts.html: Edit.
* libio/Makefile.am (INCLUDES): Remove duplicates, simplify.
* libio/Makefile.in: Regenerate.
* libmath/Makefile.am (INCLUDES): Remove duplicates, simplify.
* libmath/Makefile.in: Regenerate.
* libsupc++/Makefile.am (INCLUDES): Remove duplicate.
* libsupc++/Makefile.in: Regenerate.
* Makefile.am (AM_MAKEFLAGS): Add GLIBCPP_INCLUDES,
TOPLEVEL_INCLUDES, LIBMATH_INCLUDES, LIBIO_INCLUDES,
CSHADOW_INCLUDES up here.
* Makefile.in: Regenerate.
* src/Makefile.am (CSHADOW_INCLUDES): Add include/c_std, include/c
for shadow headers.
(myinstallheaders): Change glibcpp_includedir to GLIBCPP_INCLUDES.
Move GLIBCPP_INCLUDES, TOPLEVEL_INCLUDES, LIBMATH_INCLUDES,
LIBIO_INCLUDES, CSHADOW_INCLUDES up Makefile hierarchy.
* src/Makefile.in: Regenerate.
* include/c: New directory.
* include/c/bits/(std_cassert.h, std_cctype.h, std_cerrno.h,
std_cfloat.h, std_climits.h, std_clocale.h, std_cmath.h,
std_csetjmp.h, std_csignal.h, std_cstdarg.h, std_cstddef.h,
std_cstdio.h, std_cstdlib.h, std_cstring.h, std_ctime.h,
std_cwchar.h, std_cwctype.h): Add, moving from...
* include/bits: ...here.
* include/c_std: New directory.
* include/c_std/bits/*: Populate from...
* shadow: ...here. Remove directory.
From-SVN: r36805
2000-10-09 10:55:06 +02:00
|
|
|
AM_CXXFLAGS = \
|
2001-04-18 03:06:05 +02:00
|
|
|
-fno-implicit-templates \
|
2000-10-17 12:12:23 +02:00
|
|
|
$(LIBSUPCXX_CXXFLAGS) \
|
configopts.html: Edit.
2000-10-10 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
* docs/configopts.html: Edit.
* libio/Makefile.am (INCLUDES): Remove duplicates, simplify.
* libio/Makefile.in: Regenerate.
* libmath/Makefile.am (INCLUDES): Remove duplicates, simplify.
* libmath/Makefile.in: Regenerate.
* libsupc++/Makefile.am (INCLUDES): Remove duplicate.
* libsupc++/Makefile.in: Regenerate.
* Makefile.am (AM_MAKEFLAGS): Add GLIBCPP_INCLUDES,
TOPLEVEL_INCLUDES, LIBMATH_INCLUDES, LIBIO_INCLUDES,
CSHADOW_INCLUDES up here.
* Makefile.in: Regenerate.
* src/Makefile.am (CSHADOW_INCLUDES): Add include/c_std, include/c
for shadow headers.
(myinstallheaders): Change glibcpp_includedir to GLIBCPP_INCLUDES.
Move GLIBCPP_INCLUDES, TOPLEVEL_INCLUDES, LIBMATH_INCLUDES,
LIBIO_INCLUDES, CSHADOW_INCLUDES up Makefile hierarchy.
* src/Makefile.in: Regenerate.
* include/c: New directory.
* include/c/bits/(std_cassert.h, std_cctype.h, std_cerrno.h,
std_cfloat.h, std_climits.h, std_clocale.h, std_cmath.h,
std_csetjmp.h, std_csignal.h, std_cstdarg.h, std_cstddef.h,
std_cstdio.h, std_cstdlib.h, std_cstring.h, std_ctime.h,
std_cwchar.h, std_cwctype.h): Add, moving from...
* include/bits: ...here.
* include/c_std: New directory.
* include/c_std/bits/*: Populate from...
* shadow: ...here. Remove directory.
From-SVN: r36805
2000-10-09 10:55:06 +02:00
|
|
|
$(WARN_CXXFLAGS) \
|
|
|
|
$(OPTIMIZE_CXXFLAGS) \
|
|
|
|
$(CONFIG_CXXFLAGS)
|
|
|
|
|
2000-10-07 20:54:08 +02:00
|
|
|
|
2000-10-17 12:12:23 +02:00
|
|
|
# libstdc++ libtool notes
|
|
|
|
|
|
|
|
# 1) Need to explicitly set LTCXXCOMPILE so that AM_CXXFLAGS is
|
|
|
|
# last. (That way, things like -O2 passed down from the toplevel can
|
|
|
|
# be overridden by --enable-debug.)
|
|
|
|
|
|
|
|
# 2) In general, libtool expects an argument such as `--tag=CXX' when
|
|
|
|
# using the C++ compiler, because that will enable the settings
|
|
|
|
# detected when C++ support was being configured. However, when no
|
|
|
|
# such flag is given in the command line, libtool attempts to figure
|
|
|
|
# it out by matching the compiler name in each configuration section
|
|
|
|
# against a prefix of the command line. The problem is that, if the
|
|
|
|
# compiler name and its initial flags stored in the libtool
|
|
|
|
# configuration file don't match those in the command line, libtool
|
|
|
|
# can't decide which configuration to use, and it gives up. The
|
|
|
|
# correct solution is to add `--tag CXX' to LTCXXCOMPILE and maybe
|
|
|
|
# CXXLINK, just after $(LIBTOOL), so that libtool doesn't have to
|
|
|
|
# attempt to infer which configuration to use
|
|
|
|
LTCXXCOMPILE = $(LIBTOOL) --tag CXX --mode=compile $(CXX) $(INCLUDES) \
|
|
|
|
$(AM_CPPFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(AM_CXXFLAGS)
|
2000-10-07 20:54:08 +02:00
|
|
|
|
2001-03-28 03:19:42 +02:00
|
|
|
# 3) We'd have a problem when building the shared libstdc++ object if
|
|
|
|
# the rules automake generates would be used. We cannot allow g++ to
|
|
|
|
# be used since this would add -lstdc++ to the link line which of
|
|
|
|
# course is problematic at this point. So, we get the top-level
|
|
|
|
# directory to configure libstdc++-v3 to use gcc as the C++
|
|
|
|
# compilation driver.
|
|
|
|
CXXLINK = $(LIBTOOL) --tag CXX --mode=link $(CXX) \
|
2000-10-17 12:12:23 +02:00
|
|
|
@OPT_LDFLAGS@ @SECTION_LDFLAGS@ $(AM_CXXFLAGS) $(LDFLAGS) -o $@
|