Print this page
2964 need POSIX 2008 locale object support
Reviewed by: Robert Mustacchi <rm@joyent.com>
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/lib/libc/sparcv9/Makefile.com
+++ new/usr/src/lib/libc/sparcv9/Makefile.com
1 1 #
2 2 # CDDL HEADER START
3 3 #
4 4 # The contents of this file are subject to the terms of the
5 5 # Common Development and Distribution License (the "License").
6 6 # You may not use this file except in compliance with the License.
7 7 #
8 8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 # or http://www.opensolaris.org/os/licensing.
10 10 # See the License for the specific language governing permissions
11 11 # and limitations under the License.
12 12 #
13 13 # When distributing Covered Code, include this CDDL HEADER in each
14 14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
↓ open down ↓ |
14 lines elided |
↑ open up ↑ |
15 15 # If applicable, add the following below this CDDL HEADER, with the
16 16 # fields enclosed by brackets "[]" replaced with your own identifying
17 17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 18 #
19 19 # CDDL HEADER END
20 20 #
21 21 #
22 22 # Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
23 23 # Copyright (c) 2012, Joyent, Inc. All rights reserved.
24 24 # Copyright (c) 2013, OmniTI Computer Consulting, Inc. All rights reserved.
25 +# Copyright 2013 Garrett D'Amore <garrett@damore.org>
25 26 #
26 27 # Copyright 2011 Nexenta Systems, Inc. All rights reserved.
27 28 # Use is subject to license terms.
28 29 #
29 30
30 31 LIBCDIR= $(SRC)/lib/libc
31 32 LIB_PIC= libc_pic.a
32 33 VERS= .1
33 34 CPP= /usr/lib/cpp
34 35 TARGET_ARCH= sparc
35 36
36 37 # objects are grouped by source directory
37 38
38 39 # Symbol capabilities objects.
39 40 EXTPICS= \
40 41 $(LIBCDIR)/capabilities/sun4u/sparcv9/pics/symcap.o \
41 42 $(LIBCDIR)/capabilities/sun4u-opl/sparcv9/pics/symcap.o \
42 43 $(LIBCDIR)/capabilities/sun4u-us3-hwcap1/sparcv9/pics/symcap.o \
43 44 $(LIBCDIR)/capabilities/sun4u-us3-hwcap2/sparcv9/pics/symcap.o \
44 45 $(LIBCDIR)/capabilities/sun4v-hwcap1/sparcv9/pics/symcap.o \
45 46 $(LIBCDIR)/capabilities/sun4v-hwcap2/sparcv9/pics/symcap.o
46 47
47 48 # local objects
48 49 STRETS=
49 50
50 51 CRTOBJS= \
51 52 __align_cpy_2.o \
52 53 __align_cpy_4.o \
53 54 __align_cpy_8.o \
54 55 _ftou.o \
55 56 cerror.o
56 57
57 58 DYNOBJS=
58 59
59 60 FPOBJS= \
60 61 _D_cplx_div.o \
61 62 _D_cplx_div_ix.o \
62 63 _D_cplx_div_rx.o \
63 64 _D_cplx_mul.o \
64 65 _F_cplx_div.o \
65 66 _F_cplx_div_ix.o \
66 67 _F_cplx_div_rx.o \
67 68 _F_cplx_mul.o \
68 69 _Q_add.o \
69 70 _Q_cmp.o \
70 71 _Q_cmpe.o \
71 72 _Q_cplx_div.o \
72 73 _Q_cplx_div_ix.o \
73 74 _Q_cplx_div_rx.o \
74 75 _Q_cplx_lr_div.o \
75 76 _Q_cplx_lr_div_ix.o \
76 77 _Q_cplx_lr_div_rx.o \
77 78 _Q_cplx_lr_mul.o \
78 79 _Q_cplx_mul.o \
79 80 _Q_div.o \
80 81 _Q_dtoq.o \
81 82 _Q_fcc.o \
82 83 _Q_itoq.o \
83 84 _Q_mul.o \
84 85 _Q_neg.o \
85 86 _Q_qtod.o \
86 87 _Q_qtoi.o \
87 88 _Q_qtos.o \
88 89 _Q_qtou.o \
89 90 _Q_scl.o \
90 91 _Q_sqrt.o \
91 92 _Q_stoq.o \
92 93 _Q_sub.o \
93 94 _Q_utoq.o
94 95
95 96 FPOBJS64= \
96 97 _Qp_qtox.o \
97 98 _Qp_qtoux.o \
98 99 _Qp_xtoq.o \
99 100 _Qp_uxtoq.o \
100 101 __dtoul.o \
101 102 __ftoul.o
102 103
103 104 FPASMOBJS= \
104 105 _Q_get_rp_rd.o \
105 106 __quad_mag64.o \
106 107 fpgetmask.o \
107 108 fpgetrnd.o \
108 109 fpgetsticky.o \
109 110 fpsetmask.o \
110 111 fpsetrnd.o \
111 112 fpsetsticky.o
112 113
113 114 $(__GNUC)FPASMOBJS += \
114 115 __quad.o
115 116
116 117 ATOMICOBJS= \
117 118 atomic.o
118 119
119 120 XATTROBJS= \
120 121 xattr_common.o
121 122
122 123 COMOBJS= \
123 124 bcmp.o \
124 125 bcopy.o \
125 126 bsearch.o \
126 127 bzero.o \
127 128 memccpy.o \
128 129 qsort.o \
129 130 strtol.o \
130 131 strtoul.o \
131 132 strtoll.o \
132 133 strtoull.o
133 134
134 135 GENOBJS= \
135 136 _getsp.o \
136 137 _xregs_clrptr.o \
137 138 abs.o \
138 139 alloca.o \
139 140 ascii_strcasecmp.o \
140 141 byteorder.o \
141 142 cuexit.o \
142 143 ecvt.o \
143 144 getctxt.o \
144 145 lock.o \
145 146 makectxt.o \
146 147 memchr.o \
147 148 memcmp.o \
148 149 new_list.o \
149 150 setjmp.o \
150 151 siginfolst.o \
151 152 siglongjmp.o \
152 153 smt_pause.o \
153 154 sparc_data.o \
154 155 strchr.o \
155 156 strcmp.o \
156 157 strlcpy.o \
157 158 strncmp.o \
158 159 strncpy.o \
159 160 strnlen.o \
160 161 swapctxt.o \
161 162 sync_instruction_memory.o
162 163
163 164 # Preserved solely to ease maintenance of 32-bit and 64-bit library builds
164 165 # This macro should ALWAYS be empty; native APIs are already 'large file'.
165 166 COMSYSOBJS64=
166 167
167 168 SYSOBJS64=
168 169
169 170 COMSYSOBJS= \
170 171 __clock_timer.o \
171 172 __getloadavg.o \
172 173 __rusagesys.o \
173 174 __signotify.o \
174 175 __sigrt.o \
175 176 __time.o \
176 177 _lgrp_home_fast.o \
177 178 _lgrpsys.o \
178 179 _nfssys.o \
179 180 _portfs.o \
180 181 _pset.o \
181 182 _rpcsys.o \
182 183 _sigaction.o \
183 184 _so_accept.o \
184 185 _so_bind.o \
185 186 _so_connect.o \
186 187 _so_getpeername.o \
187 188 _so_getsockname.o \
188 189 _so_getsockopt.o \
189 190 _so_listen.o \
190 191 _so_recv.o \
191 192 _so_recvfrom.o \
192 193 _so_recvmsg.o \
193 194 _so_send.o \
194 195 _so_sendmsg.o \
195 196 _so_sendto.o \
196 197 _so_setsockopt.o \
197 198 _so_shutdown.o \
198 199 _so_socket.o \
199 200 _so_socketpair.o \
200 201 _sockconfig.o \
201 202 acct.o \
202 203 acl.o \
203 204 adjtime.o \
204 205 alarm.o \
205 206 brk.o \
206 207 chdir.o \
207 208 chroot.o \
208 209 cladm.o \
209 210 close.o \
210 211 execve.o \
211 212 exit.o \
212 213 facl.o \
213 214 fchdir.o \
214 215 fchroot.o \
215 216 fdsync.o \
216 217 fpathconf.o \
217 218 fstatfs.o \
218 219 fstatvfs.o \
219 220 getcpuid.o \
220 221 getdents.o \
221 222 getegid.o \
222 223 geteuid.o \
223 224 getgid.o \
224 225 getgroups.o \
225 226 gethrtime.o \
226 227 getitimer.o \
227 228 getmsg.o \
228 229 getpid.o \
229 230 getpmsg.o \
230 231 getppid.o \
231 232 getrlimit.o \
232 233 getuid.o \
233 234 gtty.o \
234 235 install_utrap.o \
235 236 ioctl.o \
236 237 kaio.o \
237 238 kill.o \
238 239 llseek.o \
239 240 lseek.o \
240 241 memcntl.o \
241 242 mincore.o \
242 243 mmap.o \
243 244 mmapobjsys.o \
244 245 modctl.o \
245 246 mount.o \
246 247 mprotect.o \
247 248 munmap.o \
248 249 nice.o \
249 250 ntp_adjtime.o \
250 251 ntp_gettime.o \
251 252 p_online.o \
252 253 pathconf.o \
253 254 pause.o \
254 255 pcsample.o \
255 256 pipe2.o \
256 257 pollsys.o \
257 258 pread.o \
258 259 priocntlset.o \
259 260 processor_bind.o \
260 261 processor_info.o \
261 262 profil.o \
262 263 putmsg.o \
263 264 putpmsg.o \
264 265 pwrite.o \
265 266 read.o \
266 267 readv.o \
267 268 resolvepath.o \
268 269 seteguid.o \
269 270 setgid.o \
270 271 setgroups.o \
271 272 setitimer.o \
272 273 setreid.o \
273 274 setrlimit.o \
274 275 setuid.o \
275 276 sigaltstk.o \
276 277 sigprocmsk.o \
277 278 sigsendset.o \
278 279 sigsuspend.o \
279 280 statfs.o \
280 281 statvfs.o \
281 282 stty.o \
282 283 sync.o \
283 284 sysconfig.o \
284 285 sysfs.o \
285 286 sysinfo.o \
286 287 syslwp.o \
287 288 times.o \
288 289 ulimit.o \
289 290 umask.o \
290 291 umount2.o \
291 292 utssys.o \
292 293 uucopy.o \
293 294 vhangup.o \
294 295 waitid.o \
295 296 write.o \
296 297 writev.o \
297 298 yield.o
298 299
299 300 SYSOBJS= \
300 301 __clock_gettime.o \
301 302 __getcontext.o \
302 303 __uadmin.o \
303 304 _lwp_mutex_unlock.o \
304 305 _stack_grow.o \
305 306 door.o \
306 307 forkx.o \
307 308 forkallx.o \
308 309 gettimeofday.o \
309 310 sparc_utrap_install.o \
310 311 syscall.o \
311 312 tls_get_addr.o \
312 313 uadmin.o \
313 314 umount.o \
314 315 uname.o \
315 316 vforkx.o
316 317
317 318 # Preserved solely to ease maintenance of 32-bit and 64-bit library builds
318 319 # This macro should ALWAYS be empty; native APIs are already 'large file'.
319 320 PORTGEN64=
320 321
321 322 # objects from source under $(LIBCDIR)/port
322 323 PORTFP= \
323 324 __flt_decim.o \
324 325 __flt_rounds.o \
325 326 __tbl_10_b.o \
326 327 __tbl_10_h.o \
327 328 __tbl_10_s.o \
328 329 __tbl_2_b.o \
329 330 __tbl_2_h.o \
330 331 __tbl_2_s.o \
331 332 __tbl_fdq.o \
332 333 __tbl_tens.o \
333 334 __x_power.o \
334 335 _base_sup.o \
335 336 aconvert.o \
336 337 decimal_bin.o \
337 338 double_decim.o \
338 339 econvert.o \
339 340 fconvert.o \
340 341 file_decim.o \
341 342 finite.o \
342 343 fp_data.o \
343 344 func_decim.o \
344 345 gconvert.o \
345 346 hex_bin.o \
346 347 ieee_globals.o \
347 348 pack_float.o \
348 349 sigfpe.o \
349 350 string_decim.o
350 351
351 352 PORTGEN= \
352 353 _env_data.o \
353 354 _xftw.o \
354 355 a64l.o \
355 356 abort.o \
356 357 addsev.o \
357 358 ascii_strncasecmp.o \
358 359 assert.o \
359 360 attrat.o \
360 361 atof.o \
361 362 atoi.o \
362 363 atol.o \
363 364 atoll.o \
364 365 attropen.o \
365 366 atexit.o \
366 367 atfork.o \
367 368 basename.o \
368 369 calloc.o \
369 370 catgets.o \
370 371 catopen.o \
371 372 cfgetispeed.o \
372 373 cfgetospeed.o \
373 374 cfree.o \
374 375 cfsetispeed.o \
375 376 cfsetospeed.o \
376 377 cftime.o \
377 378 clock.o \
378 379 closedir.o \
379 380 closefrom.o \
380 381 confstr.o \
381 382 crypt.o \
382 383 csetlen.o \
383 384 ctime.o \
384 385 ctime_r.o \
385 386 daemon.o \
386 387 deflt.o \
387 388 directio.o \
388 389 dirname.o \
389 390 div.o \
390 391 drand48.o \
391 392 dup.o \
392 393 env_data.o \
393 394 err.o \
394 395 errno.o \
395 396 euclen.o \
396 397 event_port.o \
397 398 execvp.o \
398 399 fattach.o \
399 400 fdetach.o \
400 401 fdopendir.o \
401 402 ffs.o \
402 403 fls.o \
403 404 fmtmsg.o \
404 405 ftime.o \
405 406 ftok.o \
406 407 ftw.o \
407 408 gcvt.o \
408 409 getauxv.o \
409 410 getcwd.o \
410 411 getdate_err.o \
411 412 getdtblsize.o \
412 413 getenv.o \
413 414 getexecname.o \
414 415 getgrnam.o \
415 416 getgrnam_r.o \
416 417 gethostid.o \
417 418 gethostname.o \
418 419 gethz.o \
419 420 getisax.o \
420 421 getloadavg.o \
421 422 getlogin.o \
422 423 getmntent.o \
423 424 getnetgrent.o \
424 425 get_nprocs.o \
425 426 getopt.o \
426 427 getopt_long.o \
427 428 getpagesize.o \
428 429 getpw.o \
429 430 getpwnam.o \
430 431 getpwnam_r.o \
431 432 getrusage.o \
432 433 getspent.o \
433 434 getspent_r.o \
434 435 getsubopt.o \
435 436 gettxt.o \
436 437 getusershell.o \
437 438 getut.o \
438 439 getutx.o \
439 440 getvfsent.o \
440 441 getwd.o \
441 442 getwidth.o \
442 443 getxby_door.o \
443 444 gtxt.o \
444 445 hsearch.o \
445 446 iconv.o \
446 447 imaxabs.o \
447 448 imaxdiv.o \
448 449 index.o \
449 450 initgroups.o \
450 451 insque.o \
451 452 isaexec.o \
452 453 isastream.o \
453 454 isatty.o \
454 455 killpg.o \
455 456 klpdlib.o \
456 457 l64a.o \
457 458 lckpwdf.o \
458 459 lconstants.o \
459 460 ldivide.o \
460 461 lexp10.o \
461 462 lfind.o \
462 463 lfmt.o \
463 464 lfmt_log.o \
464 465 lldiv.o \
465 466 llog10.o \
466 467 lltostr.o \
467 468 lmath.o \
468 469 localtime.o \
469 470 lsearch.o \
470 471 madvise.o \
471 472 malloc.o \
472 473 memalign.o \
473 474 memmem.o \
474 475 mkdev.o \
475 476 mkdtemp.o \
476 477 mkfifo.o \
477 478 mkstemp.o \
478 479 mktemp.o \
479 480 mlock.o \
480 481 mlockall.o \
481 482 mon.o \
482 483 msync.o \
483 484 munlock.o \
484 485 munlockall.o \
485 486 ndbm.o \
486 487 nftw.o \
487 488 nlspath_checks.o \
488 489 nsparse.o \
489 490 nss_common.o \
490 491 nss_dbdefs.o \
491 492 nss_deffinder.o \
492 493 opendir.o \
493 494 opt_data.o \
494 495 perror.o \
495 496 pfmt.o \
496 497 pfmt_data.o \
497 498 pfmt_print.o \
498 499 pipe.o \
499 500 plock.o \
500 501 poll.o \
501 502 posix_fadvise.o \
502 503 posix_fallocate.o \
503 504 posix_madvise.o \
504 505 posix_memalign.o \
505 506 priocntl.o \
506 507 privlib.o \
507 508 priv_str_xlate.o \
508 509 psiginfo.o \
509 510 psignal.o \
510 511 pt.o \
511 512 putpwent.o \
512 513 putspent.o \
513 514 raise.o \
514 515 rand.o \
515 516 random.o \
516 517 rctlops.o \
517 518 readdir.o \
518 519 readdir_r.o \
519 520 realpath.o \
520 521 reboot.o \
521 522 regexpr.o \
522 523 remove.o \
523 524 rewinddir.o \
524 525 rindex.o \
525 526 scandir.o \
526 527 seekdir.o \
527 528 select.o \
528 529 setlabel.o \
529 530 setpriority.o \
530 531 settimeofday.o \
531 532 sh_locks.o \
532 533 sigflag.o \
533 534 siglist.o \
534 535 sigsend.o \
535 536 sigsetops.o \
536 537 ssignal.o \
537 538 stack.o \
538 539 stpcpy.o \
539 540 stpncpy.o \
540 541 str2sig.o \
541 542 strcase_charmap.o \
542 543 strcat.o \
543 544 strchrnul.o \
544 545 strcspn.o \
545 546 strdup.o \
546 547 strerror.o \
547 548 strlcat.o \
548 549 strncat.o \
549 550 strndup.o \
550 551 strpbrk.o \
551 552 strrchr.o \
552 553 strsep.o \
553 554 strsignal.o \
554 555 strspn.o \
555 556 strstr.o \
556 557 strtod.o \
557 558 strtoimax.o \
558 559 strtok.o \
559 560 strtok_r.o \
560 561 strtoumax.o \
561 562 swab.o \
562 563 swapctl.o \
563 564 sysconf.o \
564 565 syslog.o \
565 566 tcdrain.o \
566 567 tcflow.o \
567 568 tcflush.o \
568 569 tcgetattr.o \
569 570 tcgetpgrp.o \
570 571 tcgetsid.o \
571 572 tcsendbreak.o \
572 573 tcsetattr.o \
573 574 tcsetpgrp.o \
574 575 tell.o \
575 576 telldir.o \
576 577 tfind.o \
577 578 time_data.o \
578 579 time_gdata.o \
579 580 tls_data.o \
580 581 truncate.o \
581 582 tsdalloc.o \
582 583 tsearch.o \
583 584 ttyname.o \
584 585 ttyslot.o \
585 586 ualarm.o \
586 587 ucred.o \
587 588 valloc.o \
588 589 vlfmt.o \
589 590 vpfmt.o \
590 591 waitpid.o \
591 592 walkstack.o \
592 593 wdata.o \
593 594 xgetwidth.o \
594 595 xpg4.o \
595 596 xpg6.o
596 597
597 598 PORTPRINT_W= \
598 599 doprnt_w.o
599 600
600 601 PORTPRINT= \
601 602 asprintf.o \
602 603 doprnt.o \
603 604 fprintf.o \
604 605 printf.o \
605 606 snprintf.o \
606 607 sprintf.o \
607 608 vfprintf.o \
608 609 vprintf.o \
609 610 vsnprintf.o \
610 611 vsprintf.o \
611 612 vwprintf.o \
612 613 wprintf.o
613 614
614 615 # Preserved solely to ease maintenance of 32-bit and 64-bit library builds
615 616 # This macro should ALWAYS be empty; native APIs are already 'large file'.
616 617 PORTSTDIO64=
617 618
618 619 PORTSTDIO_W= \
619 620 doscan_w.o
620 621
621 622 PORTSTDIO= \
622 623 __extensions.o \
623 624 _endopen.o \
624 625 _filbuf.o \
625 626 _findbuf.o \
626 627 _flsbuf.o \
627 628 _wrtchk.o \
628 629 clearerr.o \
629 630 ctermid.o \
630 631 ctermid_r.o \
631 632 cuserid.o \
632 633 data.o \
633 634 doscan.o \
634 635 fdopen.o \
635 636 feof.o \
636 637 ferror.o \
637 638 fgetc.o \
638 639 fgets.o \
639 640 fileno.o \
640 641 flockf.o \
641 642 flush.o \
642 643 fopen.o \
643 644 fpos.o \
644 645 fputc.o \
645 646 fputs.o \
646 647 fread.o \
647 648 fseek.o \
648 649 fseeko.o \
649 650 ftell.o \
650 651 ftello.o \
651 652 fwrite.o \
652 653 getc.o \
653 654 getchar.o \
654 655 getline.o \
655 656 getpass.o \
656 657 gets.o \
657 658 getw.o \
658 659 popen.o \
659 660 putc.o \
660 661 putchar.o \
661 662 puts.o \
662 663 putw.o \
663 664 rewind.o \
664 665 scanf.o \
665 666 setbuf.o \
666 667 setbuffer.o \
667 668 setvbuf.o \
668 669 system.o \
669 670 tempnam.o \
670 671 tmpfile.o \
671 672 tmpnam_r.o \
↓ open down ↓ |
637 lines elided |
↑ open up ↑ |
672 673 ungetc.o \
673 674 mse.o \
674 675 vscanf.o \
675 676 vwscanf.o \
676 677 wscanf.o
677 678
678 679 PORTI18N= \
679 680 getwchar.o \
680 681 putwchar.o \
681 682 putws.o \
682 - strcasecmp.o \
683 - strcasestr.o \
684 - strncasecmp.o \
685 683 strtows.o \
686 684 wcsnlen.o \
687 685 wcstoimax.o \
688 686 wcstol.o \
689 687 wcstoul.o \
690 688 wcswcs.o \
691 - wscasecmp.o \
692 689 wscat.o \
693 690 wschr.o \
694 691 wscmp.o \
695 692 wscpy.o \
696 693 wscspn.o \
697 694 wsdup.o \
698 695 wslen.o \
699 - wsncasecmp.o \
700 696 wsncat.o \
701 697 wsncmp.o \
702 698 wsncpy.o \
703 699 wspbrk.o \
704 700 wsprintf.o \
705 701 wsrchr.o \
706 702 wsscanf.o \
707 703 wsspn.o \
708 704 wstod.o \
709 705 wstok.o \
710 706 wstol.o \
711 707 wstoll.o \
712 708 wsxfrm.o \
713 709 wmemchr.o \
714 710 wmemcmp.o \
715 711 wmemcpy.o \
716 712 wmemmove.o \
↓ open down ↓ |
7 lines elided |
↑ open up ↑ |
717 713 wmemset.o \
718 714 wcsstr.o \
719 715 gettext.o \
720 716 gettext_real.o \
721 717 gettext_util.o \
722 718 gettext_gnu.o \
723 719 plural_parser.o \
724 720 wdresolve.o \
725 721 _ctype.o \
726 722 isascii.o \
727 - isdigit.o \
728 723 toascii.o
729 724
730 725 PORTI18N_COND= \
731 726 wcstol_longlong.o \
732 727 wcstoul_longlong.o
733 728
734 729 PORTLOCALE= \
735 730 big5.o \
736 731 btowc.o \
737 732 collate.o \
738 733 collcmp.o \
739 734 euc.o \
740 735 fnmatch.o \
↓ open down ↓ |
3 lines elided |
↑ open up ↑ |
741 736 fgetwc.o \
742 737 fgetws.o \
743 738 fix_grouping.o \
744 739 fputwc.o \
745 740 fputws.o \
746 741 fwide.o \
747 742 gb18030.o \
748 743 gb2312.o \
749 744 gbk.o \
750 745 getdate.o \
746 + isdigit.o \
751 747 iswctype.o \
752 748 ldpart.o \
753 749 lmessages.o \
754 750 lnumeric.o \
755 751 lmonetary.o \
756 752 localeconv.o \
753 + localeimpl.o \
757 754 mbftowc.o \
758 755 mblen.o \
759 756 mbrlen.o \
760 757 mbrtowc.o \
761 758 mbsinit.o \
762 759 mbsnrtowcs.o \
763 760 mbsrtowcs.o \
764 761 mbstowcs.o \
765 762 mbtowc.o \
766 763 mskanji.o \
767 764 nextwctype.o \
↓ open down ↓ |
1 lines elided |
↑ open up ↑ |
768 765 nl_langinfo.o \
769 766 none.o \
770 767 regcomp.o \
771 768 regfree.o \
772 769 regerror.o \
773 770 regexec.o \
774 771 rune.o \
775 772 runetype.o \
776 773 setlocale.o \
777 774 setrunelocale.o \
775 + strcasecmp.o \
776 + strcasestr.o \
778 777 strcoll.o \
779 778 strfmon.o \
780 779 strftime.o \
780 + strncasecmp.o \
781 781 strptime.o \
782 782 strxfrm.o \
783 783 table.o \
784 784 timelocal.o \
785 785 tolower.o \
786 786 towlower.o \
787 787 ungetwc.o \
788 788 utf8.o \
789 789 wcrtomb.o \
790 + wcscasecmp.o \
790 791 wcscoll.o \
791 792 wcsftime.o \
792 793 wcsnrtombs.o \
793 794 wcsrtombs.o \
794 795 wcstombs.o \
795 796 wcswidth.o \
796 797 wcsxfrm.o \
797 798 wctob.o \
798 799 wctomb.o \
799 800 wctrans.o \
800 801 wctype.o \
801 802 wcwidth.o \
802 803 wscol.o
803 804
804 805 AIOOBJS= \
805 806 aio.o \
806 807 aio_alloc.o \
807 808 posix_aio.o
808 809
809 810 RTOBJS= \
810 811 clock_timer.o \
811 812 mqueue.o \
812 813 pos4obj.o \
813 814 sched.o \
814 815 sem.o \
815 816 shm.o \
816 817 sigev_thread.o
817 818
818 819 TPOOLOBJS= \
819 820 thread_pool.o
820 821
821 822 THREADSOBJS= \
822 823 alloc.o \
823 824 assfail.o \
824 825 cancel.o \
825 826 door_calls.o \
826 827 tmem.o \
827 828 pthr_attr.o \
828 829 pthr_barrier.o \
829 830 pthr_cond.o \
830 831 pthr_mutex.o \
831 832 pthr_rwlock.o \
832 833 pthread.o \
833 834 rwlock.o \
834 835 scalls.o \
835 836 sema.o \
836 837 sigaction.o \
837 838 spawn.o \
838 839 synch.o \
839 840 tdb_agent.o \
840 841 thr.o \
841 842 thread_interface.o \
842 843 tls.o \
843 844 tsd.o
844 845
845 846 THREADSMACHOBJS= \
846 847 machdep.o
847 848
848 849 THREADSASMOBJS= \
849 850 asm_subr.o
850 851
851 852 UNICODEOBJS= \
852 853 u8_textprep.o \
853 854 uconv.o
854 855
855 856 UNWINDMACHOBJS= \
856 857 unwind.o
857 858
858 859 UNWINDASMOBJS= \
859 860 unwind_frame.o
860 861
861 862 # Preserved solely to ease maintenance of 32-bit and 64-bit library builds
862 863 # This macro should ALWAYS be empty; native APIs are already 'large file'.
863 864 PORTSYS64=
864 865
865 866 PORTSYS= \
866 867 _autofssys.o \
867 868 access.o \
868 869 acctctl.o \
869 870 bsd_signal.o \
870 871 chmod.o \
871 872 chown.o \
872 873 corectl.o \
873 874 exacctsys.o \
874 875 execl.o \
875 876 execle.o \
876 877 execv.o \
877 878 fcntl.o \
878 879 getpagesizes.o \
879 880 getpeerucred.o \
880 881 inst_sync.o \
881 882 issetugid.o \
882 883 label.o \
883 884 link.o \
884 885 lockf.o \
885 886 lwp.o \
886 887 lwp_cond.o \
887 888 lwp_rwlock.o \
888 889 lwp_sigmask.o \
889 890 meminfosys.o \
890 891 mkdir.o \
891 892 mknod.o \
892 893 msgsys.o \
893 894 nfssys.o \
894 895 open.o \
895 896 pgrpsys.o \
896 897 posix_sigwait.o \
897 898 ppriv.o \
898 899 psetsys.o \
899 900 rctlsys.o \
900 901 readlink.o \
901 902 rename.o \
902 903 sbrk.o \
903 904 semsys.o \
904 905 set_errno.o \
905 906 sharefs.o \
906 907 shmsys.o \
907 908 sidsys.o \
908 909 siginterrupt.o \
909 910 signal.o \
910 911 sigpending.o \
911 912 sigstack.o \
912 913 stat.o \
913 914 symlink.o \
914 915 tasksys.o \
915 916 time.o \
916 917 time_util.o \
917 918 ucontext.o \
918 919 unlink.o \
919 920 ustat.o \
920 921 utimesys.o \
921 922 zone.o
922 923
923 924 PORTREGEX= \
924 925 glob.o \
925 926 regcmp.o \
926 927 regex.o \
927 928 wordexp.o
928 929
929 930 VALUES= values-Xa.o
930 931
931 932 MOSTOBJS= \
932 933 $(STRETS) \
933 934 $(CRTOBJS) \
934 935 $(DYNOBJS) \
935 936 $(FPOBJS) \
936 937 $(FPOBJS64) \
937 938 $(FPASMOBJS) \
938 939 $(ATOMICOBJS) \
939 940 $(XATTROBJS) \
940 941 $(COMOBJS) \
941 942 $(GENOBJS) \
942 943 $(PRFOBJS) \
943 944 $(PORTFP) \
944 945 $(PORTGEN) \
945 946 $(PORTGEN64) \
946 947 $(PORTI18N) \
947 948 $(PORTI18N_COND) \
948 949 $(PORTLOCALE) \
949 950 $(PORTPRINT) \
950 951 $(PORTPRINT_W) \
951 952 $(PORTREGEX) \
952 953 $(PORTSTDIO) \
953 954 $(PORTSTDIO64) \
954 955 $(PORTSTDIO_W) \
955 956 $(PORTSYS) \
956 957 $(PORTSYS64) \
957 958 $(AIOOBJS) \
958 959 $(RTOBJS) \
959 960 $(TPOOLOBJS) \
960 961 $(THREADSOBJS) \
961 962 $(THREADSMACHOBJS) \
962 963 $(THREADSASMOBJS) \
963 964 $(UNICODEOBJS) \
964 965 $(UNWINDMACHOBJS) \
965 966 $(UNWINDASMOBJS) \
966 967 $(COMSYSOBJS) \
967 968 $(SYSOBJS) \
968 969 $(COMSYSOBJS64) \
969 970 $(SYSOBJS64) \
970 971 $(VALUES)
971 972
972 973 TRACEOBJS= \
973 974 plockstat.o
974 975
975 976 # NOTE: libc.so.1 must be linked with the minimal crti.o and crtn.o
976 977 # modules whose source is provided in the $(SRC)/lib/common directory.
977 978 # This must be done because otherwise the Sun C compiler would insert
978 979 # its own versions of these modules and those versions contain code
979 980 # to call out to C++ initialization functions. Such C++ initialization
980 981 # functions can call back into libc before thread initialization is
981 982 # complete and this leads to segmentation violations and other problems.
982 983 # Since libc contains no C++ code, linking with the minimal crti.o and
983 984 # crtn.o modules is safe and avoids the problems described above.
984 985 OBJECTS= $(CRTI) $(MOSTOBJS) $(CRTN)
985 986 CRTSRCS= ../../common/sparcv9
986 987
987 988 # include common library definitions
988 989 include $(SRC)/lib/Makefile.lib
989 990 include $(SRC)/lib/Makefile.lib.64
990 991
991 992 # we need to override the default SONAME here because we might
992 993 # be building a variant object (still libc.so.1, but different filename)
993 994 SONAME = libc.so.1
994 995
995 996 CFLAGS64 += $(CCVERBOSE)
996 997
997 998 # This is necessary to avoid problems with calling _ex_unwind().
998 999 # We probably don't want any inlining anyway.
999 1000 CFLAGS64 += -xinline=
1000 1001
1001 1002 CERRWARN += -_gcc=-Wno-parentheses
1002 1003 CERRWARN += -_gcc=-Wno-switch
1003 1004 CERRWARN += -_gcc=-Wno-uninitialized
1004 1005 CERRWARN += -_gcc=-Wno-unused-value
1005 1006 CERRWARN += -_gcc=-Wno-unused-label
1006 1007 CERRWARN += -_gcc=-Wno-unused-variable
1007 1008 CERRWARN += -_gcc=-Wno-type-limits
1008 1009 CERRWARN += -_gcc=-Wno-char-subscripts
1009 1010 CERRWARN += -_gcc=-Wno-clobbered
1010 1011 CERRWARN += -_gcc=-Wno-unused-function
1011 1012 CERRWARN += -_gcc=-Wno-address
1012 1013
1013 1014 # Setting THREAD_DEBUG = -DTHREAD_DEBUG (make THREAD_DEBUG=-DTHREAD_DEBUG ...)
1014 1015 # enables ASSERT() checking in the threads portion of the library.
1015 1016 # This is automatically enabled for DEBUG builds, not for non-debug builds.
1016 1017 THREAD_DEBUG =
1017 1018 $(NOT_RELEASE_BUILD)THREAD_DEBUG = -DTHREAD_DEBUG
1018 1019
1019 1020 # Make string literals read-only to save memory.
1020 1021 CFLAGS64 += $(XSTRCONST)
1021 1022
1022 1023 ALTPICS= $(TRACEOBJS:%=pics/%)
1023 1024
1024 1025 $(DYNLIB) := BUILD.SO = $(LD) -o $@ -G $(DYNFLAGS) $(PICS) $(ALTPICS) $(EXTPICS)
1025 1026
1026 1027 MAPFILES = $(LIBCDIR)/port/mapfile-vers
1027 1028
1028 1029 sparcv9_C_PICFLAGS= -K PIC
1029 1030 CFLAGS64 += $(EXTN_CFLAGS)
1030 1031 CPPFLAGS= -D_REENTRANT -Dsparc $(EXTN_CPPFLAGS) $(THREAD_DEBUG) \
1031 1032 -I$(LIBCBASE)/inc -I$(LIBCDIR)/inc $(CPPFLAGS.master)
1032 1033 ASFLAGS= $(EXTN_ASFLAGS) -K PIC -P -D__STDC__ -D_ASM -D__sparcv9 $(CPPFLAGS) \
1033 1034 $(sparcv9_AS_XARCH)
1034 1035
1035 1036 # As a favor to the dtrace syscall provider, libc still calls the
1036 1037 # old syscall traps that have been obsoleted by the *at() interfaces.
1037 1038 # Delete this to compile libc using only the new *at() system call traps
1038 1039 CPPFLAGS += -D_RETAIN_OLD_SYSCALLS
1039 1040
1040 1041 # Inform the run-time linker about libc specialized initialization
1041 1042 RTLDINFO = -z rtldinfo=tls_rtldinfo
1042 1043 DYNFLAGS += $(RTLDINFO)
1043 1044
1044 1045 # Force libc's internal references to be resolved immediately upon loading
1045 1046 # in order to avoid critical region problems. Since almost all libc symbols
1046 1047 # are marked 'protected' in the mapfiles, this is a minimal set (15 to 20).
1047 1048 DYNFLAGS += -znow
1048 1049
1049 1050 DYNFLAGS += $(EXTN_DYNFLAGS)
1050 1051
1051 1052 BUILD.s= $(AS) $(ASFLAGS) $< -o $@
1052 1053
1053 1054 # Override this top level flag so the compiler builds in its native
1054 1055 # C99 mode. This has been enabled to support the complex arithmetic
1055 1056 # added to libc.
1056 1057 C99MODE= $(C99_ENABLE)
1057 1058
1058 1059 # libc method of building an archive
1059 1060 # The "$(GREP) -v ' L '" part is necessary only until
1060 1061 # lorder is fixed to ignore thread-local variables.
1061 1062 BUILD.AR= $(RM) $@ ; \
1062 1063 $(AR) q $@ `$(LORDER) $(MOSTOBJS:%=$(DIR)/%) | $(GREP) -v ' L ' | $(TSORT)`
1063 1064
1064 1065 # extra files for the clean target
1065 1066 CLEANFILES= \
1066 1067 $(LIBCDIR)/port/gen/errlst.c \
1067 1068 $(LIBCDIR)/port/gen/new_list.c \
1068 1069 assym.h \
1069 1070 genassym \
1070 1071 pics/crti.o \
1071 1072 pics/crtn.o \
1072 1073 $(ALTPICS)
1073 1074
1074 1075 CLOBBERFILES += $(LIB_PIC)
1075 1076
1076 1077 # list of C source for lint
1077 1078 SRCS= \
1078 1079 $(ATOMICOBJS:%.o=$(SRC)/common/atomic/%.c) \
1079 1080 $(XATTROBJS:%.o=$(SRC)/common/xattr/%.c) \
1080 1081 $(COMOBJS:%.o=$(SRC)/common/util/%.c) \
1081 1082 $(PORTFP:%.o=$(LIBCDIR)/port/fp/%.c) \
1082 1083 $(PORTGEN:%.o=$(LIBCDIR)/port/gen/%.c) \
1083 1084 $(PORTI18N:%.o=$(LIBCDIR)/port/i18n/%.c) \
1084 1085 $(PORTLOCALE:%.o=$(LIBCDIR)/port/locale/%.c) \
1085 1086 $(PORTPRINT:%.o=$(LIBCDIR)/port/print/%.c) \
1086 1087 $(PORTREGEX:%.o=$(LIBCDIR)/port/regex/%.c) \
1087 1088 $(PORTSTDIO:%.o=$(LIBCDIR)/port/stdio/%.c) \
1088 1089 $(PORTSYS:%.o=$(LIBCDIR)/port/sys/%.c) \
1089 1090 $(AIOOBJS:%.o=$(LIBCDIR)/port/aio/%.c) \
1090 1091 $(RTOBJS:%.o=$(LIBCDIR)/port/rt/%.c) \
1091 1092 $(TPOOLOBJS:%.o=$(LIBCDIR)/port/tpool/%.c) \
1092 1093 $(THREADSOBJS:%.o=$(LIBCDIR)/port/threads/%.c) \
1093 1094 $(THREADSMACHOBJS:%.o=$(LIBCDIR)/$(MACH)/threads/%.c) \
1094 1095 $(UNICODEOBJS:%.o=$(SRC)/common/unicode/%.c) \
1095 1096 $(UNWINDMACHOBJS:%.o=$(LIBCDIR)/port/unwind/%.c) \
1096 1097 $(FPOBJS:%.o=$(LIBCDIR)/$(MACH)/fp/%.c) \
1097 1098 $(FPOBJS64:%.o=$(LIBCBASE)/fp/%.c) \
1098 1099 $(LIBCBASE)/crt/_ftou.c \
1099 1100 $(LIBCBASE)/gen/_xregs_clrptr.c \
1100 1101 $(LIBCBASE)/gen/byteorder.c \
1101 1102 $(LIBCBASE)/gen/ecvt.c \
1102 1103 $(LIBCBASE)/gen/getctxt.c \
1103 1104 $(LIBCBASE)/gen/makectxt.c \
1104 1105 $(LIBCBASE)/gen/siginfolst.c \
1105 1106 $(LIBCBASE)/gen/siglongjmp.c \
1106 1107 $(LIBCBASE)/gen/swapctxt.c
1107 1108
1108 1109 # conditional assignments
1109 1110 $(DYNLIB) := CRTI = crti.o
1110 1111 $(DYNLIB) := CRTN = crtn.o
1111 1112
1112 1113 # Files which need the threads .il inline template
1113 1114 TIL= \
1114 1115 aio.o \
1115 1116 alloc.o \
1116 1117 assfail.o \
1117 1118 atexit.o \
1118 1119 atfork.o \
1119 1120 cancel.o \
1120 1121 door_calls.o \
1121 1122 err.o \
1122 1123 errno.o \
1123 1124 getctxt.o \
1124 1125 lwp.o \
1125 1126 ma.o \
1126 1127 machdep.o \
1127 1128 posix_aio.o \
1128 1129 pthr_attr.o \
1129 1130 pthr_barrier.o \
1130 1131 pthr_cond.o \
1131 1132 pthr_mutex.o \
1132 1133 pthr_rwlock.o \
1133 1134 pthread.o \
1134 1135 rand.o \
1135 1136 rwlock.o \
1136 1137 scalls.o \
1137 1138 sched.o \
1138 1139 sema.o \
1139 1140 sigaction.o \
1140 1141 sigev_thread.o \
1141 1142 spawn.o \
1142 1143 stack.o \
1143 1144 swapctxt.o \
1144 1145 synch.o \
1145 1146 tdb_agent.o \
1146 1147 thr.o \
1147 1148 thread_interface.o \
1148 1149 thread_pool.o \
1149 1150 tls.o \
1150 1151 tsd.o \
1151 1152 unwind.o
1152 1153
1153 1154 $(TIL:%=pics/%) := CFLAGS64 += $(LIBCBASE)/threads/sparcv9.il
1154 1155
1155 1156 # Files in fp, port/fp subdirectories that need base.il inline template
1156 1157 IL= \
1157 1158 __flt_decim.o \
1158 1159 decimal_bin.o
1159 1160
1160 1161 $(IL:%=pics/%) := CFLAGS64 += $(LIBCBASE)/fp/base.il
1161 1162
1162 1163 # Files in fp subdirectory which need __quad.il inline template
1163 1164 QIL= \
1164 1165 _Q_add.o \
1165 1166 _Q_cmp.o \
1166 1167 _Q_cmpe.o \
1167 1168 _Q_div.o \
1168 1169 _Q_dtoq.o \
1169 1170 _Q_fcc.o \
1170 1171 _Q_mul.o \
1171 1172 _Q_qtod.o \
1172 1173 _Q_qtoi.o \
1173 1174 _Q_qtos.o \
1174 1175 _Q_qtou.o \
1175 1176 _Q_sqrt.o \
1176 1177 _Q_stoq.o \
1177 1178 _Q_sub.o \
1178 1179 _Qp_qtox.o \
1179 1180 _Qp_qtoux.o
1180 1181
1181 1182 $(QIL:%=pics/%) := CFLAGS64 += $(LIBCDIR)/$(MACH)/fp/__quad.il
1182 1183 pics/_Qp%.o := CFLAGS64 += -I$(LIBCDIR)/$(MACH)/fp
1183 1184 pics/_Q%.o := sparcv9_COPTFLAG = -xO4 -xchip=ultra
1184 1185
1185 1186 # Files in crt subdirectory which need muldiv64.il inline template
1186 1187 #CIL= mul64.o divrem64.o
1187 1188 #$(CIL:%=pics/%) := CFLAGS += $(LIBCBASE)/crt/mul64.il
1188 1189
1189 1190 # large-file-aware components that should be built large
1190 1191
1191 1192 #$(COMSYSOBJS64:%=pics/%) := \
1192 1193 # CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
1193 1194
1194 1195 #$(SYSOBJS64:%=pics/%) := \
1195 1196 # CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
1196 1197
1197 1198 #$(PORTGEN64:%=pics/%) := \
1198 1199 # CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
1199 1200
1200 1201 #$(PORTSTDIO64:%=pics/%) := \
1201 1202 # CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
1202 1203
1203 1204 #$(PORTSYS64:%=pics/%) := \
1204 1205 # CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
1205 1206
1206 1207 $(PORTSTDIO_W:%=pics/%) := \
1207 1208 CPPFLAGS += -D_WIDE
1208 1209
1209 1210 $(PORTPRINT_W:%=pics/%) := \
1210 1211 CPPFLAGS += -D_WIDE
1211 1212
1212 1213 $(PORTI18N_COND:%=pics/%) := \
1213 1214 CPPFLAGS += -D_WCS_LONGLONG
1214 1215
1215 1216 # Files which need extra optimization
1216 1217 pics/getenv.o := sparcv9_COPTFLAG = -xO4
1217 1218
1218 1219 .KEEP_STATE:
1219 1220
1220 1221 all: $(LIBS) $(LIB_PIC)
1221 1222
1222 1223 lint := CPPFLAGS += -I$(LIBCDIR)/$(MACH)/fp
1223 1224 lint := CPPFLAGS += -D_MSE_INT_H -D_LCONV_C99
1224 1225 lint := LINTFLAGS64 += -mn
1225 1226
1226 1227 lint:
1227 1228 @echo $(LINT.c) ... $(LDLIBS)
1228 1229 @$(LINT.c) $(SRCS) $(LDLIBS)
1229 1230
1230 1231 $(LINTLIB):= SRCS=$(LIBCDIR)/port/llib-lc
1231 1232 $(LINTLIB):= CPPFLAGS += -D_MSE_INT_H
1232 1233 $(LINTLIB):= LINTFLAGS64=-nvx -m64
1233 1234
1234 1235 # object files that depend on inline template
1235 1236 $(TIL:%=pics/%): $(LIBCBASE)/threads/sparcv9.il
1236 1237 $(IL:%=pics/%): $(LIBCBASE)/fp/base.il
1237 1238 $(QIL:%=pics/%): $(LIBCDIR)/$(MACH)/fp/__quad.il
1238 1239 #$(CIL:%=pics/%): $(LIBCBASE)/crt/muldiv64.il
1239 1240
1240 1241 # include common libc targets
1241 1242 include $(LIBCDIR)/Makefile.targ
1242 1243
1243 1244 # We need to strip out all CTF and DOF data from the static library
1244 1245 $(LIB_PIC) := DIR = pics
1245 1246 $(LIB_PIC): pics $$(PICS)
1246 1247 $(BUILD.AR)
1247 1248 $(MCS) -d -n .SUNW_ctf $@ > /dev/null 2>&1
1248 1249 $(MCS) -d -n .SUNW_dof $@ > /dev/null 2>&1
1249 1250 $(AR) -ts $@ > /dev/null
1250 1251 $(POST_PROCESS_A)
1251 1252
1252 1253 # special cases
1253 1254 #$(STRETS:%=pics/%): crt/stret.s
1254 1255 # $(AS) $(ASFLAGS) -DSTRET$(@F:stret%.o=%) crt/stret.s -o $@
1255 1256 # $(POST_PROCESS_O)
1256 1257
1257 1258 #crt/_rtbootld.s: crt/_rtboot.s crt/_rtld.c
1258 1259 # $(CC) $(CPPFLAGS) -O -S -K pic crt/_rtld.c -o crt/_rtld.s
1259 1260 # $(CAT) crt/_rtboot.s crt/_rtld.s > $@
1260 1261 # $(RM) crt/_rtld.s
1261 1262
1262 1263 ASSYMDEP_OBJS= \
1263 1264 _lwp_mutex_unlock.o \
1264 1265 _stack_grow.o \
1265 1266 asm_subr.o \
1266 1267 setjmp.o \
1267 1268 smt_pause.o \
1268 1269 tls_get_addr.o \
1269 1270 unwind_frame.o \
1270 1271 vforkx.o
1271 1272
1272 1273 $(ASSYMDEP_OBJS:%=pics/%) := CPPFLAGS += -I.
1273 1274
1274 1275 $(ASSYMDEP_OBJS:%=pics/%): assym.h
1275 1276
1276 1277 # assym.h build rules
1277 1278
1278 1279 assym.h := CFLAGS64 += -g
1279 1280
1280 1281 GENASSYM_C = $(LIBCDIR)/$(MACH)/genassym.c
1281 1282
1282 1283 genassym: $(GENASSYM_C)
1283 1284 $(NATIVECC) -I$(LIBCBASE)/inc -I$(LIBCDIR)/inc \
1284 1285 $(CPPFLAGS.native) -o $@ $(GENASSYM_C)
1285 1286
1286 1287 OFFSETS = $(LIBCDIR)/$(MACH)/offsets.in
1287 1288
1288 1289 assym.h: $(OFFSETS) genassym
1289 1290 $(OFFSETS_CREATE) <$(OFFSETS) >$@
1290 1291 ./genassym >>$@
1291 1292
1292 1293 # derived C source and related explicit dependencies
1293 1294 $(LIBCDIR)/port/gen/new_list.c: $(LIBCDIR)/port/gen/errlist $(LIBCDIR)/port/gen/errlist.awk
1294 1295 cd $(LIBCDIR)/port/gen; pwd; $(AWK) -f errlist.awk < errlist
1295 1296
1296 1297 pics/new_list.o: $(LIBCDIR)/port/gen/new_list.c
↓ open down ↓ |
497 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX