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