2000-10-07 01:31:22 +02:00
|
|
|
## Makefile for the GNU C++ Support library.
|
|
|
|
##
|
2007-05-08 08:50:32 +02:00
|
|
|
## Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2007
|
2005-11-22 01:19:07 +01:00
|
|
|
## 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
|
2005-08-17 04:28:44 +02:00
|
|
|
## the Free Software Foundation, 51 Franklin Street, Fifth Floor,
|
|
|
|
## Boston, MA 02110-1301, 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 = \
|
2007-05-08 08:50:32 +02:00
|
|
|
exception new typeinfo cxxabi.h cxxabi-forced.h exception_defines.h
|
2000-10-07 01:31:22 +02:00
|
|
|
|
2004-08-02 22:28:22 +02:00
|
|
|
if GLIBCXX_HOSTED
|
|
|
|
c_sources = \
|
2004-02-27 04:21:16 +01:00
|
|
|
cp-demangle.c
|
2004-08-02 22:28:22 +02:00
|
|
|
endif
|
2004-02-27 04:21:16 +01:00
|
|
|
|
2002-06-20 21:08:42 +02:00
|
|
|
sources = \
|
2007-03-18 23:35:39 +01:00
|
|
|
array_type_info.cc \
|
2007-05-04 19:42:49 +02:00
|
|
|
atexit_arm.cc \
|
2007-03-18 23:35:39 +01:00
|
|
|
bad_cast.cc \
|
|
|
|
bad_typeid.cc \
|
|
|
|
class_type_info.cc \
|
2000-10-07 01:31:22 +02:00
|
|
|
del_op.cc \
|
|
|
|
del_opnt.cc \
|
|
|
|
del_opv.cc \
|
|
|
|
del_opvnt.cc \
|
2007-03-18 23:35:39 +01:00
|
|
|
dyncast.cc \
|
2001-03-28 13:04:51 +02:00
|
|
|
eh_alloc.cc \
|
Makefile.in: Set and use UNWIND_H.
2005-06-28 Paul Brook <paul@codesourcery.com>
gcc/
* Makefile.in: Set and use UNWIND_H. Install as unwind.h.
* c-decl.c (finish_decl): Call default_init_unwind_resume_libfunc.
* except.c (add_ehspec_entry): Generate arm eabi filter lists.
(assign_filter_values): Ditto.
(output_ttype): New function.
(output_function_exception_table): Use output_ttype. Generate arm
eabi filter lists.
(default_init_unwind_resume_libfunc): New function.
* except.h (default_init_unwind_resume_libfunc): Add prototype.
* optabs.c (init_optabs): Don't set unwind_resume_libfunc.
* opts.c (decode_options): Use targetm.unwind_tables_default.
* target-def.h (TARGET_ASM_TTYPE): Provide and use definition.
(TARGET_ARM_EABI_UNWINDER, TARGET_UNWIND_TABLES_DEFAULT): Ditto.
* target.h (struct gcc_target): Add asm.ttype, unwind_tables_default
and arm_eabi_unwinder.
* unwind-c.c: Support Arm EABI unwinder.
* unwind.h: Rename ...
* unwind-generic.h: ... To this.
* doc/tm.texi (TARGET_ASM_TTYPE, TARGET_ARM_EABI_UNWINDER): Document.
(TARGET_UNWID_TABLES_DEFAULT): Document.
* config/arm/arm-protos.h (arm_output_fn_unwind): Add prototype.
* config/arm/arm.c (arm_unwind_emit, arm_output_ttype): New functions.
(TARGET_UNWIND_EMIT, TARGET_ASM_TTYPE, TARGET_ARM_EABI_UNWINDER):
Define.
(thumb_pushpop, thumb_output_function_prologue): Output unwinding
directives.
(arm_unwind_emit_stm, arm_unwind_emit_set): New functions.
* config/arm/arm.h (MUST_USE_SJLJ_EXCEPTIONS): Only define when
!TARGET_UNWIND_INFO.
(ARM_OUTPUT_FN_UNWIND, ARM_EABI_UNWIND_TABLES): Define.
* config/arm/bpabi.h (TARGET_UNWIND_INFO): Define.
* config/arm/elf.h (ASM_DECLARE_FUNCTION_NAME,
ASM_DECLARE_FUNCTION_SIZE): Use ARM_OUTPUT_FN_UNWIND.
* config/arm/lib1funcs.asm: Include libunwind.S.
* config/arm/libgcc-bpabi.ver: Add unwinding routines.
* config/arm/libunwind.S: New file.
* config/arm/pr-support.c: New file.
* config/arm/t-bpabi (LIB1ASMFUNCS): Add _unwind.
(UNWIND_H, LIB2ADDEH, LIB2ADDEHDEP): Set.
* config/arm/t-symbian (UNWIND_H, LIB2ADDEH, LIB2ADDEHDEP): Set.
* config/arm/unwind-arm.c: New file.
* config/arm/unwind-arm.h: New file.
* config/i386/t-netware (USER_H): Remove unwind.h.
* config/ia64/ia64.h (TARGET_UNWIND_TABLES_DEFAULT): Define.
gcc/cp/
* Make-lang.in (cp/except.o): Depend on $(TARGET_H)
* except.c: Include target.h.
(init_exception_processing): Initialize unwind_resume_libfunc.
* doc/tm.texi: Document TARGET_ASM_TTYPE
gcc/ada/
* misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc.
gcc/java/
* decl.c (java_init_decl_processing): Call
default_init_unwind_resume_libfunc.
gcc/objc/
* objc-act.c (objc_init_exceptions): Call
default_init_unwind_resume_libfunc.
libstdc++/
* acinclude.m4 (GLIBCXX_ENABLE_SJLJ_EXCEPTIONS): Check for
__cxa_end_cleanup.
* libsupc++/Makefile.am (sources): Add eh_call.c and eh_arm.c.
* libsupc++/eh_arm.cc: New file.
* libsupc++/eh_call.cc: New file.
* libsupc++/eh_catch.cc (__cxa_get_exception_ptr): Use
__gxx_caught_object.
(__cxa_begin_catch): Ditto. Use __is_gxx_exception_class. Call
_Unwind_Complete when using the ARM EABI.
(__cxa_end_catch): Use __is_gxx_exception_class.
* libsupc++/eh_personality.cc: Define NO_SIZE_OF_ENCODED_VALUE when
using the ARM EABI.
(save_caught_exception, restore_caught_exception): New functions.
(_throw_typet): New typedef.
(get_ttype_entry, get_adjusted_ptr, check_exception_spec): Add ARM
EABI implementations.
(PERSONALITY_FUNCTION): Use new functions. Addd support for ARM EABI
unwinding libary.
(__cxa_unexpected): Disable when using the ARM EABI.
* libsupc++/eh_throw.cc (__cxa_throw): Use __GXX_INIT_EXCEPTION_CLASS.
(__cxa_rethrow): Use __is_gxx_exception_class. Call
_Unwind_RaiseException when using the ARM EABI.
* libsupc++/unwind-cxx.h (struct __cxa_exception): Add fields for ARM
EABI semantics.
(struct __cxa_eh_globals): Ditto.
(__cxa_call_terminate): Add prototype.
(__cxa_type_match, __cxa_begin_cleanup, __cxa_end_cleanup): Add
prototypes.
(__get_exception_header_from_obj, __get_exception_header_from_ue):
Move earlier in file.
(__is_gxx_exception_class, __GXX_INIT_EXCEPTION_CLASS,
__gxx_caught_object): New functions.
* aclocal.m4: Regenerate.
* configure: Regenerate.
* Makefile.in: Regenerate.
* include/Makefile.in: Regenerate.
* libmath/Makefile.in: Regenerate.
* libsupc++/Makefile.in: Regenerate.
* po/Makefile.in: Regenerate.
* src/Makefie.in: Regenerate.
* testsuite/makefile.in: Regenerate.
From-SVN: r101385
2005-06-28 21:52:27 +02:00
|
|
|
eh_arm.cc \
|
2001-03-28 13:04:51 +02:00
|
|
|
eh_aux_runtime.cc \
|
Makefile.in: Set and use UNWIND_H.
2005-06-28 Paul Brook <paul@codesourcery.com>
gcc/
* Makefile.in: Set and use UNWIND_H. Install as unwind.h.
* c-decl.c (finish_decl): Call default_init_unwind_resume_libfunc.
* except.c (add_ehspec_entry): Generate arm eabi filter lists.
(assign_filter_values): Ditto.
(output_ttype): New function.
(output_function_exception_table): Use output_ttype. Generate arm
eabi filter lists.
(default_init_unwind_resume_libfunc): New function.
* except.h (default_init_unwind_resume_libfunc): Add prototype.
* optabs.c (init_optabs): Don't set unwind_resume_libfunc.
* opts.c (decode_options): Use targetm.unwind_tables_default.
* target-def.h (TARGET_ASM_TTYPE): Provide and use definition.
(TARGET_ARM_EABI_UNWINDER, TARGET_UNWIND_TABLES_DEFAULT): Ditto.
* target.h (struct gcc_target): Add asm.ttype, unwind_tables_default
and arm_eabi_unwinder.
* unwind-c.c: Support Arm EABI unwinder.
* unwind.h: Rename ...
* unwind-generic.h: ... To this.
* doc/tm.texi (TARGET_ASM_TTYPE, TARGET_ARM_EABI_UNWINDER): Document.
(TARGET_UNWID_TABLES_DEFAULT): Document.
* config/arm/arm-protos.h (arm_output_fn_unwind): Add prototype.
* config/arm/arm.c (arm_unwind_emit, arm_output_ttype): New functions.
(TARGET_UNWIND_EMIT, TARGET_ASM_TTYPE, TARGET_ARM_EABI_UNWINDER):
Define.
(thumb_pushpop, thumb_output_function_prologue): Output unwinding
directives.
(arm_unwind_emit_stm, arm_unwind_emit_set): New functions.
* config/arm/arm.h (MUST_USE_SJLJ_EXCEPTIONS): Only define when
!TARGET_UNWIND_INFO.
(ARM_OUTPUT_FN_UNWIND, ARM_EABI_UNWIND_TABLES): Define.
* config/arm/bpabi.h (TARGET_UNWIND_INFO): Define.
* config/arm/elf.h (ASM_DECLARE_FUNCTION_NAME,
ASM_DECLARE_FUNCTION_SIZE): Use ARM_OUTPUT_FN_UNWIND.
* config/arm/lib1funcs.asm: Include libunwind.S.
* config/arm/libgcc-bpabi.ver: Add unwinding routines.
* config/arm/libunwind.S: New file.
* config/arm/pr-support.c: New file.
* config/arm/t-bpabi (LIB1ASMFUNCS): Add _unwind.
(UNWIND_H, LIB2ADDEH, LIB2ADDEHDEP): Set.
* config/arm/t-symbian (UNWIND_H, LIB2ADDEH, LIB2ADDEHDEP): Set.
* config/arm/unwind-arm.c: New file.
* config/arm/unwind-arm.h: New file.
* config/i386/t-netware (USER_H): Remove unwind.h.
* config/ia64/ia64.h (TARGET_UNWIND_TABLES_DEFAULT): Define.
gcc/cp/
* Make-lang.in (cp/except.o): Depend on $(TARGET_H)
* except.c: Include target.h.
(init_exception_processing): Initialize unwind_resume_libfunc.
* doc/tm.texi: Document TARGET_ASM_TTYPE
gcc/ada/
* misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc.
gcc/java/
* decl.c (java_init_decl_processing): Call
default_init_unwind_resume_libfunc.
gcc/objc/
* objc-act.c (objc_init_exceptions): Call
default_init_unwind_resume_libfunc.
libstdc++/
* acinclude.m4 (GLIBCXX_ENABLE_SJLJ_EXCEPTIONS): Check for
__cxa_end_cleanup.
* libsupc++/Makefile.am (sources): Add eh_call.c and eh_arm.c.
* libsupc++/eh_arm.cc: New file.
* libsupc++/eh_call.cc: New file.
* libsupc++/eh_catch.cc (__cxa_get_exception_ptr): Use
__gxx_caught_object.
(__cxa_begin_catch): Ditto. Use __is_gxx_exception_class. Call
_Unwind_Complete when using the ARM EABI.
(__cxa_end_catch): Use __is_gxx_exception_class.
* libsupc++/eh_personality.cc: Define NO_SIZE_OF_ENCODED_VALUE when
using the ARM EABI.
(save_caught_exception, restore_caught_exception): New functions.
(_throw_typet): New typedef.
(get_ttype_entry, get_adjusted_ptr, check_exception_spec): Add ARM
EABI implementations.
(PERSONALITY_FUNCTION): Use new functions. Addd support for ARM EABI
unwinding libary.
(__cxa_unexpected): Disable when using the ARM EABI.
* libsupc++/eh_throw.cc (__cxa_throw): Use __GXX_INIT_EXCEPTION_CLASS.
(__cxa_rethrow): Use __is_gxx_exception_class. Call
_Unwind_RaiseException when using the ARM EABI.
* libsupc++/unwind-cxx.h (struct __cxa_exception): Add fields for ARM
EABI semantics.
(struct __cxa_eh_globals): Ditto.
(__cxa_call_terminate): Add prototype.
(__cxa_type_match, __cxa_begin_cleanup, __cxa_end_cleanup): Add
prototypes.
(__get_exception_header_from_obj, __get_exception_header_from_ue):
Move earlier in file.
(__is_gxx_exception_class, __GXX_INIT_EXCEPTION_CLASS,
__gxx_caught_object): New functions.
* aclocal.m4: Regenerate.
* configure: Regenerate.
* Makefile.in: Regenerate.
* include/Makefile.in: Regenerate.
* libmath/Makefile.in: Regenerate.
* libsupc++/Makefile.in: Regenerate.
* po/Makefile.in: Regenerate.
* src/Makefie.in: Regenerate.
* testsuite/makefile.in: Regenerate.
From-SVN: r101385
2005-06-28 21:52:27 +02:00
|
|
|
eh_call.cc \
|
2001-03-28 13:04:51 +02:00
|
|
|
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 \
|
2007-03-18 23:35:39 +01:00
|
|
|
enum_type_info.cc \
|
|
|
|
function_type_info.cc \
|
|
|
|
fundamental_type_info.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 \
|
2007-03-18 23:35:39 +01:00
|
|
|
pbase_type_info.cc \
|
|
|
|
pmem_type_info.cc \
|
|
|
|
pointer_type_info.cc \
|
2000-10-09 23:04:58 +02:00
|
|
|
pure.cc \
|
2007-03-18 23:35:39 +01:00
|
|
|
si_class_type_info.cc \
|
2000-10-07 01:31:22 +02:00
|
|
|
tinfo.cc \
|
|
|
|
tinfo2.cc \
|
2002-12-26 07:10:35 +01:00
|
|
|
vec.cc \
|
2007-03-18 23:35:39 +01:00
|
|
|
vmi_class_type_info.cc \
|
2002-12-26 07:10:35 +01:00
|
|
|
vterminate.cc
|
2000-10-07 01:31:22 +02:00
|
|
|
|
2004-02-27 04:21:16 +01:00
|
|
|
libsupc___la_SOURCES = $(sources) $(c_sources)
|
|
|
|
libsupc__convenience_la_SOURCES = $(sources) $(c_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)"
|
|
|
|
|
2004-02-27 04:21:16 +01:00
|
|
|
|
|
|
|
# Use special rules for pulling things out of libiberty. These
|
|
|
|
# objects should be compiled with the "C" compiler, not the C++
|
|
|
|
# compiler, and also should not use the C++ includes.
|
|
|
|
C_INCLUDES = -I.. -I$(toplevel_srcdir)/libiberty -I$(toplevel_srcdir)/include
|
|
|
|
C_COMPILE = \
|
|
|
|
$(CC) $(DEFS) $(C_INCLUDES) \
|
|
|
|
$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
|
|
|
|
|
|
|
|
# LTCOMPILE is copied from LTCXXCOMPILE below.
|
|
|
|
LTCOMPILE = $(LIBTOOL) --tag CC --tag disable-shared --mode=compile $(CC) \
|
|
|
|
$(DEFS) $(C_INCLUDES) $(LIBSUPCXX_PICFLAGS) \
|
|
|
|
$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
|
|
|
|
|
|
|
|
cp-demangle.c:
|
|
|
|
rm -f $@
|
|
|
|
$(LN_S) $(toplevel_srcdir)/libiberty/cp-demangle.c $@
|
|
|
|
cp-demangle.lo: cp-demangle.c
|
|
|
|
$(LTCOMPILE) -DIN_GLIBCPP_V3 -Wno-error -c $<
|
|
|
|
cp-demangle.o: cp-demangle.c
|
|
|
|
$(C_COMPILE) -DIN_GLIBCPP_V3 -Wno-error -c $<
|
|
|
|
|
|
|
|
|
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) \
|
2005-11-22 01:19:07 +01:00
|
|
|
$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
|
2000-10-07 03:05:37 +02:00
|
|
|
|
2006-01-03 01:30:27 +01:00
|
|
|
LTLDFLAGS = $(shell $(SHELL) $(top_srcdir)/../libtool-ldflags $(LDFLAGS))
|
|
|
|
|
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) \
|
2006-01-03 01:30:27 +01:00
|
|
|
$(OPT_LDFLAGS) $(SECTION_LDFLAGS) $(AM_CXXFLAGS) $(LTLDFLAGS) -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
|