gcc50: Disconnect from buildworld.
[dragonfly.git] / gnu / lib / gcc50 / libstdcxx / components / libconv_2011 / Makefile
1 RELUP=  /../..
2 .include "../../../Makefile.inc"
3 SRCDIR= ${GCCDIR}/libstdc++-v3
4 .include "Makefile.src"
5
6 LIB=                    cxx11convenience
7 INTERNALLIB=            yes
8 INTERNALLIBPROF=        yes
9 INSTALL_PIC_ARCHIVE=    yes
10
11 .PATH:  ${SRCDIR}
12 .PATH:  ${SRCDIR}/src
13 .PATH:  ${SRCDIR}/src/c++11
14 .PATH:  ${SRCDIR}/config/os/bsd/dragonfly
15 .PATH:  ${SRCDIR}/config/locale/dragonfly
16 .PATH:  ${SRCDIR}/config/locale/generic
17
18 # for now do not let the use of -flto (-Wodr...)
19 .if ${CFLAGS:M-flto}
20 CFLAGS+=        -fno-lto
21 LDFLAGS+=       -flto
22 .endif
23
24 CFLAGS+=        -I${.OBJDIR}
25 CXXFLAGS+=      -std=gnu++11 -fdiagnostics-show-location=once
26 CXXFLAGS+=      -ffunction-sections -fdata-sections
27 SHARED_CXXFLAGS=        -D_GLIBCXX_SHARED
28
29 SRCS=   ${libc__11convenience_la_SOURCES}
30 INTHD=  ${SRCDIR}/config/locale/generic/c++locale_internal.h
31 GENHD=  cxxabi_forced.h ${INTHD:T}
32
33 FLAG_GROUPS=            implicit explicit
34 implicit_FLAGS=         -fimplicit-templates
35 implicit_FLAGS_FILES=   hashtable_c++0x.cc
36 explicit_FLAGS=         -fno-implicit-templates
37 explicit_FLAGS_FILES=   ${SRCS:Nhashtable_c++0x.cc}
38
39 cxxabi_forced.h: ${SRCDIR}/libsupc++/cxxabi_forced.h
40         cp ${.ALLSRC} ${.TARGET}
41
42 ${INTHD:T}: copybits ${INTHD}
43         cp ${INTHD} bits/${.TARGET}
44
45 copybits:
46         mkdir -p bits
47
48 CLEANDIRS=      bits
49 CLEANFILES=     ${GENHD}
50
51 beforedepend:   ${GENHD}
52
53 .include <bsd.lib.mk>