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