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