2 L4DIR ?= $(PKGDIR)/../..
7 INCSRC_DIR = $(PKGDIR_ABS)/contrib/libstdc++-v3/include
8 TARGET = $(shell (cd $(INCSRC_DIR) && find . -type f -not -name 'Make*' -print))
10 LIBSUPC_H := exception_defines.h exception new typeinfo cxxabi.h cxxabi-forced.h
12 ALLOCATOR_H := config/allocator/new_allocator_base.h
13 CLOCALE_H := config/locale/generic/c_locale.h
14 ATOMIC_WORD_H := config/cpu/generic/atomic_word.h
15 CPU_DEFINES_H := config/cpu/generic/cpu_defines.h
16 TIME_MEMBERS_H := config/locale/generic/time_members.h
17 MESSAGES_MEMBERS_H := config/locale/generic/messages_members.h
18 BASIC_FILE_H := config/io/basic_file_stdio.h
19 CSTDIO_H := config/io/c_io_stdio.h
20 CMATH_TCC := include/c_std/cmath.tcc
22 CTYPE_HEADERS := config/os/generic/ctype_base.h config/os/generic/ctype_inline.h config/os/generic/ctype_noninline.h
26 CXX_ABI_TWEAKS_arm = config/cpu/arm/cxxabi_tweaks.h
27 CXX_ABI_TWEAKS_x86 = config/cpu/generic/cxxabi_tweaks.h
28 CXX_ABI_TWEAKS_amd64 = config/cpu/generic/cxxabi_tweaks.h
31 include $(L4DIR)/mk/include.mk
33 INSTALL_INCDIR_X = $(INSTALLDIR_LOCAL)/$(INSTALL_INC_PREFIX)
34 SRCDIR_X = $(PKGDIR_ABS)/contrib/libstdc++-v3
36 install_std_header = $(VERBOSE)$(LN) -sf $(INSTALL_INCDIR_X)/$(strip $(1))/* $(INSTALL_INCDIR_X)/$(strip $(2))
38 install_header = $(VERBOSE)$(LN) -sf $(SRCDIR_X)/$(strip $(1)) $(INSTALL_INCDIR_X)/$(strip $(2))
40 install_config_header = $(call install_header, $(1), bits/$(strip $(2)))
42 LIBSUPC_HI = $(addprefix $(INSTALL_INCDIR_X)/, $(LIBSUPC_H))
45 $(call install_header, libsupc++/$(notdir $@), $(notdir $@))
48 @$(INSTALL_LINK_MESSAGE)
49 $(call install_config_header, $(ALLOCATOR_H), c++allocator.h)
50 $(call install_config_header, $(CLOCALE_H), c++locale.h)
51 $(call install_config_header, $(ATOMIC_WORD_H), atomic_word.h)
52 $(call install_config_header, $(CPU_DEFINES_H), cpu_defines.h)
53 # $(call install_config_header, $(CTYPE_HEADERS), .)
54 $(call install_config_header, $(TIME_MEMBERS_H), time_members.h)
55 $(call install_config_header, $(MESSAGES_MEMBERS_H), messages_members.h)
56 $(call install_config_header, $(CXX_ABI_TWEAKS_$(ARCH)), cxxabi_tweaks.h)
57 $(call install_config_header, $(BASIC_FILE_H), basic_file.h)
58 $(call install_config_header, $(CSTDIO_H), c++io.h)
59 $(call install_config_header, $(CMATH_TCC), cmath.tcc)
60 $(call install_std_header, std)
61 # $(call install_std_header, c)
62 $(call install_std_header, c_std)
63 # $(call install_std_header, c_global)