1PKGDIR ?= 	..
2L4DIR  ?= 	$(PKGDIR)/../../..
3
4TARGET         ?= libsupc++.a libsupc++.so
5PC_FILENAME    ?= libsupc++
6PC_LIBS        ?= -lsupc++
7PC_EXTRA       ?= Link_Libs= %{static:-lsupc++}
8REQUIRES_LIBS  ?= libc
9
10CONTRIB_INCDIR  = libstdc++-v3
11
12STDCXX_PKG_DIR ?= $(PKGDIR)/../libstdc++-v3
13
14STDCXX_SRC_DIR ?= $(STDCXX_CONTRIB_DIR)/libsupc++
15VPATH_SRC_BASE  = $(STDCXX_SRC_DIR)
16PRIVATE_INCDIR  = $(STDCXX_PKG_DIR)/contrib/gcc-$(STDCXX_CONTRIB_VERSION) \
17		  $(STDCXX_SRC_DIR)
18
19SRC_CC := \
20del_op.cc \
21del_opnt.cc \
22del_opv.cc \
23del_opvnt.cc \
24eh_alloc.cc \
25eh_arm.cc \
26eh_aux_runtime.cc \
27eh_call.cc \
28eh_catch.cc \
29eh_exception.cc \
30eh_globals.cc \
31eh_personality.cc \
32eh_term_handler.cc \
33eh_terminate.cc \
34eh_throw.cc \
35eh_type.cc \
36eh_unex_handler.cc \
37guard.cc \
38new_handler.cc \
39new_op.cc \
40new_opnt.cc \
41new_opv.cc \
42new_opvnt.cc \
43pure.cc \
44tinfo2.cc \
45tinfo.cc \
46vec.cc \
47vterminate.cc \
48demangle.cc \
49l4_terminate_handler.cc
50
51SUPCXX_PKG_DIR ?= $(PKGDIR)
52
53include $(STDCXX_PKG_DIR)/contrib.inc
54include $(SUPCXX_PKG_DIR)/build/Makefile-$(STDCXX_CONTRIB_VERSION)
55include $(L4DIR)/mk/lib.mk
56
57$(GENERAL_D_LOC): $(SUPCXX_PKG_DIR)/build/Makefile-$(STDCXX_CONTRIB_VERSION) $(STDCXX_PKG_DIR)/contrib.inc
58
59vpath %.cc $(STDCXX_SRC_DIR)
60vpath %.cc $(SRC_DIR)
61