Home | History | Annotate | Line # | Download | only in locale
Makefile.inc revision 1.52.4.1
      1 #	from: @(#)Makefile.inc	5.1 (Berkeley) 2/18/91
      2 #	$NetBSD: Makefile.inc,v 1.52.4.1 2009/01/15 03:24:07 snj Exp $
      3 
      4 # locale sources
      5 .PATH: ${ARCHDIR}/locale ${.CURDIR}/locale
      6 
      7 SRCS+=	_def_messages.c _def_monetary.c _def_numeric.c _def_time.c \
      8 	setlocale.c setlocale1.c setlocale32.c __mb_cur_max.c \
      9 	current_locale.c global_locale.c fix_grouping.c \
     10 	localeconv.c nl_langinfo.c \
     11 	generic_lc_all.c dummy_lc_collate.c \
     12 	wcstol.c wcstoll.c wcstoimax.c wcstoul.c wcstoull.c wcstoumax.c \
     13 	wcstod.c wcstof.c wcstold.c wcscoll.c wcsxfrm.c wcsftime.c
     14 
     15 .if ${CITRUS} == "no"
     16 RUNE=		no
     17 .endif
     18 
     19 RUNE?=		yes
     20 
     21 .if ${RUNE} == "no"
     22 # singlebyte locale - dummy
     23 CPPFLAGS+=	-UWITH_RUNE
     24 SRCS+=	aliasname.c bsdctype.c localeio.c \
     25 	multibyte_sb.c iswctype_sb.c \
     26 	localeio_lc_ctype.c localeio_lc_monetary.c \
     27 	localeio_lc_numeric.c localeio_lc_time.c
     28 .else
     29 # citrus multibyte locale support
     30 # we have quirk for libc.a - see the last part of lib/libc/Makefile
     31 CPPFLAGS+=	-DWITH_RUNE -I${.CURDIR}
     32 SRCS+=	_wctrans.c _wctype.c rune.c runeglue.c runetable.c \
     33 	multibyte_c90.c multibyte_amd1.c iswctype_mb.c
     34 CPPFLAGS.rune.c+=		-I${LIBCDIR}/citrus
     35 CPPFLAGS.runeglue.c+=		-I${LIBCDIR}/citrus
     36 CPPFLAGS.runetable.c+=		-I${LIBCDIR}/citrus
     37 CPPFLAGS.multibyte_c90.c+=	-I${LIBCDIR}/citrus
     38 CPPFLAGS.multibyte_amd1.c+=	-I${LIBCDIR}/citrus
     39 .endif
     40 
     41 MAN+=	setlocale.3 nl_langinfo.3
     42 
     43 MAN+=	mbtowc.3 mbstowcs.3 wctomb.3 wcstombs.3 mblen.3 \
     44 
     45 MAN+=	btowc.3 mbrtowc.3 mbsrtowcs.3 \
     46 	wctob.3 wcrtomb.3 wcsrtombs.3 \
     47 	mbrlen.3 mbsinit.3
     48 
     49 MAN+=	iswalnum.3 wctype.3 iswctype.3 \
     50 	towlower.3 wctrans.3 towctrans.3 \
     51 	wcwidth.3
     52 
     53 MAN+=	wcstol.3 wcstod.3 \
     54 	wcscoll.3 wcsxfrm.3 \
     55 	wcsftime.3
     56 
     57 MLINKS+=setlocale.3 localeconv.3
     58 
     59 MLINKS+=iswalnum.3 iswalpha.3 iswalnum.3 iswblank.3 \
     60 	iswalnum.3 iswcntrl.3 iswalnum.3 iswdigit.3 \
     61 	iswalnum.3 iswgraph.3 iswalnum.3 iswlower.3 \
     62 	iswalnum.3 iswprint.3 iswalnum.3 iswpunct.3 \
     63 	iswalnum.3 iswspace.3 iswalnum.3 iswupper.3 \
     64 	iswalnum.3 iswxdigit.3
     65 
     66 MLINKS+=towlower.3 towupper.3
     67 
     68 MLINKS+=wcstod.3 wcstof.3 wcstod.3 wcstold.3
     69 MLINKS+=wcstol.3 wcstoll.3 wcstol.3 wcstoimax.3 \
     70 	wcstol.3 wcstoul.3 wcstol.3 wcstoull.3 wcstol.3 wcstoumax.3
     71