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