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