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