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