ea0081eb793d8ac24bcdb89c2377c8d9c141dc2c
[dragonfly.git] / gnu / lib / gcc50 / libstdcxx / components / libconv_1998 / Makefile
1 RELUP=  /../..
2 .include "../../../Makefile.inc"
3 SRCDIR= ${GCCDIR}/libstdc++-v3
4 .include "Makefile.src"
5
6 LIB=                    cxx98convenience
7 INTERNALLIB=            yes
8 NOPROFILE=              yes
9 INSTALL_PIC_ARCHIVE=    yes
10
11 .PATH:  ${SRCDIR}
12 .PATH:  ${SRCDIR}/src
13 .PATH:  ${SRCDIR}/src/c++98
14 .PATH:  ${SRCDIR}/config/locale/dragonfly
15 .PATH:  ${SRCDIR}/config/locale/generic
16
17 CXXFLAGS+=      -fdiagnostics-show-location=once
18 CXXFLAGS+=      -ffunction-sections -fdata-sections
19 SHARED_CXXFLAGS=        -D_GLIBCXX_SHARED
20
21 SRCS=   ${libc__98convenience_la_SOURCES}
22 COW=    collate.x messages.x monetary.x numeric.x
23 GENCC=  atomicity.cc basic_file.cc c++locale.cc ${COW:.x=_members_cow.cc}
24
25 FLAGS_GROUPS=           gnu11 cow concept explicit
26 gnu11_FLAGS=            -std=gnu++11 -fno-implicit-templates
27 gnu11_FLAGS_FILES=      locale_init.cc localename.cc
28 cow_FLAGS=              -D_GLIBCXX_USE_CXX11_ABI=0 -fimplicit-templates
29 cow_FLAGS_FILES=        ${cow_string_host_sources}
30 concept_FLAGS=          -D_GLIBCXX_CONCEPT_CHECKS -fimplicit-templates
31 concept_FLAGS_FILES=    concept-inst.cc
32 parallel_FLAGS=         -D_GLIBCXX_PARALLEL -fno-implicit-templates
33 parallel_FLAGS_FILES=   parallel_settings.cc
34 explicit_FLAGS=         -fno-implicit-templates
35
36 REFERENCED_FILES=       ${gnu11_FLAGS_FILES} ${cow_FLAGS_FILES} \
37                         ${concept_FLAGS_FILES} ${parallel_FLAGS_FILES}
38
39 .for F in ${SRCS}
40 . if ! ${REFERENCED_FILES:M${F}}
41 explicit_FLAGS_FILES+=  ${F}
42 . endif
43 .endfor
44
45 .for F in ${COW}
46 ${F:.x=_members_cow.cc}: ${SRCDIR}/config/locale/generic/${F:.x=_members.cc}
47         cp ${.ALLSRC} ${.TARGET}
48 .endfor
49
50 atomicity.cc: ${SRCDIR}/config/cpu/generic/atomicity_builtins/atomicity.h
51         cp ${.ALLSRC} ${.TARGET}
52
53 basic_file.cc: ${SRCDIR}/config/io/basic_file_stdio.cc
54         cp ${.ALLSRC} ${.TARGET}
55
56 c++locale.cc: ${SRCDIR}/config/locale/dragonfly/c_locale.cc
57         cp ${.ALLSRC} ${.TARGET}
58
59 CLEANFILES+=    ${GENCC}
60
61 beforedepend:   ${GENCC}
62
63 .include <bsd.lib.mk>