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