2014-05-07 21:52:52 +00:00
|
|
|
STDCXX_PORT_DIR := $(call select_from_ports,stdcxx)
|
|
|
|
|
2012-08-31 15:13:06 +00:00
|
|
|
# determine location of libstdc++ source tree
|
2014-05-07 21:52:52 +00:00
|
|
|
STDCXX_DIR := $(STDCXX_PORT_DIR)/src/lib/stdcxx
|
|
|
|
|
|
|
|
# public headers from port
|
|
|
|
INC_DIR += $(STDCXX_PORT_DIR)/include/stdcxx
|
2012-08-31 15:13:06 +00:00
|
|
|
|
|
|
|
# enable 'atomic.cc' to find 'gstdint.h'
|
2014-05-07 21:52:52 +00:00
|
|
|
INC_DIR += $(REP_DIR)/include/stdcxx/bits
|
|
|
|
|
|
|
|
## enable 'allocator-inst.cc' to find 'memory'
|
|
|
|
#INC_DIR += $(REP_DIR)/include/stdcxx/std
|
2012-08-31 15:13:06 +00:00
|
|
|
|
|
|
|
# exclude code that is no single compilation unit
|
2012-11-08 13:10:34 +00:00
|
|
|
FILTER_OUT = hash-long-double-tr1-aux.cc
|
2012-08-31 15:13:06 +00:00
|
|
|
|
|
|
|
# exclude deprecated parts
|
|
|
|
FILTER_OUT += strstream.cc
|
|
|
|
|
2012-11-08 13:10:34 +00:00
|
|
|
# add libstdc++ sources
|
|
|
|
SRC_CC += $(filter-out $(FILTER_OUT),$(notdir $(wildcard $(STDCXX_DIR)/src/c++11/*.cc)))
|
|
|
|
SRC_CC += $(filter-out $(FILTER_OUT),$(notdir $(wildcard $(STDCXX_DIR)/src/c++98/*.cc)))
|
2012-08-31 15:13:06 +00:00
|
|
|
|
|
|
|
# add config/locale/generic sources
|
|
|
|
SRC_CC += $(notdir $(wildcard $(STDCXX_DIR)/config/locale/generic/*.cc))
|
|
|
|
|
2012-11-08 13:10:34 +00:00
|
|
|
# add config/os/generic sources
|
|
|
|
SRC_CC += $(notdir $(wildcard $(STDCXX_DIR)/config/os/generic/*.cc))
|
|
|
|
|
|
|
|
CC_OPT += -D__GXX_EXPERIMENTAL_CXX0X__ -std=c++11
|
2012-08-31 15:13:06 +00:00
|
|
|
|
|
|
|
# add config/io backend
|
|
|
|
SRC_CC += basic_file_stdio.cc
|
|
|
|
INC_DIR += $(STDCXX_DIR)/config/io
|
|
|
|
|
|
|
|
# add bits of libsupc++ (most parts are already contained in the cxx library)
|
|
|
|
SRC_CC += new_op.cc new_opnt.cc new_opv.cc new_opvnt.cc new_handler.cc
|
|
|
|
SRC_CC += del_op.cc del_opnt.cc del_opv.cc del_opvnt.cc
|
|
|
|
SRC_CC += bad_cast.cc bad_alloc.cc bad_typeid.cc
|
|
|
|
SRC_CC += eh_aux_runtime.cc hash_bytes.cc
|
2014-04-03 15:39:19 +00:00
|
|
|
SRC_CC += tinfo.cc
|
2012-08-31 15:13:06 +00:00
|
|
|
INC_DIR += $(STDCXX_DIR)/libsupc++
|
|
|
|
|
|
|
|
include $(REP_DIR)/lib/import/import-stdcxx.mk
|
|
|
|
|
2012-11-08 13:10:34 +00:00
|
|
|
vpath %.cc $(STDCXX_DIR)/src/c++11
|
|
|
|
vpath %.cc $(STDCXX_DIR)/src/c++98
|
2012-08-31 15:13:06 +00:00
|
|
|
vpath %.cc $(STDCXX_DIR)/config/locale/generic
|
2012-11-08 13:10:34 +00:00
|
|
|
vpath %.cc $(STDCXX_DIR)/config/os/generic
|
2012-08-31 15:13:06 +00:00
|
|
|
vpath %.cc $(STDCXX_DIR)/config/io
|
|
|
|
vpath %.cc $(STDCXX_DIR)/libsupc++
|
|
|
|
|
|
|
|
SHARED_LIB = yes
|