]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/libstdc++-v3/build/include/Makefile
update
[l4.git] / l4 / pkg / libstdc++-v3 / build / include / Makefile
1 PKGDIR =        ../..
2 L4DIR ?=        $(PKGDIR)/../..
3
4 $(error Tschüss)
5
6 CONTRIB_HEADERS = y
7 INCSRC_DIR      = $(PKGDIR_ABS)/contrib/libstdc++-v3/include
8 TARGET  = $(shell (cd $(INCSRC_DIR) && find . -type f -not -name 'Make*' -print))
9
10 LIBSUPC_H := exception_defines.h exception new typeinfo cxxabi.h cxxabi-forced.h
11
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
21
22 CTYPE_HEADERS := config/os/generic/ctype_base.h config/os/generic/ctype_inline.h config/os/generic/ctype_noninline.h
23 # FIX BID:
24
25 ARCH=x86
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
29
30
31 include $(L4DIR)/mk/include.mk
32
33 INSTALL_INCDIR_X = $(INSTALLDIR_LOCAL)/$(INSTALL_INC_PREFIX)
34 SRCDIR_X         = $(PKGDIR_ABS)/contrib/libstdc++-v3
35
36 install_std_header = $(VERBOSE)$(LN) -sf $(INSTALL_INCDIR_X)/$(strip $(1))/* $(INSTALL_INCDIR_X)/$(strip $(2))
37
38 install_header = $(VERBOSE)$(LN) -sf $(SRCDIR_X)/$(strip $(1)) $(INSTALL_INCDIR_X)/$(strip $(2))
39
40 install_config_header = $(call install_header, $(1), bits/$(strip $(2)))
41
42 LIBSUPC_HI = $(addprefix $(INSTALL_INCDIR_X)/, $(LIBSUPC_H))
43
44 $(LIBSUPC_HI): %:
45         $(call install_header, libsupc++/$(notdir $@), $(notdir $@))
46
47 all:: $(LIBSUPC_HI)
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)