3 LIBCXXRTDIR= ${.CURDIR}/../../contrib/libcxxrt
4 HDRDIR= ${.CURDIR}/../../contrib/libc++/include
5 SRCDIR= ${.CURDIR}/../../contrib/libc++/src
6 CXXINCLUDEDIR= ${INCLUDEDIR}/c++/v${SHLIB_MAJOR}
12 SHLIB_LDSCRIPT= libc++.ldscript
17 condition_variable.cpp\
41 CXXRT_SRCS+= libelftc_dem_gnu3.c\
51 .for _S in ${CXXRT_SRCS}
52 STATICOBJS+= cxxrt_${_S:R}.o
54 ln -sf ${LIBCXXRTDIR}/${_S} ${.TARGET}
58 CFLAGS+= -I${HDRDIR} -I${LIBCXXRTDIR} -nostdlib -DLIBCXXRT
59 .if empty(CXXFLAGS:M-std=*)
66 INCSGROUPS= STD EXP EXT
68 STD_HEADERS= __bit_reference\
164 RT_HEADERS= cxxabi.h\
169 .for hdr in ${STD_HEADERS}
170 STD+= ${HDRDIR}/${hdr}
172 .for hdr in ${RT_HEADERS}
173 STD+= ${LIBCXXRTDIR}/${hdr}
175 STDDIR= ${CXXINCLUDEDIR}
177 EXP_HEADERS= dynarray\
180 .for hdr in ${EXP_HEADERS}
181 EXP+= ${HDRDIR}/experimental/${hdr}
183 EXPDIR= ${CXXINCLUDEDIR}/experimental
189 .for hdr in ${EXT_HEADERS}
190 EXT+= ${HDRDIR}/ext/${hdr}
192 EXTDIR= ${CXXINCLUDEDIR}/ext
194 .include <bsd.lib.mk>