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