2000-10-07 01:31:22 +02:00
|
|
|
## Makefile for the GNU C++ Support library.
|
|
|
|
##
|
2003-02-27 17:57:26 +01:00
|
|
|
## Copyright (C) 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
|
2000-10-07 01:31:22 +02:00
|
|
|
##
|
|
|
|
## Process this file with automake to produce Makefile.in.
|
|
|
|
##
|
Makefile.am, [...]: Replace "GNU CC" with "GCC".
2003-05-24 Nathanael Nerode <neroden@gcc.gnu.org>
* libsupc++/Makefile.am, libsupc++/cxxabi.h, libsupc++/del_op.cc,
libsupc++/del_opnt.cc, libsupc++/del_opv.cc, libsupc++/del_opvnt.cc,
libsupc++/eh_alloc.cc, libsupc++/eh_aux_runtime.cc,
libsupc++/eh_catch.cc, libsupc++/eh_exception.cc,
libsupc++/eh_globals.cc, libsupc++/eh_personality.cc,
libsupc++/eh_term_handler.cc, libsupc++/eh_terminate.cc,
libsupc++/eh_throw.cc, libsupc++/eh_type.cc,
libsupc++/eh_unex_handler.cc, libsupc++/exception,
libsupc++/new, libsupc++/new_handler.cc, libsupc++/new_op.cc,
libsupc++/new_opnt.cc, libsupc++/new_opv.cc, libsupc++/new_opvnt.cc,
libsupc++/pure.cc, libsupc++/tinfo.cc, libsupc++/tinfo2.cc,
libsupc++/typeinfo, libsupc++/unwind-cxx.h, libsupc++/vec.cc:
Replace "GNU CC" with "GCC".
From-SVN: r67155
2003-05-24 18:22:03 +02:00
|
|
|
## This file is part of GCC.
|
2000-10-07 01:31:22 +02:00
|
|
|
##
|
Makefile.am, [...]: Replace "GNU CC" with "GCC".
2003-05-24 Nathanael Nerode <neroden@gcc.gnu.org>
* libsupc++/Makefile.am, libsupc++/cxxabi.h, libsupc++/del_op.cc,
libsupc++/del_opnt.cc, libsupc++/del_opv.cc, libsupc++/del_opvnt.cc,
libsupc++/eh_alloc.cc, libsupc++/eh_aux_runtime.cc,
libsupc++/eh_catch.cc, libsupc++/eh_exception.cc,
libsupc++/eh_globals.cc, libsupc++/eh_personality.cc,
libsupc++/eh_term_handler.cc, libsupc++/eh_terminate.cc,
libsupc++/eh_throw.cc, libsupc++/eh_type.cc,
libsupc++/eh_unex_handler.cc, libsupc++/exception,
libsupc++/new, libsupc++/new_handler.cc, libsupc++/new_op.cc,
libsupc++/new_opnt.cc, libsupc++/new_opv.cc, libsupc++/new_opvnt.cc,
libsupc++/pure.cc, libsupc++/tinfo.cc, libsupc++/tinfo2.cc,
libsupc++/typeinfo, libsupc++/unwind-cxx.h, libsupc++/vec.cc:
Replace "GNU CC" with "GCC".
From-SVN: r67155
2003-05-24 18:22:03 +02:00
|
|
|
## GCC is free software; you can redistribute it and/or modify
|
2000-10-07 01:31:22 +02:00
|
|
|
## 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.
|
|
|
|
##
|
Makefile.am, [...]: Replace "GNU CC" with "GCC".
2003-05-24 Nathanael Nerode <neroden@gcc.gnu.org>
* libsupc++/Makefile.am, libsupc++/cxxabi.h, libsupc++/del_op.cc,
libsupc++/del_opnt.cc, libsupc++/del_opv.cc, libsupc++/del_opvnt.cc,
libsupc++/eh_alloc.cc, libsupc++/eh_aux_runtime.cc,
libsupc++/eh_catch.cc, libsupc++/eh_exception.cc,
libsupc++/eh_globals.cc, libsupc++/eh_personality.cc,
libsupc++/eh_term_handler.cc, libsupc++/eh_terminate.cc,
libsupc++/eh_throw.cc, libsupc++/eh_type.cc,
libsupc++/eh_unex_handler.cc, libsupc++/exception,
libsupc++/new, libsupc++/new_handler.cc, libsupc++/new_op.cc,
libsupc++/new_opnt.cc, libsupc++/new_opv.cc, libsupc++/new_opvnt.cc,
libsupc++/pure.cc, libsupc++/tinfo.cc, libsupc++/tinfo2.cc,
libsupc++/typeinfo, libsupc++/unwind-cxx.h, libsupc++/vec.cc:
Replace "GNU CC" with "GCC".
From-SVN: r67155
2003-05-24 18:22:03 +02:00
|
|
|
## GCC is distributed in the hope that it will be useful,
|
2000-10-07 01:31:22 +02:00
|
|
|
## 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
|
Makefile.am, [...]: Replace "GNU CC" with "GCC".
2003-05-24 Nathanael Nerode <neroden@gcc.gnu.org>
* libsupc++/Makefile.am, libsupc++/cxxabi.h, libsupc++/del_op.cc,
libsupc++/del_opnt.cc, libsupc++/del_opv.cc, libsupc++/del_opvnt.cc,
libsupc++/eh_alloc.cc, libsupc++/eh_aux_runtime.cc,
libsupc++/eh_catch.cc, libsupc++/eh_exception.cc,
libsupc++/eh_globals.cc, libsupc++/eh_personality.cc,
libsupc++/eh_term_handler.cc, libsupc++/eh_terminate.cc,
libsupc++/eh_throw.cc, libsupc++/eh_type.cc,
libsupc++/eh_unex_handler.cc, libsupc++/exception,
libsupc++/new, libsupc++/new_handler.cc, libsupc++/new_op.cc,
libsupc++/new_opnt.cc, libsupc++/new_opv.cc, libsupc++/new_opvnt.cc,
libsupc++/pure.cc, libsupc++/tinfo.cc, libsupc++/tinfo2.cc,
libsupc++/typeinfo, libsupc++/unwind-cxx.h, libsupc++/vec.cc:
Replace "GNU CC" with "GCC".
From-SVN: r67155
2003-05-24 18:22:03 +02:00
|
|
|
## along with GCC; see the file COPYING. If not, write to
|
2000-10-07 01:31:22 +02:00
|
|
|
## the Free Software Foundation, 59 Temple Place - Suite 330,
|
2003-08-27 23:29:43 +02:00
|
|
|
## Boston, MA 02111-1307, USA.
|
2000-10-07 01:31:22 +02:00
|
|
|
|
acinclude.m4 (GLIBCXX_EXPORT_INCLUDES): Remove LIBMATH_INCLUDES and LIBSUPCXX_INCLUDES.
2003-08-17 Phil Edwards <pme@gcc.gnu.org>
* acinclude.m4 (GLIBCXX_EXPORT_INCLUDES): Remove LIBMATH_INCLUDES
and LIBSUPCXX_INCLUDES. Re-purpose TOPLEVEL_INCLUDES to refer to
things from the top level.
* configure.ac (GLIBCXX_IS_NATIVE): Determine earlier and re-order.
Comment out the conditionals for CANADIAN and GLIBCXX_BUILD_LIBMATH
(currently unused). Strip the fake-VPATH shell fragment from
automake-generated rules, if present.
* linkage.m4: Add comment.
* fragment.am: New file, containing factored-out common settings.
(AM_CPPFLAGS): Absorb the deprecated INCLUDES variable contents.
* Makefile.am: Include fragment.am. Remove common variables.
* include/Makefile.am: Likewise.
* libmath/Makefile.am: Likewise.
* libsupc++/Makefile.am: Likewise.
* po/Makefile.am: Likewise. Print rules during check.
* src/Makefile.am: Likewise.
* testsuite/Makefile.am: Likewise.
* aclocal.m4, configure, Makefile.in, include/Makefile.in,
libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
src/Makefile.in, testsuite/Makefile.in: Regenerate.
From-SVN: r70522
2003-08-17 22:23:12 +02:00
|
|
|
include $(top_srcdir)/fragment.am
|
2000-10-07 01:31:22 +02:00
|
|
|
|
|
|
|
# Need this library to both be part of libstdc++.a, and installed
|
|
|
|
# separately too.
|
2003-08-27 23:29:43 +02:00
|
|
|
# 1) separate libsupc++.la
|
2000-10-07 01:31:22 +02:00
|
|
|
toolexeclib_LTLIBRARIES = libsupc++.la
|
|
|
|
# 2) integrated libsupc++convenience.la that is to be a part of libstdc++.a
|
|
|
|
noinst_LTLIBRARIES = libsupc++convenience.la
|
|
|
|
|
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
|
|
|
|
2000-10-07 01:31:22 +02:00
|
|
|
headers = \
|
2003-08-27 23:29:43 +02:00
|
|
|
exception new typeinfo cxxabi.h exception_defines.h
|
2000-10-07 01:31:22 +02:00
|
|
|
|
2002-06-20 21:08:42 +02:00
|
|
|
sources = \
|
2000-10-07 01:31:22 +02:00
|
|
|
del_op.cc \
|
|
|
|
del_opnt.cc \
|
|
|
|
del_opv.cc \
|
|
|
|
del_opvnt.cc \
|
2001-03-28 13:04:51 +02:00
|
|
|
eh_alloc.cc \
|
|
|
|
eh_aux_runtime.cc \
|
|
|
|
eh_catch.cc \
|
|
|
|
eh_exception.cc \
|
|
|
|
eh_globals.cc \
|
|
|
|
eh_personality.cc \
|
2002-12-26 07:10:35 +01:00
|
|
|
eh_term_handler.cc \
|
2001-03-28 13:04:51 +02:00
|
|
|
eh_terminate.cc \
|
|
|
|
eh_throw.cc \
|
2001-11-18 03:09:23 +01:00
|
|
|
eh_type.cc \
|
2002-12-26 07:10:35 +01:00
|
|
|
eh_unex_handler.cc \
|
2002-11-26 00:17:31 +01:00
|
|
|
guard.cc \
|
2000-10-07 01:31:22 +02:00
|
|
|
new_handler.cc \
|
|
|
|
new_op.cc \
|
|
|
|
new_opnt.cc \
|
|
|
|
new_opv.cc \
|
|
|
|
new_opvnt.cc \
|
2000-10-09 23:04:58 +02:00
|
|
|
pure.cc \
|
2000-10-07 01:31:22 +02:00
|
|
|
tinfo.cc \
|
|
|
|
tinfo2.cc \
|
2002-12-26 07:10:35 +01:00
|
|
|
vec.cc \
|
|
|
|
vterminate.cc
|
2000-10-07 01:31:22 +02:00
|
|
|
|
2003-08-27 23:29:43 +02:00
|
|
|
libsupc___la_SOURCES = $(sources)
|
|
|
|
libsupc__convenience_la_SOURCES = $(sources)
|
2000-10-07 01:31:22 +02:00
|
|
|
|
2003-07-05 06:05:45 +02:00
|
|
|
glibcxxinstalldir = $(gxx_include_dir)
|
|
|
|
glibcxxinstall_HEADERS = $(headers)
|
2000-10-11 01:50:39 +02:00
|
|
|
|
2000-10-07 03:05:37 +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
|
2003-08-27 23:29:43 +02:00
|
|
|
# as the occasion call for it.
|
2000-10-07 01:31:22 +02:00
|
|
|
AM_CXXFLAGS = \
|
2000-10-07 03:05:37 +02:00
|
|
|
-fno-implicit-templates \
|
2003-08-27 02:38:28 +02:00
|
|
|
$(LIBSUPCXX_PICFLAGS) \
|
2000-10-07 03:05:37 +02:00
|
|
|
$(WARN_CXXFLAGS) \
|
|
|
|
$(OPTIMIZE_CXXFLAGS) \
|
2003-08-27 23:29:43 +02:00
|
|
|
$(CONFIG_CXXFLAGS)
|
2000-10-07 01:31:22 +02:00
|
|
|
|
2003-03-07 09:01:24 +01:00
|
|
|
AM_MAKEFLAGS = \
|
|
|
|
"gxx_include_dir=$(gxx_include_dir)"
|
|
|
|
|
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
|
2001-01-23 09:57:34 +01:00
|
|
|
# attempt to infer which configuration to use.
|
|
|
|
#
|
|
|
|
# We have to put --tag disable-shared after --tag CXX lest things
|
|
|
|
# CXX undo the affect of disable-shared.
|
|
|
|
LTCXXCOMPILE = $(LIBTOOL) --tag CXX --tag disable-shared \
|
2003-08-27 23:29:43 +02:00
|
|
|
--mode=compile $(CXX) $(TOPLEVEL_INCLUDES) \
|
|
|
|
$(AM_CPPFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(AM_CXXFLAGS)
|
2000-10-07 03:05:37 +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.
|
2001-03-28 23:18:21 +02:00
|
|
|
CXXLINK = $(LIBTOOL) --tag CXX --tag disable-shared \
|
2003-08-27 23:29:43 +02:00
|
|
|
--mode=link $(CXX) \
|
|
|
|
$(OPT_LDFLAGS) $(SECTION_LDFLAGS) $(AM_CXXFLAGS) $(LDFLAGS) -o $@
|
2001-06-04 04:24:06 +02:00
|
|
|
|
|
|
|
# We have to have rules modified from the default to counteract SUN make
|
2003-07-05 06:05:45 +02:00
|
|
|
# prepending each of $(glibcxxinstall_HEADERS) with VPATH below.
|
|
|
|
install-glibcxxinstallHEADERS: $(glibcxxinstall_HEADERS)
|
2001-06-04 04:24:06 +02:00
|
|
|
@$(NORMAL_INSTALL)
|
2003-07-05 06:05:45 +02:00
|
|
|
$(mkinstalldirs) $(DESTDIR)$(glibcxxinstalldir)
|
|
|
|
@list='$(glibcxxinstall_HEADERS)'; for p in $$list; do \
|
2001-06-04 04:24:06 +02:00
|
|
|
q=`echo $$p | sed -e 's,.*/,,'`; \
|
|
|
|
if test -f "$$p"; then d= ; else d="$(srcdir)/"; fi; \
|
2003-07-05 06:05:45 +02:00
|
|
|
echo " $(INSTALL_DATA) $$d$$p $(DESTDIR)$(glibcxxinstalldir)/$$q"; \
|
|
|
|
$(INSTALL_DATA) $$d$$p $(DESTDIR)$(glibcxxinstalldir)/$$q; \
|
2001-06-04 04:24:06 +02:00
|
|
|
done
|
|
|
|
|
2003-07-05 06:05:45 +02:00
|
|
|
uninstall-glibcxxinstallHEADERS:
|
2001-06-04 04:24:06 +02:00
|
|
|
@$(NORMAL_UNINSTALL)
|
2003-07-05 06:05:45 +02:00
|
|
|
list='$(glibcxxinstall_HEADERS)'; for p in $$list; do \
|
2001-06-04 04:24:06 +02:00
|
|
|
q=`echo $$p | sed -e 's,.*/,,'`; \
|
2003-07-05 06:05:45 +02:00
|
|
|
rm -f $(DESTDIR)$(glibcxxinstalldir)/$$q; \
|
2001-06-04 04:24:06 +02:00
|
|
|
done
|