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=*)
65 INCSGROUPS= STD EXP EXT
67 STD_HEADERS= __bit_reference\
164 RT_HEADERS= cxxabi.h\
169 .for hdr in ${STD_HEADERS}
170 STD+= ${HDRDIR}/${hdr}
171 INCSLINKS+= ${CXXINCLUDEDIR}/${hdr} ${CXXINCLUDEDIR}/tr1/${hdr}
173 .for hdr in ${RT_HEADERS}
174 STD+= ${LIBCXXRTDIR}/${hdr}
176 STDDIR= ${CXXINCLUDEDIR}
178 EXP_HEADERS= __config\
185 .for hdr in ${EXP_HEADERS}
186 EXP+= ${HDRDIR}/experimental/${hdr}
188 EXPDIR= ${CXXINCLUDEDIR}/experimental
194 .for hdr in ${EXT_HEADERS}
195 EXT+= ${HDRDIR}/ext/${hdr}
197 EXTDIR= ${CXXINCLUDEDIR}/ext
199 .include <bsd.lib.mk>