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}/include
28 CFLAGS+= -I${GCCDIR}/libcpp/include
29 CFLAGS+= -I${SRCDIR}/include
30 CFLAGS+= -I${SRCDIR}/include/std
31 CFLAGS+= -I${SRCDIR}/include/c_std
32 CFLAGS+= -I${SRCDIR}/include/c_global
33 CFLAGS+= -I${SRCDIR}/include/backward
34 CXXFLAGS+= -fno-implicit-templates
35 CXXFLAGS+= -fdiagnostics-show-location=once
36 CXXFLAGS+= -ffunction-sections -fdata-sections
37 CXXFLAGS+= -Wno-deprecated
38 LDFLAGS+= -Wl,--version-script=${.CURDIR}/libstdc++-symbols.ver
40 THRLIB= ${.OBJDIR}/../../../../lib/libpthread/libpthread.so
42 DPADD+= ${THRLIB} ${LIBM}
44 # Slightly modified from libstdc++/src/c++98/Makefile.in
45 # sources_1998 is the equivalent of libc_98convenience.a
46 # sources_2011 is the equivalent of libc_11convenience.a
51 ctype_configure_char.cc \
58 parallel_sources_1998 =
74 host_sources_extra_1998 = \
77 ${inst_sources_1998} \
78 ${parallel_sources_1998}
100 math_stubs_long_double.cc \
107 ${host_sources_1998} \
108 ${host_sources_extra_1998}
110 inst_sources_2011 = \
117 condition_variable.cc \
133 ldbl_compat_sources =
134 parallel_compat_sources =
138 compatibility-debug_list.cc \
139 compatibility-debug_list-2.cc \
140 compatibility-list.cc \
141 compatibility-list-2.cc \
142 ${ldbl_compat_sources} \
143 ${parallel_compat_sources}
146 compatibility-c++0x.cc \
147 compatibility-atomic-c++0x.cc \
148 compatibility-thread-c++0x.cc
157 FLAGS_GROUPS= gnu0x gnu11
158 gnu0x_FLAGS= -std=gnu++0x
159 gnu11_FLAGS= -std=gnu++11
160 gnu0x_FLAGS_FILES= eh_ptr.cc \
164 gnu11_FLAGS_FILES= chrono.cc \
165 condition_variable.cc \
182 compatibility-c++0x.cc \
183 compatibility-atomic-c++0x.cc \
184 compatibility-thread-c++0x.cc
190 bits/gthr-default.h \
193 HD= ${INCLUDEDIR}/c++/${GCCPOINTVER}
195 # These sections are detailed in Makefile.headers
196 # parallel section is empty, skip it
197 # make buildincludes, make installincludes before make depend
198 glibcxx_srcdir= ${SRCDIR}
199 HSECT= std bits bits_sup backward ext ext_compat tr1 tr2 decimal \
200 c_base c_compatibility debug profile profile_impl host supc
201 PBSECT= 1 2 3 4 5 6 7
204 INCSGROUPS+= ${i}_headers
205 ${i}_headersDIR= ${HD}/${${i}_builddir}
210 . for k in ${pb_headers${i}}
211 . if ${PATHGROUP:M${k:H:T}} == ""
213 PATH_${k:H:T}=${k:H:T}
219 INCSGROUPS+= PBG_pb_ds
220 PBG_pb_dsDIR= ${HD}/${pb_builddir}
222 INCSGROUPS+= PBG_detail
223 PBG_detailDIR= ${HD}/${pb_builddir}/detail
225 .for k in ${PATHGROUP:Npb_ds:Ndetail}
226 INCSGROUPS+= PBG_${k}
227 PBG_${k}DIR= ${HD}/${pb_builddir}/detail/${PATH_${k}}
230 INCSGROUPS+= host_headers_extra
231 host_headers_extraDIR= ${HD}/bits
232 host_headers_extraNAME_basic_file_stdio.h= basic_file.h
233 host_headers_extraNAME_c_locale.h= c++locale.h
234 host_headers_extraNAME_c_io_stdio.h+= c++io.h
235 host_headers_extraNAME_new_allocator_base.h= c++allocator.h
237 CONF_HEADERS= locale/generic/c++locale_internal.h \
240 atomicity.cc: ${SRCDIR}/config/cpu/generic/atomicity_builtins/atomicity.h
241 cp ${.ALLSRC} ${.TARGET}
243 ctype_configure_char.cc: ${SRCDIR}/config/os/bsd/dragonfly/${.TARGET}
244 cp ${.ALLSRC} ${.TARGET}
246 basic_file.cc: ${SRCDIR}/config/io/basic_file_stdio.cc
247 cp ${.ALLSRC} ${.TARGET}
249 c++locale.cc: ${SRCDIR}/config/locale/dragonfly/c_locale.cc
250 cp ${.ALLSRC} ${.TARGET}
252 unwind.h: unwind-generic.h
253 cp ${.ALLSRC} ${.TARGET}
258 .for F in ${CONF_HEADERS}
260 cp ${SRCDIR}/config/${F} bits/
263 # We can't add libiberty to the PATH because it will take the regex.o there
264 # before compiling regex.cc into an object file. Just recompile
266 cp-demangle.c: ${GCCDIR}/libiberty/${.TARGET}
267 cp ${.ALLSRC} ${.TARGET}
269 # debug.cc and tree.cc are also getting pre-empted by gcc/ versions
270 debug-cxx.cc: ${SRCDIR}/src/c++11/debug.cc
271 cp ${.ALLSRC} ${.TARGET}
273 tree-cxx.cc: ${SRCDIR}/src/c++98/tree.cc
274 cp ${.ALLSRC} ${.TARGET}
277 CLEANFILES+= atomicity.cc basic_file.cc c++locale.cc \
278 ctype_configure_char.cc unwind.h \
279 cp-demangle.c debug-cxx.cc tree-cxx.cc
281 depend all: bits/c++config.h
283 .include <bsd.lib.mk>