2017-05-21 17:07:12 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
.include <src.opts.mk>
|
|
|
|
|
|
|
|
PACKAGE= clibs
|
|
|
|
SRCDIR= ${SRCTOP}/contrib/libc++
|
|
|
|
|
|
|
|
LIB= c++experimental
|
|
|
|
NO_PIC=
|
|
|
|
MK_PROFILE= no
|
|
|
|
|
|
|
|
.PATH: ${SRCDIR}/src/experimental
|
|
|
|
|
|
|
|
SRCS+= filesystem/directory_iterator.cpp
|
|
|
|
SRCS+= filesystem/operations.cpp
|
|
|
|
SRCS+= filesystem/path.cpp
|
|
|
|
SRCS+= memory_resource.cpp
|
|
|
|
|
|
|
|
WARNS?= 0
|
2017-05-21 21:33:15 +00:00
|
|
|
CXXFLAGS+= ${PICFLAG}
|
2017-05-21 17:07:12 +00:00
|
|
|
CXXFLAGS+= -isystem ${SRCDIR}/include
|
|
|
|
CXXFLAGS+= -nostdinc++
|
|
|
|
CXXFLAGS+= -nostdlib
|
|
|
|
CXXFLAGS+= -D_LIBCPP_BUILDING_LIBRARY
|
|
|
|
CXXFLAGS+= -DLIBCXXRT
|
|
|
|
.if empty(CXXFLAGS:M-std=*)
|
|
|
|
CXXFLAGS+= -std=c++14
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.lib.mk>
|