]>
Commit | Line | Data |
---|---|---|
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 |
8 | MISRCS += frune.c mbrune.c runedepreciated.c setinvalidrune.c | |
9 | ||
10 | # extended locale | |
11 | MISRCS += isctype_l.c iswctype_l.c xlocale.c | |
12 | ||
9385eb3d | 13 | .include "Makefile.fbsd_begin" |
3d9156a7 A |
14 | FBSDMISRCS= 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 | |
26 | FBSDHDRS= 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 |
31 | AUTOPATCHSRCS+= ${SYMROOT}/utf2-fbsd.c | |
32 | MISRCS+= 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) | |
38 | LDBLSRCS += wcstold.c | |
39 | ||
9385eb3d A |
40 | # Begin hack for 3333969 |
41 | ||
59e0d9fe A |
42 | MISRCS += lconv.c |
43 | CFLAGS-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 | |
50 | ARCH32 != arch | sed 's/64//' | |
51 | rune.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 |
58 | MAN3+= ctype_l.3 isalnum_l.3 iswalnum_l.3 wcstod_l.3 wcstol_l.3 |
59 | MAN3+= duplocale.3 freelocale.3 newlocale.3 \ | |
60 | querylocale.3 uselocale.3 xlocale.3 | |
61 | # depreciated man pages | |
62 | MAN3+= mbrune.3 rune.3 | |
63 | MAN5+= utf2.5 | |
64 | ||
9385eb3d | 65 | .include "Makefile.fbsd_begin" |
3d9156a7 A |
66 | FBSDMAN3= 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 | |
78 | FBSDMAN5= big5.5 euc.5 gb18030.5 gb2312.5 gbk.5 mskanji.5 utf8.5 | |
9385eb3d | 79 | .include "Makefile.fbsd_end" |
5b2abdfb | 80 | |
9385eb3d | 81 | MLINKS+=btowc.3 wctob.3 |
3d9156a7 A |
82 | MLINKS+=btowc.3 btowc_l.3 btowc.3 wctob_l.3 |
83 | MLINKS+=digittoint.3 digittoint_l.3 | |
9385eb3d | 84 | MLINKS+=isdigit.3 isnumber.3 |
3d9156a7 A |
85 | MLINKS+=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 |
92 | MLINKS+=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 |
99 | MLINKS+=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 | 106 | MLINKS+=isxdigit.3 ishexnumber.3 |
3d9156a7 A |
107 | MLINKS+=localeconv.3 localeconv_l.3 |
108 | MLINKS+=mblen.3 mblen_l.3 | |
109 | MLINKS+=mbrlen.3 mbrlen_l.3 | |
110 | MLINKS+=mbrtowc.3 mbrtowc_l.3 | |
5b2abdfb | 111 | MLINKS+=mbrune.3 mbmb.3 mbrune.3 mbrrune.3 |
3d9156a7 A |
112 | MLINKS+=mbsinit.3 mbsinit_l.3 |
113 | MLINKS+=mbsrtowcs.3 mbsnrtowcs.3 | |
114 | MLINKS+=mbsrtowcs.3 mbsrtowcs_l.3 mbsrtowcs.3 mbsnrtowcs_l.3 | |
115 | MLINKS+=mbstowcs.3 mbstowcs_l.3 | |
116 | MLINKS+=mbtowc.3 mbtowc_l.3 | |
117 | MLINKS+=nextwctype.3 nextwctype_l.3 | |
118 | MLINKS+=nl_langinfo.3 nl_langinfo_l.3 | |
5b2abdfb A |
119 | MLINKS+=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 |
122 | MLINKS+=tolower.3 tolower_l.3 |
123 | MLINKS+=toupper.3 toupper_l.3 | |
124 | MLINKS+=towlower.3 towlower_l.3 | |
125 | MLINKS+=towupper.3 towupper_l.3 | |
126 | MLINKS+=wcrtomb.3 wcrtomb_l.3 | |
127 | MLINKS+=wcsftime.3 wcsftime_l.3 | |
128 | MLINKS+=wcsrtombs.3 wcsnrtombs.3 | |
129 | MLINKS+=wcsrtombs.3 wcsrtombs_l.3 wcsrtombs.3 wcsnrtombs_l.3 | |
9385eb3d | 130 | MLINKS+=wcstod.3 wcstof.3 wcstod.3 wcstold.3 |
3d9156a7 | 131 | MLINKS+=wcstod_l.3 wcstof_l.3 wcstod_l.3 wcstold_l.3 |
9385eb3d A |
132 | MLINKS+=wcstol.3 wcstoul.3 wcstol.3 wcstoll.3 wcstol.3 wcstoull.3 \ |
133 | wcstol.3 wcstoimax.3 wcstol.3 wcstoumax.3 | |
3d9156a7 A |
134 | MLINKS+=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 | |
136 | MLINKS+=wcstombs.3 wcstombs_l.3 | |
137 | MLINKS+=wctomb.3 wctomb_l.3 | |
9385eb3d | 138 | MLINKS+=wctrans.3 towctrans.3 |
3d9156a7 | 139 | MLINKS+=wctrans.3 wctrans_l.3 wctrans.3 towctrans_l.3 |
9385eb3d | 140 | MLINKS+=wctype.3 iswctype.3 |
3d9156a7 A |
141 | MLINKS+=wctype.3 wctype_l.3 wctype.3 iswctype_l.3 |
142 | MLINKS+=wcwidth.3 wcwidth_l.3 | |
5b2abdfb | 143 | .endif |