1 # from: @(#)Makefile.inc 5.1 (Berkeley) 2/18/91
2 # $NetBSD: Makefile.inc,v 1.64 2013/08/18 20:03:48 joerg Exp $
5 .PATH: ${ARCHDIR}/locale ${.CURDIR}/locale
7 SRCS+= setlocale.c __mb_cur_max.c \
8 duplocale.c global_locale.c fix_grouping.c \
9 freelocale.c localeconv.c newlocale.c nl_langinfo.c \
10 generic_lc_all.c dummy_lc_collate.c \
11 wcstol.c wcstoll.c wcstoimax.c wcstoul.c wcstoull.c wcstoumax.c \
12 wcstod.c wcstof.c wcstold.c wcscoll.c wcsxfrm.c wcsftime.c
14 # citrus multibyte locale support
15 # we have quirk for libc.a - see the last part of lib/libc/Makefile
16 CPPFLAGS+= -DWITH_RUNE -I${.CURDIR}
17 SRCS+= _wctrans.c _wctype.c rune.c runetable.c \
18 multibyte_c90.c multibyte_amd1.c iswctype_mb.c
19 CPPFLAGS.rune.c+= -I${LIBCDIR}/citrus
20 CPPFLAGS.runetable.c+= -I${LIBCDIR}/citrus
21 CPPFLAGS.multibyte_c90.c+= -I${LIBCDIR}/citrus
22 CPPFLAGS.multibyte_amd1.c+= -I${LIBCDIR}/citrus
24 MAN+= setlocale.3 nl_langinfo.3
26 MAN+= mbtowc.3 mbstowcs.3 wctomb.3 wcstombs.3 mblen.3 \
28 MAN+= btowc.3 mbrtowc.3 mbsrtowcs.3 \
29 wctob.3 wcrtomb.3 wcsrtombs.3 \
32 MAN+= iswalnum.3 wctype.3 iswctype.3 \
33 towlower.3 wctrans.3 towctrans.3 \
36 MAN+= wcstol.3 wcstod.3 \
40 MLINKS+=setlocale.3 localeconv.3
42 MLINKS+=iswalnum.3 iswalpha.3 iswalnum.3 iswblank.3 \
43 iswalnum.3 iswcntrl.3 iswalnum.3 iswdigit.3 \
44 iswalnum.3 iswgraph.3 iswalnum.3 iswlower.3 \
45 iswalnum.3 iswprint.3 iswalnum.3 iswpunct.3 \
46 iswalnum.3 iswspace.3 iswalnum.3 iswupper.3 \
47 iswalnum.3 iswxdigit.3
49 MLINKS+=towlower.3 towupper.3
51 MLINKS+=wcstod.3 wcstof.3 wcstod.3 wcstold.3
52 MLINKS+=wcstol.3 wcstoll.3 wcstol.3 wcstoimax.3 \
53 wcstol.3 wcstoul.3 wcstol.3 wcstoull.3 wcstol.3 wcstoumax.3
55 COPTS.wcsftime.c = -Wno-format-nonliteral