1 # $NetBSD: Makefile,v 1.7 2014/08/20 15:19:39 joerg Exp $
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 \
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:
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}
33 CLEANFILES
+= rt_
${src}
38 CPPFLAGS
+= -nostdinc
++ -cxx-isystem
${LIBCXX_SRCDIR}/include -I
${LIBCXXRT_SRCDIR}/src
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