]> git.saurik.com Git - apple/libc.git/blob - locale/Makefile.inc
aff08162ccd117a074ec1404a78d1987b9537a93
[apple/libc.git] / locale / Makefile.inc
1 # from @(#)Makefile.inc 8.1 (Berkeley) 6/4/93
2 # $FreeBSD: src/lib/libc/locale/Makefile.inc,v 1.43 2003/03/13 06:29:53 tjr Exp $
3
4 # locale sources
5 .PATH: ${.CURDIR}/${MACHINE_ARCH}/locale ${.CURDIR}/locale
6 CWD := ${.CURDIR}/locale
7
8 .ifdef FEATURE_LEGACY_RUNE_APIS
9 # depreciated interfaces
10 MISRCS += frune.c mbrune.c runedepreciated.c setinvalidrune.c
11
12 .for _src in frune.c mbrune.c setinvalidrune.c
13 CFLAGS-${_src} += -D__FBSDID=__RCSID
14 .endfor
15 .endif
16
17 # extended locale
18 MISRCS += isctype.c iswctype.c xlocale.c
19
20 .include "Makefile.fbsd_begin"
21 FBSDMISRCS= big5.c btowc.c collate.c collcmp.c euc.c fix_grouping.c \
22 gb18030.c gb2312.c gbk.c \
23 ldpart.c lmessages.c lmonetary.c lnumeric.c localeconv.c \
24 mblen.c mbrlen.c mbrtowc.c mbsinit.c mbsnrtowcs.c mbsrtowcs.c \
25 mbstowcs.c mbtowc.c mskanji.c \
26 nextwctype.c nl_langinfo.c nomacros.c none.c \
27 rune.c runetype.c setlocale.c setrunelocale.c \
28 table.c tolower.c toupper.c utf8.c \
29 wcrtomb.c wcsftime.c wcsnrtombs.c wcsrtombs.c wcstod.c \
30 wcstof.c wcstoimax.c wcstol.c wcstold.c wcstoll.c wcstombs.c \
31 wcstoul.c wcstoull.c wcstoumax.c wctob.c wctomb.c wctrans.c \
32 wctype.c wcwidth.c
33 FBSDHDRS= collate.h ldpart.h lmessages.h lmonetary.h lnumeric.h \
34 mblocal.h setlocale.h
35 .include "Makefile.fbsd_end"
36
37 .ifmake autopatch
38 # special case: utf2-fbsd.c is derived from utf8.c with utf2.c.patch
39
40 # This .for statement forces evaluation of ${CWD}
41 .for _cwd in ${CWD}
42 AUTOPATCHSRCS+= ${_cwd}/utf2-fbsd.c
43 ${_cwd}/utf2-fbsd.c: ${_cwd}/FreeBSD/utf8.c
44 cp ${.ALLSRC} ${.TARGET}
45 patch ${.TARGET} ${.ALLSRC:S/utf8/utf2/}.patch
46 .endfor # _cwd
47
48 .else # !autopatch
49 MISRCS+= utf2.c
50 .endif # autopatch
51
52 # also build a 64-bit long double version (ppc only)
53 LDBLSRCS += wcstold.c
54
55 .ifdef FEATURE_PATCH_3333969
56 MISRCS += lconv.c
57 .endif # FEATURE_PATCH_3333969
58
59 LEGACYSRCS += wcsftime.c
60
61 # set the LIBC_ALIAS_* macros so we can decorate the symbol independent
62 # of other macro settings
63 CFLAGS-wcsftime-fbsd.c += -DLIBC_ALIAS_WCSFTIME -DLIBC_ALIAS_WCSFTIME_L
64
65 .ifmake autopatch
66 # for LP64, we need to create rune32.h
67 # the following is good enough for ppc, ppc64, i386 and x86_64
68
69 # This .for statement forces evaluation of ${CWD}
70 .for _cwd in ${CWD}
71 _ARCH != arch
72 .if $(_ARCH) == x86_64
73 ARCH32 = i386
74 .else
75 ARCH32 = $(_ARCH:C/64$//)
76 .endif
77 ${_cwd}/rune32.h: ${_cwd}/rune-fbsd.c
78 ${CC} -arch ${ARCH32} -D_LIBC_NO_FEATURE_VERIFICATION -I${.CURDIR}/include -DRUNEOFF32 -o ${_cwd}/rune32 ${.ALLSRC}
79 ${_cwd}/rune32 > ${.TARGET}
80 rm -f ${_cwd}/rune32
81 AUTOPATCHHDRS+= ${_cwd}/rune32.h
82 .endfor # _cwd
83
84 .endif # autopatch
85
86 .if ${LIB} == "c"
87 MAN3+= ctype_l.3 isalnum_l.3 iswalnum_l.3 wcstod_l.3 wcstol_l.3
88 MAN3+= duplocale.3 freelocale.3 newlocale.3 \
89 querylocale.3 uselocale.3 xlocale.3
90 .ifdef FEATURE_LEGACY_RUNE_APIS
91 # depreciated man pages
92 MAN3+= mbrune.3 rune.3
93 .endif
94 MAN5+= utf2.5
95
96 .include "Makefile.fbsd_begin"
97 FBSDMAN3= btowc.3 ctype.3 digittoint.3 \
98 isalnum.3 isalpha.3 isascii.3 isblank.3 iscntrl.3 isdigit.3 \
99 isgraph.3 isideogram.3 islower.3 isphonogram.3 isprint.3 \
100 ispunct.3 isrune.3 isspace.3 isspecial.3 isupper.3 \
101 iswalnum.3 isxdigit.3 \
102 localeconv.3 \
103 mblen.3 mbrlen.3 mbrtowc.3 mbsinit.3 mbsrtowcs.3 mbstowcs.3 \
104 mbtowc.3 multibyte.3 \
105 nextwctype.3 nl_langinfo.3 \
106 setlocale.3 toascii.3 tolower.3 toupper.3 towlower.3 towupper.3 \
107 wcrtomb.3 wcsftime.3 wcsrtombs.3 wcstod.3 wcstol.3 wcstombs.3 \
108 wctomb.3 wctrans.3 wctype.3 wcwidth.3
109 FBSDMAN5= big5.5 euc.5 gb18030.5 gb2312.5 gbk.5 mskanji.5 utf8.5
110 .include "Makefile.fbsd_end"
111
112 MLINKS+= btowc.3 wctob.3
113
114 MLINKS+= btowc.3 btowc_l.3 \
115 btowc.3 wctob_l.3
116
117 MLINKS+= digittoint.3 digittoint_l.3
118
119 MLINKS+= isdigit.3 isnumber.3
120
121 MLINKS+= isalnum_l.3 isalpha_l.3 \
122 isalnum_l.3 isblank_l.3 \
123 isalnum_l.3 iscntrl_l.3 \
124 isalnum_l.3 isdigit_l.3 \
125 isalnum_l.3 isgraph_l.3 \
126 isalnum_l.3 ishexnumber_l.3 \
127 isalnum_l.3 isideogram_l.3 \
128 isalnum_l.3 islower_l.3 \
129 isalnum_l.3 isnumber_l.3 \
130 isalnum_l.3 isphonogram_l.3 \
131 isalnum_l.3 isprint_l.3 \
132 isalnum_l.3 ispunct_l.3 \
133 isalnum_l.3 isrune_l.3 \
134 isalnum_l.3 isspace_l.3 \
135 isalnum_l.3 isspecial_l.3 \
136 isalnum_l.3 isupper_l.3 \
137 isalnum_l.3 isxdigit_l.3
138
139 MLINKS+= iswalnum.3 iswalpha.3 \
140 iswalnum.3 iswascii.3 \
141 iswalnum.3 iswblank.3 \
142 iswalnum.3 iswcntrl.3 \
143 iswalnum.3 iswdigit.3 \
144 iswalnum.3 iswgraph.3 \
145 iswalnum.3 iswhexnumber.3 \
146 iswalnum.3 iswideogram.3 \
147 iswalnum.3 iswlower.3 \
148 iswalnum.3 iswnumber.3 \
149 iswalnum.3 iswphonogram.3 \
150 iswalnum.3 iswprint.3 \
151 iswalnum.3 iswpunct.3 \
152 iswalnum.3 iswrune.3 \
153 iswalnum.3 iswspace.3 \
154 iswalnum.3 iswspecial.3 \
155 iswalnum.3 iswupper.3 \
156 iswalnum.3 iswxdigit.3
157
158 MLINKS+= iswalnum_l.3 iswalpha_l.3 \
159 iswalnum_l.3 iswblank_l.3 \
160 iswalnum_l.3 iswcntrl_l.3 \
161 iswalnum_l.3 iswdigit_l.3 \
162 iswalnum_l.3 iswgraph_l.3 \
163 iswalnum_l.3 iswhexnumber_l.3 \
164 iswalnum_l.3 iswideogram_l.3 \
165 iswalnum_l.3 iswlower_l.3 \
166 iswalnum_l.3 iswnumber_l.3 \
167 iswalnum_l.3 iswphonogram_l.3 \
168 iswalnum_l.3 iswprint_l.3 \
169 iswalnum_l.3 iswpunct_l.3 \
170 iswalnum_l.3 iswrune_l.3 \
171 iswalnum_l.3 iswspace_l.3 \
172 iswalnum_l.3 iswspecial_l.3 \
173 iswalnum_l.3 iswupper_l.3 \
174 iswalnum_l.3 iswxdigit_l.3
175
176 MLINKS+= isxdigit.3 ishexnumber.3
177
178 MLINKS+= localeconv.3 localeconv_l.3
179
180 MLINKS+= mblen.3 mblen_l.3
181
182 MLINKS+= mbrlen.3 mbrlen_l.3
183
184 MLINKS+= mbrtowc.3 mbrtowc_l.3
185
186 .ifdef FEATURE_LEGACY_RUNE_APIS
187 MLINKS+= mbrune.3 mbmb.3 \
188 mbrune.3 mbrrune.3
189 .endif
190
191 MLINKS+= mbsinit.3 mbsinit_l.3
192
193 MLINKS+= mbsrtowcs.3 mbsnrtowcs.3
194
195 MLINKS+= mbsrtowcs.3 mbsrtowcs_l.3 \
196 mbsrtowcs.3 mbsnrtowcs_l.3
197
198 MLINKS+= mbstowcs.3 mbstowcs_l.3
199
200 MLINKS+= mbtowc.3 mbtowc_l.3
201
202 MLINKS+= nextwctype.3 nextwctype_l.3
203
204 MLINKS+= nl_langinfo.3 nl_langinfo_l.3
205
206 .ifdef FEATURE_LEGACY_RUNE_APIS
207 MLINKS+= rune.3 fgetrune.3 \
208 rune.3 fputrune.3 \
209 rune.3 fungetrune.3 \
210 rune.3 setinvalidrune.3 \
211 rune.3 setrunelocale.3 \
212 rune.3 sgetrune.3 \
213 rune.3 sputrune.3
214 .endif
215
216 MLINKS+= tolower.3 tolower_l.3
217
218 MLINKS+= toupper.3 toupper_l.3
219
220 MLINKS+= towlower.3 towlower_l.3
221
222 MLINKS+= towupper.3 towupper_l.3
223
224 MLINKS+= wcrtomb.3 wcrtomb_l.3
225
226 MLINKS+= wcsftime.3 wcsftime_l.3
227
228 MLINKS+= wcsrtombs.3 wcsnrtombs.3 \
229 wcsrtombs.3 wcsrtombs_l.3 \
230 wcsrtombs.3 wcsnrtombs_l.3
231
232 MLINKS+= wcstod.3 wcstof.3 \
233 wcstod.3 wcstold.3
234
235 MLINKS+= wcstod_l.3 wcstof_l.3 \
236 wcstod_l.3 wcstold_l.3
237
238 MLINKS+= wcstol.3 wcstoimax.3 \
239 wcstol.3 wcstoll.3 \
240 wcstol.3 wcstoul.3 \
241 wcstol.3 wcstoull.3 \
242 wcstol.3 wcstoumax.3
243
244 MLINKS+= wcstol_l.3 wcstoimax_l.3 \
245 wcstol_l.3 wcstoll_l.3 \
246 wcstol_l.3 wcstoul_l.3 \
247 wcstol_l.3 wcstoull_l.3 \
248 wcstol_l.3 wcstoumax_l.3
249
250 MLINKS+= wctomb.3 wctomb_l.3
251
252 MLINKS+= wcstombs.3 wcstombs_l.3
253
254 MLINKS+= wctrans.3 towctrans.3 \
255 wctrans.3 towctrans_l.3 \
256 wctrans.3 wctrans_l.3
257
258 MLINKS+= wctype.3 iswctype.3 \
259 wctype.3 iswctype_l.3 \
260 wctype.3 wctype_l.3
261
262 MLINKS+= wcwidth.3 wcwidth_l.3
263 .endif