1 # $NetBSD: Makefile,v 1.4 2013/11/12 16:39:39 joerg Exp $
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
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}
31 CLEANFILES
+= rt_
${src}
36 CPPFLAGS
+= -nostdinc
++ -cxx-isystem
${LIBCXX_SRCDIR}/include -I
${LIBCXXRT_SRCDIR}/src
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