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