1 .include "../Makefile.inc"
2 .include "../libsupc++/Makefile.src"
3 .include "Makefile.headers"
4 SRCDIR= ${GCCDIR}/libstdc++-v3
6 .PATH: ${SRCDIR}/libsupc++
8 .PATH: ${SRCDIR}/src/c++11
9 .PATH: ${SRCDIR}/src/c++98
10 .PATH: ${SRCDIR}/libmath
11 .PATH: ${SRCDIR}/config/io
12 .PATH: ${SRCDIR}/config/locale/dragonfly
13 .PATH: ${SRCDIR}/config/locale/generic
15 .PATH: ${GCCDIR}/libgcc
17 # Vendor lists shared lib version as 6, not 9.
21 CFLAGS+= -DIN_GLIBCPP_V3 -DHAVE_CONFIG_H
24 CFLAGS+= -I${GCCDIR}/gcc
25 CFLAGS+= -I${GCCDIR}/libgcc
26 CFLAGS+= -I${GCCDIR}/libiberty
27 CFLAGS+= -I${GCCDIR}/libcpp/include
28 CXXFLAGS+= -fno-implicit-templates
29 CXXFLAGS+= -fdiagnostics-show-location=once
30 CXXFLAGS+= -ffunction-sections -fdata-sections
31 CXXFLAGS+= -Wno-deprecated
32 LDFLAGS+= -Wl,--version-script=${.CURDIR}/libstdc++-symbols.ver
34 THRLIB= ${.OBJDIR}/../../../../lib/libpthread/libpthread.so
36 DPADD+= ${THRLIB} ${LIBM}
38 # Slightly modified from libstdc++/src/c++98/Makefile.in
39 # sources_1998 is the equivalent of libc_98convenience.a
40 # sources_2011 is the equivalent of libc_11convenience.a
45 ctype_configure_char.cc \
52 parallel_sources_1998 =
68 host_sources_extra_1998 = \
71 ${inst_sources_1998} \
72 ${parallel_sources_1998}
94 math_stubs_long_double.cc \
101 ${host_sources_1998} \
102 ${host_sources_extra_1998}
104 inst_sources_2011 = \
111 condition_variable.cc \
127 ldbl_compat_sources =
128 parallel_compat_sources =
132 compatibility-debug_list.cc \
133 compatibility-debug_list-2.cc \
134 compatibility-list.cc \
135 compatibility-list-2.cc \
136 ${ldbl_compat_sources} \
137 ${parallel_compat_sources}
140 compatibility-c++0x.cc \
141 compatibility-atomic-c++0x.cc \
142 compatibility-thread-c++0x.cc
151 FLAGS_GROUPS= gnu0x gnu11
152 gnu0x_FLAGS= -std=gnu++0x
153 gnu11_FLAGS= -std=gnu++11
154 gnu0x_FLAGS_FILES= eh_ptr.cc \
158 gnu11_FLAGS_FILES= chrono.cc \
159 condition_variable.cc \
176 compatibility-c++0x.cc \
177 compatibility-atomic-c++0x.cc \
178 compatibility-thread-c++0x.cc
185 HD= ${INCLUDEDIR}/c++/${GCCPOINTVER}
187 # These sections are detailed in Makefile.headers
188 # parallel section is empty, skip it
189 # make buildincludes, make installincludes before make depend
190 glibcxx_srcdir= ${SRCDIR}
191 HSECT= std bits bits_sup backward ext ext_compat tr1 tr2 decimal \
192 c_base c_compatibility debug profile profile_impl host supc
193 PBSECT= 1 2 3 4 5 6 7
196 INCSGROUPS+= ${i}_headers
197 ${i}_headersDIR= ${HD}/${${i}_builddir}
202 . for k in ${pb_headers${i}}
203 . if ${PATHGROUP:M${k:H:T}} == ""
205 PATH_${k:H:T}=${k:H:T}
211 INCSGROUPS+= PBG_pb_ds
212 PBG_pb_dsDIR= ${HD}/${pb_builddir}
214 INCSGROUPS+= PBG_detail
215 PBG_detailDIR= ${HD}/${pb_builddir}/detail
217 .for k in ${PATHGROUP:Npb_ds:Ndetail}
218 INCSGROUPS+= PBG_${k}
219 PBG_${k}DIR= ${HD}/${pb_builddir}/detail/${PATH_${k}}
222 INCSGROUPS+= host_headers_extra
223 host_headers_extraDIR= ${HD}/bits
224 host_headers_extraNAME_basic_file_stdio.h= basic_file.h
225 host_headers_extraNAME_c_locale.h= c++locale.h
226 host_headers_extraNAME_c_io_stdio.h+= c++io.h
227 host_headers_extraNAME_new_allocator_base.h= c++allocator.h
229 CONF_HEADERS= locale/generic/c++locale_internal.h \
232 atomicity.cc: ${SRCDIR}/config/cpu/generic/atomicity_builtins/atomicity.h
233 cp ${.ALLSRC} ${.TARGET}
235 ctype_configure_char.cc: ${SRCDIR}/config/os/bsd/dragonfly/${.TARGET}
236 cp ${.ALLSRC} ${.TARGET}
238 basic_file.cc: ${SRCDIR}/config/io/basic_file_stdio.cc
239 cp ${.ALLSRC} ${.TARGET}
241 c++locale.cc: ${SRCDIR}/config/locale/dragonfly/c_locale.cc
242 cp ${.ALLSRC} ${.TARGET}
244 unwind.h: unwind-generic.h
245 cp ${.ALLSRC} ${.TARGET}
247 unwind-cxx.h: ${SRCDIR}/libsupc++/unwind-cxx.h
248 cp ${.ALLSRC} ${.TARGET}
253 .for F in ${CONF_HEADERS}
255 cp ${SRCDIR}/config/${F} bits/
258 # We can't add libiberty to the PATH because it will take the regex.o there
259 # before compiling regex.cc into an object file. Just recompile
261 cp-demangle.c: ${GCCDIR}/libiberty/${.TARGET}
262 cp ${.ALLSRC} ${.TARGET}
264 # debug.cc, tree.cc and vec.cc are also getting pre-empted by gcc/ versions
265 debug-cxx.cc: ${SRCDIR}/src/c++11/debug.cc
266 cp ${.ALLSRC} ${.TARGET}
268 tree-cxx.cc: ${SRCDIR}/src/c++98/tree.cc
269 cp ${.ALLSRC} ${.TARGET}
271 vec-cxx.cc: ${SRCDIR}/libsupc++/vec.cc
272 cp ${.ALLSRC} ${.TARGET}
275 CLEANFILES+= atomicity.cc basic_file.cc c++locale.cc \
276 ctype_configure_char.cc unwind.h unwind-cxx.h \
277 cp-demangle.c debug-cxx.cc tree-cxx.cc vec-cxx.cc \
278 c++config.h gthr.h gthr-default.h
280 .include <bsd.lib.mk>