Remove building with NOCRYPTO option
[minix.git] / external / bsd / libc++ / lib / Makefile
blobe8bb6b3c37364910efd1d1acd6f91628e687a6c8
1 # $NetBSD: Makefile,v 1.7 2014/08/20 15:19:39 joerg Exp $
3 LIB= c++
4 WARNS= 4
5 NOLINT= # defined
7 .include <bsd.init.mk>
9 .PATH: ${LIBCXX_SRCDIR}/src
11 #__MINIX: Unsupported for now: shared_mutex.cpp
12 SRCS= algorithm.cpp bind.cpp chrono.cpp condition_variable.cpp debug.cpp \
13 exception.cpp future.cpp hash.cpp ios.cpp iostream.cpp locale.cpp \
14 memory.cpp mutex.cpp new.cpp optional.cpp random.cpp regex.cpp \
15 stdexcept.cpp \
16 string.cpp strstream.cpp system_error.cpp thread.cpp \
17 utility.cpp valarray.cpp
18 # typeinfo.cc: prefer libcxxrt's version
20 #__MINIX: Unsupported for now:
21 LIBCXXRT_SRCS+= \
22 auxhelper.cc dynamic_cast.cc exception.cc guard.cc \
23 stdexcept.cc terminate.cc typeinfo.cc libelftc_dem_gnu3.c
24 # cxa_atexit.c: Solaris-only
25 # memory.cc: already provided by libc++'s new.cpp
27 .for src in ${LIBCXXRT_SRCS}
28 rt_${src}: ${LIBCXXRT_SRCDIR}/src/${src}
29 cp ${LIBCXXRT_SRCDIR}/src/${src} rt_${src}
31 SRCS+= rt_${src}
32 DPSRCS+= rt_${src}
33 CLEANFILES+= rt_${src}
34 .endfor
36 .include <bsd.own.mk>
38 CPPFLAGS+= -nostdinc++ -cxx-isystem ${LIBCXX_SRCDIR}/include -I${LIBCXXRT_SRCDIR}/src
39 CPPFLAGS+= -DLIBCXXRT
40 CXXFLAGS+= -std=c++11
42 CWARNFLAGS.gcc+= -Wno-error
44 CWARNFLAGS.clang+= -Wno-error=unused-variable -Wno-error=missing-noreturn
45 CWARNFLAGS.clang+= -Wno-error=missing-prototypes -Wno-error=sometimes-uninitialized
46 CWARNFLAGS.clang+= -Wno-error=missing-field-initializers -Wno-error=switch
47 CWARNFLAGS.clang+= -Wno-error=implicit-exception-spec-mismatch
49 LDADD+= -Wl,-z,defs
51 .include <bsd.lib.mk>