]> git.saurik.com Git - apple/libc.git/blob - locale/Makefile.inc
Libc-763.13.tar.gz
[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= ascii.c 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 CFLAGS-collate-fbsd.c += -D_DARWIN_UNLIMITED_STREAMS
62 CFLAGS-setrunelocale-fbsd.c += -D_DARWIN_UNLIMITED_STREAMS
63
64 # set the LIBC_ALIAS_* macros so we can decorate the symbol independent
65 # of other macro settings
66 CFLAGS-wcsftime-fbsd.c += -DLIBC_ALIAS_WCSFTIME -DLIBC_ALIAS_WCSFTIME_L
67
68 # For LP64, we need to create rune32.h
69 # This happens at installsrc time, not build time, so the compiler we need
70 # is HOSTCC.
71 .ifmake autopatch
72
73 # This .for statement forces evaluation of ${CWD}
74 .for _cwd in ${CWD}
75 # The following is good enough for ppc, ppc64, i386 and x86_64
76 _ARCH != ${ARCH}
77 .if $(_ARCH) == x86_64
78 ARCH32 = i386
79 .else
80 ARCH32 = $(_ARCH:C/64$//)
81 .endif
82 ${_cwd}/rune32.h: ${_cwd}/rune-fbsd.c
83 ${CP} ${.CURDIR}/include/runetype.h ${_cwd}
84 ${HOSTCC} -arch ${ARCH32} -D_LIBC_NO_FEATURE_VERIFICATION -DRUNEOFF32 -o ${_cwd}/rune32 ${.ALLSRC}
85 ${_cwd}/rune32 > ${.TARGET}
86 ${RM} ${_cwd}/rune32 ${_cwd}/runetype.h
87 AUTOPATCHHDRS+= ${_cwd}/rune32.h
88 .endfor # _cwd
89
90 .endif # autopatch
91
92 .if ${LIB} == "c"
93 MAN3+= ctype_l.3 isalnum_l.3 iswalnum_l.3 wcstod_l.3 wcstol_l.3
94 MAN3+= duplocale.3 freelocale.3 newlocale.3 \
95 querylocale.3 uselocale.3 xlocale.3
96 .ifdef FEATURE_LEGACY_RUNE_APIS
97 # depreciated man pages
98 MAN3+= mbrune.3 rune.3
99 .endif
100 MAN5+= utf2.5
101
102 .include "Makefile.fbsd_begin"
103 FBSDMAN3= btowc.3 ctype.3 digittoint.3 \
104 isalnum.3 isalpha.3 isascii.3 isblank.3 iscntrl.3 isdigit.3 \
105 isgraph.3 isideogram.3 islower.3 isphonogram.3 isprint.3 \
106 ispunct.3 isrune.3 isspace.3 isspecial.3 isupper.3 \
107 iswalnum.3 isxdigit.3 \
108 localeconv.3 \
109 mblen.3 mbrlen.3 mbrtowc.3 mbsinit.3 mbsrtowcs.3 mbstowcs.3 \
110 mbtowc.3 multibyte.3 \
111 nextwctype.3 nl_langinfo.3 \
112 setlocale.3 toascii.3 tolower.3 toupper.3 towlower.3 towupper.3 \
113 wcrtomb.3 wcsftime.3 wcsrtombs.3 wcstod.3 wcstol.3 wcstombs.3 \
114 wctomb.3 wctrans.3 wctype.3 wcwidth.3
115 FBSDMAN5= big5.5 euc.5 gb18030.5 gb2312.5 gbk.5 mskanji.5 utf8.5
116 .include "Makefile.fbsd_end"
117
118 MLINKS+= btowc.3 wctob.3
119
120 MLINKS+= btowc.3 btowc_l.3 \
121 btowc.3 wctob_l.3
122
123 MLINKS+= digittoint.3 digittoint_l.3
124
125 MLINKS+= isdigit.3 isnumber.3
126
127 MLINKS+= isalnum_l.3 isalpha_l.3 \
128 isalnum_l.3 isblank_l.3 \
129 isalnum_l.3 iscntrl_l.3 \
130 isalnum_l.3 isdigit_l.3 \
131 isalnum_l.3 isgraph_l.3 \
132 isalnum_l.3 ishexnumber_l.3 \
133 isalnum_l.3 isideogram_l.3 \
134 isalnum_l.3 islower_l.3 \
135 isalnum_l.3 isnumber_l.3 \
136 isalnum_l.3 isphonogram_l.3 \
137 isalnum_l.3 isprint_l.3 \
138 isalnum_l.3 ispunct_l.3 \
139 isalnum_l.3 isrune_l.3 \
140 isalnum_l.3 isspace_l.3 \
141 isalnum_l.3 isspecial_l.3 \
142 isalnum_l.3 isupper_l.3 \
143 isalnum_l.3 isxdigit_l.3
144
145 MLINKS+= iswalnum.3 iswalpha.3 \
146 iswalnum.3 iswascii.3 \
147 iswalnum.3 iswblank.3 \
148 iswalnum.3 iswcntrl.3 \
149 iswalnum.3 iswdigit.3 \
150 iswalnum.3 iswgraph.3 \
151 iswalnum.3 iswhexnumber.3 \
152 iswalnum.3 iswideogram.3 \
153 iswalnum.3 iswlower.3 \
154 iswalnum.3 iswnumber.3 \
155 iswalnum.3 iswphonogram.3 \
156 iswalnum.3 iswprint.3 \
157 iswalnum.3 iswpunct.3 \
158 iswalnum.3 iswrune.3 \
159 iswalnum.3 iswspace.3 \
160 iswalnum.3 iswspecial.3 \
161 iswalnum.3 iswupper.3 \
162 iswalnum.3 iswxdigit.3
163
164 MLINKS+= iswalnum_l.3 iswalpha_l.3 \
165 iswalnum_l.3 iswblank_l.3 \
166 iswalnum_l.3 iswcntrl_l.3 \
167 iswalnum_l.3 iswdigit_l.3 \
168 iswalnum_l.3 iswgraph_l.3 \
169 iswalnum_l.3 iswhexnumber_l.3 \
170 iswalnum_l.3 iswideogram_l.3 \
171 iswalnum_l.3 iswlower_l.3 \
172 iswalnum_l.3 iswnumber_l.3 \
173 iswalnum_l.3 iswphonogram_l.3 \
174 iswalnum_l.3 iswprint_l.3 \
175 iswalnum_l.3 iswpunct_l.3 \
176 iswalnum_l.3 iswrune_l.3 \
177 iswalnum_l.3 iswspace_l.3 \
178 iswalnum_l.3 iswspecial_l.3 \
179 iswalnum_l.3 iswupper_l.3 \
180 iswalnum_l.3 iswxdigit_l.3
181
182 MLINKS+= isxdigit.3 ishexnumber.3
183
184 MLINKS+= localeconv.3 localeconv_l.3
185
186 MLINKS+= mblen.3 mblen_l.3
187
188 MLINKS+= mbrlen.3 mbrlen_l.3
189
190 MLINKS+= mbrtowc.3 mbrtowc_l.3
191
192 .ifdef FEATURE_LEGACY_RUNE_APIS
193 MLINKS+= mbrune.3 mbmb.3 \
194 mbrune.3 mbrrune.3
195 .endif
196
197 MLINKS+= mbsinit.3 mbsinit_l.3
198
199 MLINKS+= mbsrtowcs.3 mbsnrtowcs.3
200
201 MLINKS+= mbsrtowcs.3 mbsrtowcs_l.3 \
202 mbsrtowcs.3 mbsnrtowcs_l.3
203
204 MLINKS+= mbstowcs.3 mbstowcs_l.3
205
206 MLINKS+= mbtowc.3 mbtowc_l.3
207
208 MLINKS+= nextwctype.3 nextwctype_l.3
209
210 MLINKS+= nl_langinfo.3 nl_langinfo_l.3
211
212 .ifdef FEATURE_LEGACY_RUNE_APIS
213 MLINKS+= rune.3 fgetrune.3 \
214 rune.3 fputrune.3 \
215 rune.3 fungetrune.3 \
216 rune.3 setinvalidrune.3 \
217 rune.3 setrunelocale.3 \
218 rune.3 sgetrune.3 \
219 rune.3 sputrune.3
220 .endif
221
222 MLINKS+= tolower.3 tolower_l.3
223
224 MLINKS+= toupper.3 toupper_l.3
225
226 MLINKS+= towlower.3 towlower_l.3
227
228 MLINKS+= towupper.3 towupper_l.3
229
230 MLINKS+= wcrtomb.3 wcrtomb_l.3
231
232 MLINKS+= wcsftime.3 wcsftime_l.3
233
234 MLINKS+= wcsrtombs.3 wcsnrtombs.3 \
235 wcsrtombs.3 wcsrtombs_l.3 \
236 wcsrtombs.3 wcsnrtombs_l.3
237
238 MLINKS+= wcstod.3 wcstof.3 \
239 wcstod.3 wcstold.3
240
241 MLINKS+= wcstod_l.3 wcstof_l.3 \
242 wcstod_l.3 wcstold_l.3
243
244 MLINKS+= wcstol.3 wcstoimax.3 \
245 wcstol.3 wcstoll.3 \
246 wcstol.3 wcstoul.3 \
247 wcstol.3 wcstoull.3 \
248 wcstol.3 wcstoumax.3
249
250 MLINKS+= wcstol_l.3 wcstoimax_l.3 \
251 wcstol_l.3 wcstoll_l.3 \
252 wcstol_l.3 wcstoul_l.3 \
253 wcstol_l.3 wcstoull_l.3 \
254 wcstol_l.3 wcstoumax_l.3
255
256 MLINKS+= wctomb.3 wctomb_l.3
257
258 MLINKS+= wcstombs.3 wcstombs_l.3
259
260 MLINKS+= wctrans.3 towctrans.3 \
261 wctrans.3 towctrans_l.3 \
262 wctrans.3 wctrans_l.3
263
264 MLINKS+= wctype.3 iswctype.3 \
265 wctype.3 iswctype_l.3 \
266 wctype.3 wctype_l.3
267
268 MLINKS+= wcwidth.3 wcwidth_l.3
269 .endif