]> git.saurik.com Git - apple/libc.git/blame - locale/Makefile.inc
Libc-391.4.3.tar.gz
[apple/libc.git] / locale / Makefile.inc
CommitLineData
5b2abdfb 1# from @(#)Makefile.inc 8.1 (Berkeley) 6/4/93
9385eb3d 2# $FreeBSD: src/lib/libc/locale/Makefile.inc,v 1.43 2003/03/13 06:29:53 tjr Exp $
5b2abdfb
A
3
4# locale sources
5.PATH: ${.CURDIR}/${MACHINE_ARCH}/locale ${.CURDIR}/locale
6
3d9156a7
A
7# depreciated interfaces
8MISRCS += frune.c mbrune.c runedepreciated.c setinvalidrune.c
9
10# extended locale
11MISRCS += isctype_l.c iswctype_l.c xlocale.c
12
9385eb3d 13.include "Makefile.fbsd_begin"
3d9156a7
A
14FBSDMISRCS= big5.c btowc.c collate.c collcmp.c euc.c fix_grouping.c \
15 gb18030.c gb2312.c gbk.c isctype.c iswctype.c \
16 ldpart.c lmessages.c lmonetary.c lnumeric.c localeconv.c \
17 mblen.c mbrlen.c mbrtowc.c mbsinit.c mbsnrtowcs.c mbsrtowcs.c \
18 mbstowcs.c mbtowc.c mskanji.c \
19 nextwctype.c nl_langinfo.c nomacros.c none.c \
20 rune.c runetype.c setlocale.c setrunelocale.c \
21 table.c tolower.c toupper.c utf8.c \
22 wcrtomb.c wcsftime.c wcsnrtombs.c wcsrtombs.c wcstod.c \
23 wcstof.c wcstoimax.c wcstol.c wcstold.c wcstoll.c wcstombs.c \
24 wcstoul.c wcstoull.c wcstoumax.c wctob.c wctomb.c wctrans.c \
25 wctype.c wcwidth.c
26FBSDHDRS= collate.h ldpart.h lmessages.h lmonetary.h lnumeric.h \
27 mblocal.h setlocale.h
9385eb3d
A
28.include "Makefile.fbsd_end"
29
3d9156a7
A
30# special case: utf2-fbsd.c is derived from utf8.c with utf2.c.patch
31AUTOPATCHSRCS+= ${SYMROOT}/utf2-fbsd.c
32MISRCS+= utf2.c
33${SYMROOT}/utf2-fbsd.c: FreeBSD/utf8.c
34 cp ${.ALLSRC} ${.TARGET}
35 patch ${.TARGET} ${.ALLSRC:S/utf8/utf2/}.patch;
36
37# also build a 64-bit long double version (ppc only)
38LDBLSRCS += wcstold.c
39
9385eb3d
A
40# Begin hack for 3333969
41
59e0d9fe
A
42MISRCS += lconv.c
43CFLAGS-lconv.c += -D__APPLE_PR_3333969_HACK__
9385eb3d
A
44
45# End hack for 3333969
5b2abdfb 46
3d9156a7
A
47# for ppc64, we need to create rune32.h
48.if (${MACHINE_ARCH} == ppc64)
49# the following is good enough for ppc, ppc64 and i386
50ARCH32 != arch | sed 's/64//'
51rune.So rune.do rune.po rune.o: ${SYMROOT}/rune32.h
52${SYMROOT}/rune32.h: ${SYMROOT}/rune-fbsd.c
53 ${CC} -arch ${ARCH32} -DRUNEOFF32 -o ${SYMROOT}/rune32 ${.ALLSRC}
54 ${SYMROOT}/rune32 > ${.TARGET}
55.endif
56
5b2abdfb 57.if ${LIB} == "c"
3d9156a7
A
58MAN3+= ctype_l.3 isalnum_l.3 iswalnum_l.3 wcstod_l.3 wcstol_l.3
59MAN3+= duplocale.3 freelocale.3 newlocale.3 \
60 querylocale.3 uselocale.3 xlocale.3
61# depreciated man pages
62MAN3+= mbrune.3 rune.3
63MAN5+= utf2.5
64
9385eb3d 65.include "Makefile.fbsd_begin"
3d9156a7
A
66FBSDMAN3= btowc.3 ctype.3 digittoint.3 \
67 isalnum.3 isalpha.3 isascii.3 isblank.3 iscntrl.3 isdigit.3 \
68 isgraph.3 isideogram.3 islower.3 isphonogram.3 isprint.3 \
69 ispunct.3 isrune.3 isspace.3 isspecial.3 isupper.3 \
70 iswalnum.3 isxdigit.3 \
71 localeconv.3 \
72 mblen.3 mbrlen.3 mbrtowc.3 mbsinit.3 mbsrtowcs.3 mbstowcs.3 \
73 mbtowc.3 multibyte.3 \
74 nextwctype.3 nl_langinfo.3 \
75 setlocale.3 toascii.3 tolower.3 toupper.3 towlower.3 towupper.3 \
76 wcrtomb.3 wcsftime.3 wcsrtombs.3 wcstod.3 wcstol.3 wcstombs.3 \
77 wctomb.3 wctrans.3 wctype.3 wcwidth.3
78FBSDMAN5= big5.5 euc.5 gb18030.5 gb2312.5 gbk.5 mskanji.5 utf8.5
9385eb3d 79.include "Makefile.fbsd_end"
5b2abdfb 80
9385eb3d 81MLINKS+=btowc.3 wctob.3
3d9156a7
A
82MLINKS+=btowc.3 btowc_l.3 btowc.3 wctob_l.3
83MLINKS+=digittoint.3 digittoint_l.3
9385eb3d 84MLINKS+=isdigit.3 isnumber.3
3d9156a7
A
85MLINKS+=isalnum_l.3 isalpha_l.3 isalnum_l.3 isblank_l.3 \
86 isalnum_l.3 iscntrl_l.3 isalnum_l.3 isdigit_l.3 isalnum_l.3 isgraph_l.3 \
87 isalnum_l.3 ishexnumber_l.3 \
88 isalnum_l.3 isideogram_l.3 isalnum_l.3 islower_l.3 isalnum_l.3 isnumber_l.3 \
89 isalnum_l.3 isphonogram_l.3 isalnum_l.3 isprint_l.3 isalnum_l.3 ispunct_l.3 \
90 isalnum_l.3 isrune_l.3 isalnum_l.3 isspace_l.3 isalnum_l.3 isspecial_l.3 \
91 isalnum_l.3 isupper_l.3 isalnum_l.3 isxdigit_l.3
9385eb3d
A
92MLINKS+=iswalnum.3 iswalpha.3 iswalnum.3 iswascii.3 iswalnum.3 iswblank.3 \
93 iswalnum.3 iswcntrl.3 iswalnum.3 iswdigit.3 iswalnum.3 iswgraph.3 \
3d9156a7 94 iswalnum.3 iswhexnumber.3 \
9385eb3d
A
95 iswalnum.3 iswideogram.3 iswalnum.3 iswlower.3 iswalnum.3 iswnumber.3 \
96 iswalnum.3 iswphonogram.3 iswalnum.3 iswprint.3 iswalnum.3 iswpunct.3 \
97 iswalnum.3 iswrune.3 iswalnum.3 iswspace.3 iswalnum.3 iswspecial.3 \
98 iswalnum.3 iswupper.3 iswalnum.3 iswxdigit.3
3d9156a7
A
99MLINKS+=iswalnum_l.3 iswalpha_l.3 iswalnum_l.3 iswblank_l.3 \
100 iswalnum_l.3 iswcntrl_l.3 iswalnum_l.3 iswdigit_l.3 iswalnum_l.3 iswgraph_l.3 \
101 iswalnum_l.3 iswhexnumber_l.3 \
102 iswalnum_l.3 iswideogram_l.3 iswalnum_l.3 iswlower_l.3 iswalnum_l.3 iswnumber_l.3 \
103 iswalnum_l.3 iswphonogram_l.3 iswalnum_l.3 iswprint_l.3 iswalnum_l.3 iswpunct_l.3 \
104 iswalnum_l.3 iswrune_l.3 iswalnum_l.3 iswspace_l.3 iswalnum_l.3 iswspecial_l.3 \
105 iswalnum_l.3 iswupper_l.3 iswalnum_l.3 iswxdigit_l.3
9385eb3d 106MLINKS+=isxdigit.3 ishexnumber.3
3d9156a7
A
107MLINKS+=localeconv.3 localeconv_l.3
108MLINKS+=mblen.3 mblen_l.3
109MLINKS+=mbrlen.3 mbrlen_l.3
110MLINKS+=mbrtowc.3 mbrtowc_l.3
5b2abdfb 111MLINKS+=mbrune.3 mbmb.3 mbrune.3 mbrrune.3
3d9156a7
A
112MLINKS+=mbsinit.3 mbsinit_l.3
113MLINKS+=mbsrtowcs.3 mbsnrtowcs.3
114MLINKS+=mbsrtowcs.3 mbsrtowcs_l.3 mbsrtowcs.3 mbsnrtowcs_l.3
115MLINKS+=mbstowcs.3 mbstowcs_l.3
116MLINKS+=mbtowc.3 mbtowc_l.3
117MLINKS+=nextwctype.3 nextwctype_l.3
118MLINKS+=nl_langinfo.3 nl_langinfo_l.3
5b2abdfb
A
119MLINKS+=rune.3 fgetrune.3 rune.3 fputrune.3 rune.3 fungetrune.3 \
120 rune.3 setinvalidrune.3 rune.3 setrunelocale.3 rune.3 sgetrune.3 \
121 rune.3 sputrune.3
3d9156a7
A
122MLINKS+=tolower.3 tolower_l.3
123MLINKS+=toupper.3 toupper_l.3
124MLINKS+=towlower.3 towlower_l.3
125MLINKS+=towupper.3 towupper_l.3
126MLINKS+=wcrtomb.3 wcrtomb_l.3
127MLINKS+=wcsftime.3 wcsftime_l.3
128MLINKS+=wcsrtombs.3 wcsnrtombs.3
129MLINKS+=wcsrtombs.3 wcsrtombs_l.3 wcsrtombs.3 wcsnrtombs_l.3
9385eb3d 130MLINKS+=wcstod.3 wcstof.3 wcstod.3 wcstold.3
3d9156a7 131MLINKS+=wcstod_l.3 wcstof_l.3 wcstod_l.3 wcstold_l.3
9385eb3d
A
132MLINKS+=wcstol.3 wcstoul.3 wcstol.3 wcstoll.3 wcstol.3 wcstoull.3 \
133 wcstol.3 wcstoimax.3 wcstol.3 wcstoumax.3
3d9156a7
A
134MLINKS+=wcstol_l.3 wcstoul_l.3 wcstol_l.3 wcstoll_l.3 wcstol_l.3 wcstoull_l.3 \
135 wcstol_l.3 wcstoimax_l.3 wcstol_l.3 wcstoumax_l.3
136MLINKS+=wcstombs.3 wcstombs_l.3
137MLINKS+=wctomb.3 wctomb_l.3
9385eb3d 138MLINKS+=wctrans.3 towctrans.3
3d9156a7 139MLINKS+=wctrans.3 wctrans_l.3 wctrans.3 towctrans_l.3
9385eb3d 140MLINKS+=wctype.3 iswctype.3
3d9156a7
A
141MLINKS+=wctype.3 wctype_l.3 wctype.3 iswctype_l.3
142MLINKS+=wcwidth.3 wcwidth_l.3
5b2abdfb 143.endif