1993-08-01 09:37:30 +04:00
|
|
|
# from: @(#)Makefile.inc 5.1 (Berkeley) 2/18/91
|
2006-04-15 16:17:22 +04:00
|
|
|
# $NetBSD: Makefile.inc,v 1.48 2006/04/15 12:17:23 tnozaki Exp $
|
1993-03-21 12:45:37 +03:00
|
|
|
|
|
|
|
# locale sources
|
1999-02-24 18:05:20 +03:00
|
|
|
.PATH: ${ARCHDIR}/locale ${.CURDIR}/locale
|
1993-03-21 12:45:37 +03:00
|
|
|
|
1994-09-29 07:57:04 +03:00
|
|
|
SRCS+= _def_messages.c _def_monetary.c _def_numeric.c _def_time.c \
|
2003-03-05 23:18:14 +03:00
|
|
|
ctypeio.c localeconv.c nl_langinfo.c setlocale.c setlocale1.c \
|
2006-04-15 16:17:22 +04:00
|
|
|
setlocale32.c __mb_cur_max.c wcscoll.c wcsftime.c \
|
2003-03-11 12:21:22 +03:00
|
|
|
wcstol.c wcstoll.c wcstoimax.c wcstoul.c wcstoull.c wcstoumax.c \
|
2003-03-05 23:18:14 +03:00
|
|
|
wcsxfrm.c aliasname.c
|
1997-07-12 21:52:31 +04:00
|
|
|
MAN+= nl_langinfo.3 setlocale.3
|
1997-07-15 13:22:31 +04:00
|
|
|
|
2006-04-15 16:17:22 +04:00
|
|
|
SRCS+= wcstod.c wcstof.c wcstold.c
|
|
|
|
MAN+= wcstod.3
|
|
|
|
|
2000-12-22 05:03:32 +03:00
|
|
|
MLINKS+=setlocale.3 localeconv.3
|
|
|
|
|
refine i18n stuffs.
- add libc/citrus directory.
this directory contains the common stuffs not only for locale
but also other facilities relating to i18n (e.g. iconv).
- To keep the binary compatibility for the ctype modules easily,
the interface between libc and the modules is simplified.
- For the future integrated extension, module pool is renamed
from "/usr/lib/runemodule" to "/usr/lib/i18n".
In the future, this directory will contain the modules for "iconv",
"collation", etc.
- some cosmetic changes.
- Bug fix for runetype.h; __attribute__((__packed__)) is placed at
the wrong position and it is invalid unintentionally.
But, the all members of the structures seem well-aligned. Thus,
this bug causes no problem, hopefully.
HEADS UP:
- /usr/lib/rumemodule is obsoleted. If you use the multibyte locales,
you need to install /usr/lib/i18n/* from sys/lib/i18n_module .
- The binary compatibility of /usr/share/locale/*/LC_CTYPE is probably kept.
Perhaps, the bug fix about __packed__ mentioned above breaks the
compatibility... Be careful especially on 64bit platforms.
2002-03-18 01:14:05 +03:00
|
|
|
.if ${CITRUS} == "no"
|
|
|
|
RUNE= no
|
|
|
|
.endif
|
|
|
|
|
|
|
|
RUNE?= yes
|
2000-12-26 02:30:58 +03:00
|
|
|
|
|
|
|
.if ${RUNE} == "no"
|
|
|
|
# singlebyte locale - dummy
|
|
|
|
SRCS+= multibyte_sb.c iswctype_sb.c
|
2001-01-25 04:25:05 +03:00
|
|
|
CPPFLAGS+=-UWITH_RUNE
|
2000-12-26 02:30:58 +03:00
|
|
|
.else
|
2000-12-21 14:29:47 +03:00
|
|
|
# citrus multibyte locale support
|
2001-01-25 12:21:57 +03:00
|
|
|
# we have quirk for libc.a - see the last part of lib/libc/Makefile
|
refine i18n stuffs.
- add libc/citrus directory.
this directory contains the common stuffs not only for locale
but also other facilities relating to i18n (e.g. iconv).
- To keep the binary compatibility for the ctype modules easily,
the interface between libc and the modules is simplified.
- For the future integrated extension, module pool is renamed
from "/usr/lib/runemodule" to "/usr/lib/i18n".
In the future, this directory will contain the modules for "iconv",
"collation", etc.
- some cosmetic changes.
- Bug fix for runetype.h; __attribute__((__packed__)) is placed at
the wrong position and it is invalid unintentionally.
But, the all members of the structures seem well-aligned. Thus,
this bug causes no problem, hopefully.
HEADS UP:
- /usr/lib/rumemodule is obsoleted. If you use the multibyte locales,
you need to install /usr/lib/i18n/* from sys/lib/i18n_module .
- The binary compatibility of /usr/share/locale/*/LC_CTYPE is probably kept.
Perhaps, the bug fix about __packed__ mentioned above breaks the
compatibility... Be careful especially on 64bit platforms.
2002-03-18 01:14:05 +03:00
|
|
|
CPPFLAGS+=-DWITH_RUNE -I${.CURDIR}
|
2003-03-03 01:18:11 +03:00
|
|
|
SRCS+= ___runetype_mb.c _wctrans.c iswctype.c multibyte_c90.c \
|
|
|
|
multibyte_amd1.c rune.c runeglue.c runetable.c setrunelocale.c
|
2000-12-26 02:30:58 +03:00
|
|
|
.endif
|
2003-03-04 15:11:49 +03:00
|
|
|
MAN+= btowc.3 iswalnum.3 iswctype.3 towlower.3 towctrans.3 mblen.3 mbrlen.3 \
|
|
|
|
mbrtowc.3 mbsinit.3 mbsrtowcs.3 mbstowcs.3 mbtowc.3 wcrtomb.3 \
|
2005-03-30 14:15:12 +04:00
|
|
|
wcsftime.3 wcsrtombs.3 wcstombs.3 wctob.3 wctomb.3 wctrans.3 wctype.3
|
2002-03-18 09:00:26 +03:00
|
|
|
|
2000-12-21 14:29:47 +03:00
|
|
|
|
2000-12-22 05:03:32 +03:00
|
|
|
MLINKS+=iswalnum.3 iswalpha.3 iswalnum.3 iswblank.3 \
|
|
|
|
iswalnum.3 iswcntrl.3 iswalnum.3 iswdigit.3 \
|
|
|
|
iswalnum.3 iswgraph.3 iswalnum.3 iswlower.3 \
|
|
|
|
iswalnum.3 iswprint.3 iswalnum.3 iswpunct.3 \
|
|
|
|
iswalnum.3 iswspace.3 iswalnum.3 iswupper.3 \
|
|
|
|
iswalnum.3 iswxdigit.3
|
2000-12-22 05:18:58 +03:00
|
|
|
MLINKS+=towlower.3 towupper.3
|
2006-04-15 16:17:22 +04:00
|
|
|
MLINKS+=wcstod.3 wcstof.3 wcstod.3 wcstold.3
|