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