genode/repos/libports/lib/mk/stdcxx.mk
Christian Prochaska 661a3100b1 stdcxx: update to version 6.3.0
Issue #2372
2017-05-31 13:15:50 +02:00

28 lines
950 B
Makefile

STDCXX_PORT_DIR := $(call select_from_ports,stdcxx)
include $(REP_DIR)/lib/import/import-stdcxx.mk
# determine location of libstdc++ source tree
STDCXX_DIR := $(STDCXX_PORT_DIR)/src/lib/stdcxx
# enable 'compatibility-atomic-c++0x.cc' to find 'gstdint.h'
INC_DIR += $(REP_DIR)/include/stdcxx/bits
# add libstdc++ sources
SRC_CC += $(filter-out $(FILTER_OUT),$(notdir $(wildcard $(STDCXX_DIR)/src/c++11/*.cc)))
# 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_ops.cc del_opv.cc del_opvnt.cc del_opvs.cc
SRC_CC += bad_array_length.cc bad_array_new.cc bad_cast.cc bad_alloc.cc bad_typeid.cc
SRC_CC += eh_aux_runtime.cc hash_bytes.cc
SRC_CC += tinfo.cc
INC_DIR += $(STDCXX_DIR)/libsupc++
LIBS += stdcxx-c++98 libc libm
vpath %.cc $(STDCXX_DIR)/src/c++11
vpath %.cc $(STDCXX_DIR)/libsupc++
SHARED_LIB = yes