2012-08-31 15:13:06 +00:00
|
|
|
include ports/stdcxx.inc
|
|
|
|
|
2013-05-25 12:50:46 +00:00
|
|
|
STDCXX_TBZ2 = $(STDCXX).tar.bz2
|
|
|
|
STDCXX_SIG = gcc-$(STDCXX_VERSION).tar.bz2.sig
|
|
|
|
STDCXX_BASE_URL = ftp://ftp.fu-berlin.de/gnu/gcc/gcc-$(STDCXX_VERSION)
|
|
|
|
STDCXX_URL = $(STDCXX_BASE_URL)/gcc-$(STDCXX_VERSION).tar.bz2
|
|
|
|
STDCXX_URL_SIG = $(STDCXX_BASE_URL)/$(STDCXX_SIG)
|
|
|
|
STDCXX_KEY = GNU
|
2012-08-31 15:13:06 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Interface to top-level prepare Makefile
|
|
|
|
#
|
|
|
|
PORTS += $(STDCXX)
|
|
|
|
|
|
|
|
STDCXX_GEN_INCLUDES := \
|
|
|
|
include/stdcxx-genode/new \
|
|
|
|
include/stdcxx-genode/exception \
|
2013-08-09 11:51:31 +00:00
|
|
|
include/stdcxx-genode/typeinfo \
|
2013-09-18 16:04:18 +00:00
|
|
|
include/stdcxx-genode/initializer_list \
|
2012-11-08 13:10:34 +00:00
|
|
|
include/stdcxx-genode/bits/c++allocator.h \
|
2012-08-31 15:13:06 +00:00
|
|
|
include/stdcxx-genode/bits/c++locale.h \
|
2012-11-08 13:10:34 +00:00
|
|
|
include/stdcxx-genode/bits/cpu_defines.h \
|
|
|
|
include/stdcxx-genode/bits/cxxabi_tweaks.h \
|
2012-08-31 15:13:06 +00:00
|
|
|
include/stdcxx-genode/bits/hash_bytes.h \
|
|
|
|
include/stdcxx-genode/bits/error_constants.h \
|
2012-11-08 13:10:34 +00:00
|
|
|
include/stdcxx-genode/bits/os_defines.h \
|
2012-08-31 15:13:06 +00:00
|
|
|
include/stdcxx-genode/bits/cxxabi_forced.h \
|
2012-11-08 13:10:34 +00:00
|
|
|
include/stdcxx-genode/bits/atomic_lockfree_defines.h \
|
2012-08-31 15:13:06 +00:00
|
|
|
include/stdcxx-genode/bits/basic_file.h \
|
|
|
|
include/stdcxx-genode/bits/c++io.h \
|
|
|
|
include/stdcxx-genode/bits/atomic_word.h \
|
|
|
|
include/stdcxx-genode/bits/ctype_base.h \
|
|
|
|
include/stdcxx-genode/bits/ctype_inline.h \
|
|
|
|
include/stdcxx-genode/bits/time_members.h \
|
|
|
|
include/stdcxx-genode/bits/messages_members.h \
|
2012-11-08 13:10:34 +00:00
|
|
|
include/stdcxx-genode/bits/exception_defines.h \
|
2012-08-31 15:13:06 +00:00
|
|
|
include/stdcxx-genode/bits/exception_ptr.h \
|
|
|
|
include/stdcxx-genode/bits/nested_exception.h
|
|
|
|
|
|
|
|
prepare-stdcxx: $(CONTRIB_DIR)/$(STDCXX) include/stdcxx $(STDCXX_GEN_INCLUDES)
|
|
|
|
|
|
|
|
$(CONTRIB_DIR)/$(STDCXX): clean-stdcxx
|
|
|
|
|
|
|
|
#
|
|
|
|
# Port-specific local rules
|
|
|
|
#
|
|
|
|
$(DOWNLOAD_DIR)/$(STDCXX_TBZ2):
|
|
|
|
$(VERBOSE)wget -c -P $(DOWNLOAD_DIR) -O$@ $(STDCXX_URL) && touch $@
|
2013-06-10 09:38:52 +00:00
|
|
|
|
|
|
|
$(DOWNLOAD_DIR)/$(STDCXX_SIG):
|
2013-05-25 12:50:46 +00:00
|
|
|
$(VERBOSE)wget -c -P $(DOWNLOAD_DIR) $(STDCXX_URL_SIG) && touch $@
|
2013-06-06 14:49:56 +00:00
|
|
|
|
2013-06-10 09:38:52 +00:00
|
|
|
$(DOWNLOAD_DIR)/$(STDCXX_TBZ2).verified: $(DOWNLOAD_DIR)/$(STDCXX_TBZ2) \
|
|
|
|
$(DOWNLOAD_DIR)/$(STDCXX_SIG)
|
2013-05-25 12:50:46 +00:00
|
|
|
$(VERBOSE)$(SIGVERIFIER) $(DOWNLOAD_DIR)/$(STDCXX_TBZ2) $(DOWNLOAD_DIR)/$(STDCXX_SIG) $(STDCXX_KEY)
|
2013-06-06 14:49:56 +00:00
|
|
|
$(VERBOSE)touch $@
|
2012-08-31 15:13:06 +00:00
|
|
|
|
2013-06-06 14:49:56 +00:00
|
|
|
$(CONTRIB_DIR)/$(STDCXX): $(DOWNLOAD_DIR)/$(STDCXX_TBZ2).verified
|
|
|
|
$(VERBOSE)tar xfj $(<:.verified=) -C $(CONTRIB_DIR) gcc-$(STDCXX_VERSION)/libstdc++-v3 \
|
2012-08-31 15:13:06 +00:00
|
|
|
--transform "s/gcc-$(STDCXX_VERSION).libstdc++-v3/stdcxx-$(STDCXX_VERSION)/" && touch $@
|
|
|
|
|
|
|
|
include/stdcxx:
|
|
|
|
$(VERBOSE)ln -s ../$(CONTRIB_DIR)/$(STDCXX)/include $@
|
|
|
|
include/stdcxx-genode/new:
|
|
|
|
$(VERBOSE)ln -s ../../$(CONTRIB_DIR)/$(STDCXX)/libsupc++/new $@
|
|
|
|
include/stdcxx-genode/exception:
|
|
|
|
$(VERBOSE)ln -s ../../$(CONTRIB_DIR)/$(STDCXX)/libsupc++/exception $@
|
2013-08-09 11:51:31 +00:00
|
|
|
include/stdcxx-genode/typeinfo:
|
|
|
|
$(VERBOSE)ln -s ../../$(CONTRIB_DIR)/$(STDCXX)/libsupc++/typeinfo $@
|
2013-09-18 16:04:18 +00:00
|
|
|
include/stdcxx-genode/initializer_list:
|
|
|
|
$(VERBOSE)ln -s ../../$(CONTRIB_DIR)/$(STDCXX)/libsupc++/initializer_list $@
|
2012-08-31 15:13:06 +00:00
|
|
|
include/stdcxx-genode/bits/hash_bytes.h:
|
|
|
|
$(VERBOSE)ln -s ../../../$(CONTRIB_DIR)/$(STDCXX)/libsupc++/hash_bytes.h $@
|
2012-11-08 13:10:34 +00:00
|
|
|
include/stdcxx-genode/bits/exception_defines.h:
|
|
|
|
$(VERBOSE)ln -s ../../../$(CONTRIB_DIR)/$(STDCXX)/libsupc++/exception_defines.h $@
|
2012-08-31 15:13:06 +00:00
|
|
|
include/stdcxx-genode/bits/exception_ptr.h:
|
|
|
|
$(VERBOSE)ln -s ../../../$(CONTRIB_DIR)/$(STDCXX)/libsupc++/exception_ptr.h $@
|
|
|
|
include/stdcxx-genode/bits/nested_exception.h:
|
|
|
|
$(VERBOSE)ln -s ../../../$(CONTRIB_DIR)/$(STDCXX)/libsupc++/nested_exception.h $@
|
|
|
|
include/stdcxx-genode/bits/cxxabi_forced.h:
|
|
|
|
$(VERBOSE)ln -s ../../../$(CONTRIB_DIR)/$(STDCXX)/libsupc++/cxxabi_forced.h $@
|
2012-11-08 13:10:34 +00:00
|
|
|
include/stdcxx-genode/bits/atomic_lockfree_defines.h:
|
|
|
|
$(VERBOSE)ln -s ../../../$(CONTRIB_DIR)/$(STDCXX)/libsupc++/atomic_lockfree_defines.h $@
|
|
|
|
include/stdcxx-genode/bits/c++allocator.h:
|
|
|
|
$(VERBOSE)ln -s ../../../$(CONTRIB_DIR)/$(STDCXX)/config/allocator/new_allocator_base.h $@
|
2012-08-31 15:13:06 +00:00
|
|
|
include/stdcxx-genode/bits/c++locale.h:
|
|
|
|
$(VERBOSE)ln -s ../../../$(CONTRIB_DIR)/$(STDCXX)/config/locale/generic/c_locale.h $@
|
2012-11-08 13:10:34 +00:00
|
|
|
include/stdcxx-genode/bits/cpu_defines.h:
|
|
|
|
$(VERBOSE)ln -s ../../../$(CONTRIB_DIR)/$(STDCXX)/config/cpu/generic/cpu_defines.h $@
|
|
|
|
include/stdcxx-genode/bits/cxxabi_tweaks.h:
|
|
|
|
$(VERBOSE)ln -s ../../../$(CONTRIB_DIR)/$(STDCXX)/config/cpu/generic/cxxabi_tweaks.h $@
|
2012-08-31 15:13:06 +00:00
|
|
|
include/stdcxx-genode/bits/error_constants.h:
|
|
|
|
$(VERBOSE)ln -s ../../../$(CONTRIB_DIR)/$(STDCXX)/config/os/generic/error_constants.h $@
|
2012-11-08 13:10:34 +00:00
|
|
|
include/stdcxx-genode/bits/os_defines.h:
|
|
|
|
$(VERBOSE)ln -s ../../../$(CONTRIB_DIR)/$(STDCXX)/config/os/generic/os_defines.h $@
|
2012-08-31 15:13:06 +00:00
|
|
|
include/stdcxx-genode/bits/basic_file.h:
|
|
|
|
$(VERBOSE)ln -s ../../../$(CONTRIB_DIR)/$(STDCXX)/config/io/basic_file_stdio.h $@
|
|
|
|
include/stdcxx-genode/bits/c++io.h:
|
|
|
|
$(VERBOSE)ln -s ../../../$(CONTRIB_DIR)/$(STDCXX)/config/io/c_io_stdio.h $@
|
|
|
|
include/stdcxx-genode/bits/atomic_word.h:
|
|
|
|
$(VERBOSE)ln -s ../../../$(CONTRIB_DIR)/$(STDCXX)/config/cpu/generic/atomic_word.h $@
|
|
|
|
include/stdcxx-genode/bits/ctype_base.h:
|
|
|
|
$(VERBOSE)ln -s ../../../$(CONTRIB_DIR)/$(STDCXX)/config/os/generic/ctype_base.h $@
|
|
|
|
include/stdcxx-genode/bits/ctype_inline.h:
|
|
|
|
$(VERBOSE)ln -s ../../../$(CONTRIB_DIR)/$(STDCXX)/config/os/generic/ctype_inline.h $@
|
|
|
|
include/stdcxx-genode/bits/time_members.h:
|
|
|
|
$(VERBOSE)ln -s ../../../$(CONTRIB_DIR)/$(STDCXX)/config/locale/generic/time_members.h $@
|
|
|
|
include/stdcxx-genode/bits/messages_members.h:
|
|
|
|
$(VERBOSE)ln -s ../../../$(CONTRIB_DIR)/$(STDCXX)/config/locale/generic/messages_members.h $@
|
|
|
|
|
|
|
|
clean-stdcxx:
|
|
|
|
$(VERBOSE)rm -rf $(CONTRIB_DIR)/$(STDCXX)
|
|
|
|
$(VERBOSE)rm -f include/stdcxx
|
|
|
|
$(VERBOSE)rm -f $(STDCXX_GEN_INCLUDES)
|