Print this page
9083 replace regex implementation with tre
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 2017 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 \
↓ open down ↓ |
429 lines elided |
↑ open up ↑ |
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 + glob.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 mkdev.o \
471 472 mkdtemp.o \
472 473 mkfifo.o \
473 474 mkstemp.o \
474 475 mktemp.o \
475 476 mlock.o \
476 477 mlockall.o \
477 478 mon.o \
478 479 msync.o \
479 480 munlock.o \
480 481 munlockall.o \
481 482 ndbm.o \
482 483 nftw.o \
483 484 nlspath_checks.o \
484 485 nsparse.o \
485 486 nss_common.o \
486 487 nss_dbdefs.o \
487 488 nss_deffinder.o \
488 489 opendir.o \
489 490 opt_data.o \
490 491 perror.o \
491 492 pfmt.o \
492 493 pfmt_data.o \
493 494 pfmt_print.o \
494 495 pipe.o \
495 496 plock.o \
496 497 poll.o \
497 498 posix_fadvise.o \
498 499 posix_fallocate.o \
499 500 posix_madvise.o \
500 501 posix_memalign.o \
501 502 priocntl.o \
502 503 priv_str_xlate.o \
503 504 privlib.o \
504 505 psecflags.o \
505 506 psiginfo.o \
506 507 psignal.o \
↓ open down ↓ |
57 lines elided |
↑ open up ↑ |
507 508 pt.o \
508 509 putpwent.o \
509 510 putspent.o \
510 511 raise.o \
511 512 rand.o \
512 513 random.o \
513 514 rctlops.o \
514 515 readdir.o \
515 516 readdir_r.o \
516 517 reallocarray.o \
517 - recallocarray.o \
518 518 realpath.o \
519 519 reboot.o \
520 + recallocarray.o \
520 521 regexpr.o \
521 522 remove.o \
522 523 rewinddir.o \
523 524 rindex.o \
524 525 scandir.o \
525 526 seekdir.o \
526 527 select.o \
527 528 setlabel.o \
528 529 setpriority.o \
529 530 settimeofday.o \
530 531 sh_locks.o \
531 532 sigflag.o \
532 533 siglist.o \
533 534 sigsend.o \
534 535 sigsetops.o \
535 536 ssignal.o \
536 537 stack.o \
537 538 stpcpy.o \
538 539 stpncpy.o \
539 540 str2sig.o \
540 541 strcase_charmap.o \
541 542 strcat.o \
542 543 strchr.o \
543 544 strchrnul.o \
544 545 strcspn.o \
545 546 strdup.o \
546 547 strerror.o \
547 548 strlcat.o \
548 549 strlcpy.o \
549 550 strncat.o \
550 551 strndup.o \
551 552 strpbrk.o \
552 553 strrchr.o \
553 554 strsep.o \
554 555 strsignal.o \
555 556 strspn.o \
556 557 strstr.o \
557 558 strtod.o \
558 559 strtoimax.o \
559 560 strtok.o \
560 561 strtok_r.o \
561 562 strtonum.o \
562 563 strtoumax.o \
563 564 swab.o \
564 565 swapctl.o \
565 566 sysconf.o \
566 567 syslog.o \
567 568 tcdrain.o \
568 569 tcflow.o \
569 570 tcflush.o \
570 571 tcgetattr.o \
571 572 tcgetpgrp.o \
572 573 tcgetsid.o \
573 574 tcsendbreak.o \
574 575 tcsetattr.o \
575 576 tcsetpgrp.o \
576 577 tell.o \
577 578 telldir.o \
578 579 tfind.o \
579 580 time_data.o \
580 581 time_gdata.o \
581 582 timespec_get.o \
582 583 tls_data.o \
583 584 truncate.o \
584 585 tsdalloc.o \
585 586 tsearch.o \
↓ open down ↓ |
56 lines elided |
↑ open up ↑ |
586 587 ttyname.o \
587 588 ttyslot.o \
588 589 ualarm.o \
589 590 ucred.o \
590 591 valloc.o \
591 592 vlfmt.o \
592 593 vpfmt.o \
593 594 waitpid.o \
594 595 walkstack.o \
595 596 wdata.o \
597 + wordexp.o \
596 598 xgetwidth.o \
597 599 xpg4.o \
598 600 xpg6.o
599 601
600 602 PORTPRINT_W= \
601 603 doprnt_w.o
602 604
603 605 PORTPRINT= \
604 606 asprintf.o \
605 607 doprnt.o \
606 608 fprintf.o \
607 609 printf.o \
608 610 snprintf.o \
609 611 sprintf.o \
610 612 vfprintf.o \
611 613 vprintf.o \
612 614 vsnprintf.o \
613 615 vsprintf.o \
614 616 vwprintf.o \
615 617 wprintf.o
616 618
617 619 # Preserved solely to ease maintenance of 32-bit and 64-bit library builds
618 620 # This macro should ALWAYS be empty; native APIs are already 'large file'.
619 621 PORTSTDIO64=
620 622
621 623 PORTSTDIO_W= \
622 624 doscan_w.o
623 625
624 626 PORTSTDIO= \
625 627 __extensions.o \
626 628 _endopen.o \
627 629 _filbuf.o \
628 630 _findbuf.o \
629 631 _flsbuf.o \
630 632 _wrtchk.o \
631 633 clearerr.o \
632 634 ctermid.o \
633 635 ctermid_r.o \
634 636 cuserid.o \
635 637 data.o \
636 638 doscan.o \
637 639 fdopen.o \
638 640 feof.o \
639 641 ferror.o \
640 642 fgetc.o \
641 643 fgets.o \
642 644 fileno.o \
643 645 flockf.o \
644 646 flush.o \
645 647 fopen.o \
646 648 fpos.o \
647 649 fputc.o \
648 650 fputs.o \
649 651 fread.o \
650 652 fseek.o \
651 653 fseeko.o \
652 654 ftell.o \
653 655 ftello.o \
654 656 fwrite.o \
655 657 getc.o \
656 658 getchar.o \
657 659 getline.o \
658 660 getpass.o \
659 661 gets.o \
660 662 getw.o \
661 663 mse.o \
662 664 popen.o \
663 665 putc.o \
664 666 putchar.o \
665 667 puts.o \
666 668 putw.o \
667 669 rewind.o \
668 670 scanf.o \
669 671 setbuf.o \
670 672 setbuffer.o \
671 673 setvbuf.o \
672 674 system.o \
673 675 tempnam.o \
674 676 tmpfile.o \
675 677 tmpnam_r.o \
676 678 ungetc.o \
677 679 vscanf.o \
678 680 vwscanf.o \
679 681 wscanf.o
680 682
681 683 PORTI18N= \
682 684 getwchar.o \
683 685 putwchar.o \
684 686 putws.o \
685 687 strtows.o \
686 688 wcsnlen.o \
687 689 wcsstr.o \
688 690 wcstoimax.o \
689 691 wcstol.o \
690 692 wcstoul.o \
691 693 wcswcs.o \
692 694 wmemchr.o \
693 695 wmemcmp.o \
694 696 wmemcpy.o \
695 697 wmemmove.o \
696 698 wmemset.o \
697 699 wscat.o \
698 700 wschr.o \
699 701 wscmp.o \
700 702 wscpy.o \
701 703 wscspn.o \
702 704 wsdup.o \
703 705 wslen.o \
704 706 wsncat.o \
705 707 wsncmp.o \
706 708 wsncpy.o \
707 709 wspbrk.o \
708 710 wsprintf.o \
709 711 wsrchr.o \
710 712 wsscanf.o \
711 713 wsspn.o \
712 714 wstod.o \
713 715 wstok.o \
714 716 wstol.o \
715 717 wstoll.o \
716 718 wsxfrm.o \
717 719 gettext.o \
718 720 gettext_gnu.o \
719 721 gettext_real.o \
720 722 gettext_util.o \
721 723 plural_parser.o \
722 724 wdresolve.o \
723 725 _ctype.o \
724 726 isascii.o \
725 727 toascii.o
726 728
727 729 PORTI18N_COND= \
728 730 wcstol_longlong.o \
729 731 wcstoul_longlong.o
730 732
731 733 PORTLOCALE= \
732 734 big5.o \
733 735 btowc.o \
734 736 collate.o \
735 737 collcmp.o \
736 738 euc.o \
737 739 fnmatch.o \
738 740 fgetwc.o \
739 741 fgetws.o \
740 742 fix_grouping.o \
741 743 fputwc.o \
742 744 fputws.o \
743 745 fwide.o \
744 746 gb18030.o \
745 747 gb2312.o \
746 748 gbk.o \
747 749 getdate.o \
748 750 isdigit.o \
749 751 iswctype.o \
750 752 ldpart.o \
751 753 lmessages.o \
752 754 lnumeric.o \
753 755 lmonetary.o \
754 756 localeconv.o \
755 757 localeimpl.o \
756 758 mbftowc.o \
757 759 mblen.o \
758 760 mbrlen.o \
759 761 mbrtowc.o \
760 762 mbsinit.o \
761 763 mbsnrtowcs.o \
762 764 mbsrtowcs.o \
763 765 mbstowcs.o \
764 766 mbtowc.o \
765 767 mskanji.o \
766 768 nextwctype.o \
767 769 nl_langinfo.o \
768 770 none.o \
769 771 rune.o \
770 772 runetype.o \
771 773 setlocale.o \
772 774 setrunelocale.o \
773 775 strcasecmp.o \
774 776 strcasestr.o \
775 777 strcoll.o \
776 778 strfmon.o \
777 779 strftime.o \
778 780 strncasecmp.o \
779 781 strptime.o \
780 782 strxfrm.o \
781 783 table.o \
782 784 timelocal.o \
783 785 tolower.o \
784 786 towlower.o \
785 787 ungetwc.o \
786 788 utf8.o \
787 789 wcrtomb.o \
788 790 wcscasecmp.o \
789 791 wcscoll.o \
790 792 wcsftime.o \
791 793 wcsnrtombs.o \
792 794 wcsrtombs.o \
793 795 wcswidth.o \
794 796 wcstombs.o \
795 797 wcsxfrm.o \
796 798 wctob.o \
797 799 wctomb.o \
798 800 wctrans.o \
799 801 wctype.o \
800 802 wcwidth.o \
801 803 wscol.o
802 804
803 805 AIOOBJS= \
804 806 aio.o \
805 807 aio_alloc.o \
806 808 posix_aio.o
807 809
808 810 RTOBJS= \
809 811 clock_timer.o \
810 812 mqueue.o \
811 813 pos4obj.o \
812 814 sched.o \
813 815 sem.o \
814 816 shm.o \
815 817 sigev_thread.o
816 818
817 819 SECFLAGSOBJS= \
818 820 secflags.o
819 821
820 822 TPOOLOBJS= \
821 823 thread_pool.o
822 824
823 825 THREADSOBJS= \
824 826 alloc.o \
825 827 assfail.o \
826 828 c11_thr.o \
827 829 cancel.o \
828 830 door_calls.o \
829 831 tmem.o \
830 832 pthr_attr.o \
831 833 pthr_barrier.o \
832 834 pthr_cond.o \
833 835 pthr_mutex.o \
834 836 pthr_rwlock.o \
835 837 pthread.o \
836 838 rwlock.o \
837 839 scalls.o \
838 840 sema.o \
839 841 sigaction.o \
840 842 spawn.o \
841 843 synch.o \
842 844 tdb_agent.o \
843 845 thr.o \
844 846 thread_interface.o \
845 847 tls.o \
846 848 tsd.o
847 849
848 850 THREADSMACHOBJS= \
849 851 machdep.o
850 852
851 853 THREADSASMOBJS= \
852 854 asm_subr.o
853 855
854 856 UNICODEOBJS= \
855 857 u8_textprep.o \
856 858 uconv.o
857 859
858 860 UNWINDMACHOBJS= \
859 861 call_frame_inst.o \
860 862 eh_frame.o \
861 863 thrp_unwind.o \
862 864 unwind.o
863 865
864 866 pics/unwind.o:= COPTFLAG64 =
865 867
866 868 UNWINDASMOBJS= \
867 869 unwind_frame.o
868 870
869 871 # Preserved solely to ease maintenance of 32-bit and 64-bit library builds
870 872 # This macro should ALWAYS be empty; native APIs are already 'large file'.
871 873 PORTSYS64=
872 874
873 875 PORTSYS= \
874 876 _autofssys.o \
875 877 access.o \
876 878 acctctl.o \
877 879 bsd_signal.o \
878 880 chmod.o \
879 881 chown.o \
880 882 corectl.o \
881 883 epoll.o \
882 884 exacctsys.o \
883 885 execl.o \
884 886 execle.o \
885 887 execv.o \
886 888 eventfd.o \
887 889 fcntl.o \
888 890 getpagesizes.o \
889 891 getpeerucred.o \
890 892 inst_sync.o \
891 893 issetugid.o \
892 894 label.o \
893 895 link.o \
894 896 lockf.o \
895 897 lwp.o \
896 898 lwp_cond.o \
897 899 lwp_rwlock.o \
898 900 lwp_sigmask.o \
899 901 meminfosys.o \
900 902 mkdir.o \
901 903 mknod.o \
902 904 msgsys.o \
903 905 nfssys.o \
904 906 open.o \
905 907 pgrpsys.o \
906 908 posix_sigwait.o \
907 909 ppriv.o \
908 910 psetsys.o \
909 911 rctlsys.o \
910 912 readlink.o \
911 913 rename.o \
912 914 sbrk.o \
913 915 semsys.o \
914 916 set_errno.o \
915 917 sharefs.o \
916 918 shmsys.o \
917 919 sidsys.o \
918 920 siginterrupt.o \
919 921 signal.o \
920 922 signalfd.o \
921 923 sigpending.o \
922 924 sigstack.o \
923 925 stat.o \
924 926 symlink.o \
925 927 tasksys.o \
↓ open down ↓ |
320 lines elided |
↑ open up ↑ |
926 928 time.o \
927 929 time_util.o \
928 930 timerfd.o \
929 931 ucontext.o \
930 932 unlink.o \
931 933 ustat.o \
932 934 utimesys.o \
933 935 zone.o
934 936
935 937 PORTREGEX= \
936 - glob.o \
937 938 regcmp.o \
938 939 regcomp.o \
939 940 regerror.o \
940 941 regex.o \
941 942 regexec.o \
942 - regfree.o \
943 - wordexp.o
943 + tre-ast.o \
944 + tre-compile.o \
945 + tre-match-backtrack.o \
946 + tre-match-parallel.o \
947 + tre-mem.o \
948 + tre-parse.o \
949 + tre-stack.o
944 950
945 951 VALUES= \
946 952 values-Xa.o
947 953
948 954 MOSTOBJS= \
949 955 $(STRETS) \
950 956 $(CRTOBJS) \
951 957 $(DYNOBJS) \
952 958 $(FPOBJS) \
953 959 $(I386FPOBJS) \
954 960 $(FPASMOBJS) \
955 961 $(ATOMICOBJS) \
956 962 $(CHACHAOBJS) \
957 963 $(XATTROBJS) \
958 964 $(COMOBJS) \
959 965 $(GENOBJS) \
960 966 $(PORTFP) \
961 967 $(PORTGEN) \
962 968 $(PORTGEN64) \
963 969 $(PORTI18N) \
964 970 $(PORTI18N_COND) \
965 971 $(PORTLOCALE) \
966 972 $(PORTPRINT) \
967 973 $(PORTPRINT_W) \
968 974 $(PORTREGEX) \
969 975 $(PORTSTDIO) \
970 976 $(PORTSTDIO64) \
971 977 $(PORTSTDIO_W) \
972 978 $(PORTSYS) \
973 979 $(PORTSYS64) \
974 980 $(AIOOBJS) \
975 981 $(RTOBJS) \
976 982 $(SECFLAGSOBJS) \
977 983 $(TPOOLOBJS) \
978 984 $(THREADSOBJS) \
979 985 $(THREADSMACHOBJS) \
980 986 $(THREADSASMOBJS) \
981 987 $(UNICODEOBJS) \
982 988 $(UNWINDMACHOBJS) \
983 989 $(UNWINDASMOBJS) \
984 990 $(COMSYSOBJS) \
985 991 $(SYSOBJS) \
986 992 $(COMSYSOBJS64) \
987 993 $(SYSOBJS64) \
988 994 $(VALUES)
989 995
990 996 TRACEOBJS= \
991 997 plockstat.o
992 998
993 999 # NOTE: libc.so.1 must be linked with the minimal crti.o and crtn.o
994 1000 # modules whose source is provided in the $(SRC)/lib/crt directory.
995 1001 # This must be done because otherwise the Sun C compiler would insert
996 1002 # its own versions of these modules and those versions contain code
997 1003 # to call out to C++ initialization functions. Such C++ initialization
998 1004 # functions can call back into libc before thread initialization is
999 1005 # complete and this leads to segmentation violations and other problems.
1000 1006 # Since libc contains no C++ code, linking with the minimal crti.o and
1001 1007 # crtn.o modules is safe and avoids the problems described above.
1002 1008 OBJECTS= $(CRTI) $(MOSTOBJS) $(CRTN)
1003 1009 CRTSRCS= ../../crt/amd64
1004 1010
1005 1011 # include common library definitions
1006 1012 include ../../Makefile.lib
1007 1013 include ../../Makefile.lib.64
1008 1014
1009 1015 CFLAGS64 += $(CTF_FLAGS)
1010 1016
1011 1017 # This is necessary to avoid problems with calling _ex_unwind().
1012 1018 # We probably don't want any inlining anyway.
1013 1019 CFLAGS64 += -xinline=
1014 1020
1015 1021 CERRWARN += -_gcc=-Wno-parentheses
1016 1022 CERRWARN += -_gcc=-Wno-switch
1017 1023 CERRWARN += -_gcc=-Wno-uninitialized
1018 1024 CERRWARN += -_gcc=-Wno-unused-value
1019 1025 CERRWARN += -_gcc=-Wno-unused-label
1020 1026 CERRWARN += -_gcc=-Wno-unused-variable
1021 1027 CERRWARN += -_gcc=-Wno-type-limits
1022 1028 CERRWARN += -_gcc=-Wno-char-subscripts
1023 1029 CERRWARN += -_gcc=-Wno-clobbered
1024 1030 CERRWARN += -_gcc=-Wno-unused-function
1025 1031 CERRWARN += -_gcc=-Wno-address
1026 1032
1027 1033 # Setting THREAD_DEBUG = -DTHREAD_DEBUG (make THREAD_DEBUG=-DTHREAD_DEBUG ...)
1028 1034 # enables ASSERT() checking in the threads portion of the library.
1029 1035 # This is automatically enabled for DEBUG builds, not for non-debug builds.
1030 1036 THREAD_DEBUG =
1031 1037 $(NOT_RELEASE_BUILD)THREAD_DEBUG = -DTHREAD_DEBUG
1032 1038
1033 1039 # Make string literals read-only to save memory
1034 1040 CFLAGS64 += $(XSTRCONST)
1035 1041
1036 1042 ALTPICS= $(TRACEOBJS:%=pics/%)
1037 1043
1038 1044 $(DYNLIB) := BUILD.SO = $(LD) -o $@ -G $(DYNFLAGS) $(PICS) $(ALTPICS) $(EXTPICS)
1039 1045
1040 1046 MAPFILES = $(LIBCDIR)/port/mapfile-vers
1041 1047
1042 1048 CPPFLAGS= -D_REENTRANT -D$(MACH64) -D__$(MACH64) $(THREAD_DEBUG) \
1043 1049 -I. -I$(LIBCBASE)/inc -I$(LIBCDIR)/inc $(CPPFLAGS.master)
1044 1050 ASFLAGS= $(AS_PICFLAGS) -P -D__STDC__ -D_ASM $(CPPFLAGS) \
1045 1051 $(amd64_AS_XARCH)
1046 1052
1047 1053 # As a favor to the dtrace syscall provider, libc still calls the
1048 1054 # old syscall traps that have been obsoleted by the *at() interfaces.
1049 1055 # Delete this to compile libc using only the new *at() system call traps
1050 1056 CPPFLAGS += -D_RETAIN_OLD_SYSCALLS
1051 1057
1052 1058 # proc64_id.o is built with defines in $(SRC)/uts/intel/sys/x86_archext.h
1053 1059 pics/proc64_id.o := CFLAGS64 += -I$(SRC)/uts/intel
1054 1060
1055 1061 # Inform the run-time linker about libc specialized initialization
1056 1062 RTLDINFO = -z rtldinfo=tls_rtldinfo
1057 1063 DYNFLAGS += $(RTLDINFO)
1058 1064
1059 1065 # Force libc's internal references to be resolved immediately upon loading
1060 1066 # in order to avoid critical region problems. Since almost all libc symbols
1061 1067 # are marked 'protected' in the mapfiles, this is a minimal set (15 to 20).
1062 1068 DYNFLAGS += -znow
1063 1069
1064 1070 BUILD.s= $(AS) $(ASFLAGS) $< -o $@
1065 1071
1066 1072 # Override this top level flag so the compiler builds in its native
1067 1073 # C99 mode. This has been enabled to support the complex arithmetic
1068 1074 # added to libc.
1069 1075 CSTD= $(CSTD_GNU99)
1070 1076
1071 1077 # libc method of building an archive
1072 1078 # The "$(GREP) -v ' L '" part is necessary only until
1073 1079 # lorder is fixed to ignore thread-local variables.
1074 1080 BUILD.AR= $(RM) $@ ; \
1075 1081 $(AR) q $@ `$(LORDER) $(MOSTOBJS:%=$(DIR)/%) | $(GREP) -v ' L ' | $(TSORT)`
1076 1082
1077 1083 # extra files for the clean target
1078 1084 CLEANFILES += \
1079 1085 $(LIBCDIR)/port/gen/errlst.c \
1080 1086 $(LIBCDIR)/port/gen/new_list.c \
1081 1087 assym.h \
1082 1088 genassym \
1083 1089 crt/_rtld.s \
1084 1090 pics/crti.o \
1085 1091 pics/crtn.o \
1086 1092 $(ALTPICS)
1087 1093
1088 1094 CLOBBERFILES += $(LIB_PIC)
1089 1095
1090 1096 # list of C source for lint
1091 1097 SRCS= \
1092 1098 $(ATOMICOBJS:%.o=$(SRC)/common/atomic/%.c) \
1093 1099 $(XATTROBJS:%.o=$(SRC)/common/xattr/%.c) \
1094 1100 $(COMOBJS:%.o=$(SRC)/common/util/%.c) \
1095 1101 $(PORTFP:%.o=$(LIBCDIR)/port/fp/%.c) \
1096 1102 $(PORTGEN:%.o=$(LIBCDIR)/port/gen/%.c) \
1097 1103 $(PORTI18N:%.o=$(LIBCDIR)/port/i18n/%.c) \
1098 1104 $(PORTLOCALE:%.o=$(LIBCDIR)/port/locale/%.c) \
1099 1105 $(PORTPRINT:%.o=$(LIBCDIR)/port/print/%.c) \
1100 1106 $(PORTREGEX:%.o=$(LIBCDIR)/port/regex/%.c) \
1101 1107 $(PORTSTDIO:%.o=$(LIBCDIR)/port/stdio/%.c) \
1102 1108 $(PORTSYS:%.o=$(LIBCDIR)/port/sys/%.c) \
1103 1109 $(AIOOBJS:%.o=$(LIBCDIR)/port/aio/%.c) \
1104 1110 $(RTOBJS:%.o=$(LIBCDIR)/port/rt/%.c) \
1105 1111 $(SECFLAGSOBJS:%.o=$(SRC)/common/secflags/%.c) \
1106 1112 $(TPOOLOBJS:%.o=$(LIBCDIR)/port/tpool/%.c) \
1107 1113 $(THREADSOBJS:%.o=$(LIBCDIR)/port/threads/%.c) \
1108 1114 $(THREADSMACHOBJS:%.o=threads/%.c) \
1109 1115 $(UNICODEOBJS:%.o=$(SRC)/common/unicode/%.c) \
1110 1116 $(UNWINDMACHOBJS:%.o=unwind/%.c) \
1111 1117 $(FPOBJS:%.o=fp/%.c) \
1112 1118 $(I386FPOBJS:%.o=$(LIBCDIR)/i386/fp/%.c) \
1113 1119 $(LIBCBASE)/gen/ecvt.c \
1114 1120 $(LIBCBASE)/gen/makectxt.c \
1115 1121 $(LIBCBASE)/gen/siginfolst.c \
1116 1122 $(LIBCBASE)/gen/siglongjmp.c \
1117 1123 $(LIBCBASE)/gen/sync_instruction_memory.c \
1118 1124 $(LIBCBASE)/sys/uadmin.c
1119 1125
1120 1126 # conditional assignments
1121 1127 # $(DYNLIB) $(LIB_PIC) := DYNOBJS = _rtbootld.o
1122 1128 $(DYNLIB) := CRTI = crti.o
1123 1129 $(DYNLIB) := CRTN = crtn.o
1124 1130
1125 1131 # Files which need the threads .il inline template
1126 1132 TIL= \
1127 1133 aio.o \
1128 1134 alloc.o \
1129 1135 assfail.o \
1130 1136 atexit.o \
1131 1137 atfork.o \
1132 1138 cancel.o \
1133 1139 door_calls.o \
1134 1140 err.o \
1135 1141 errno.o \
1136 1142 lwp.o \
1137 1143 ma.o \
1138 1144 machdep.o \
1139 1145 posix_aio.o \
1140 1146 pthr_attr.o \
1141 1147 pthr_barrier.o \
1142 1148 pthr_cond.o \
1143 1149 pthr_mutex.o \
1144 1150 pthr_rwlock.o \
1145 1151 pthread.o \
1146 1152 rand.o \
1147 1153 rwlock.o \
1148 1154 scalls.o \
1149 1155 sched.o \
1150 1156 sema.o \
1151 1157 sigaction.o \
1152 1158 sigev_thread.o \
1153 1159 spawn.o \
1154 1160 stack.o \
1155 1161 synch.o \
1156 1162 tdb_agent.o \
1157 1163 thr.o \
1158 1164 thread_interface.o \
1159 1165 thread_pool.o \
1160 1166 thrp_unwind.o \
1161 1167 tls.o \
1162 1168 tmem.o \
1163 1169 tsd.o
1164 1170
1165 1171 $(TIL:%=pics/%) := CFLAGS64 += $(LIBCBASE)/threads/amd64.il
1166 1172
1167 1173 # pics/mul64.o := CFLAGS64 += crt/mul64.il
1168 1174
1169 1175 # large-file-aware components that should be built large
1170 1176
1171 1177 #$(COMSYSOBJS64:%=pics/%) := \
1172 1178 # CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
1173 1179
1174 1180 #$(SYSOBJS64:%=pics/%) := \
1175 1181 # CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
1176 1182
1177 1183 #$(PORTGEN64:%=pics/%) := \
1178 1184 # CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
1179 1185
1180 1186 #$(PORTSTDIO64:%=pics/%) := \
1181 1187 # CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
1182 1188
1183 1189 #$(PORTSYS64:%=pics/%) := \
1184 1190 # CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
1185 1191
1186 1192 $(PORTSTDIO_W:%=pics/%) := \
1187 1193 CPPFLAGS += -D_WIDE
1188 1194
1189 1195 $(PORTPRINT_W:%=pics/%) := \
1190 1196 CPPFLAGS += -D_WIDE
1191 1197
1192 1198 $(PORTPRINT_C89:%=pics/%) := \
1193 1199 CPPFLAGS += -D_C89_INTMAX32
1194 1200
1195 1201 $(PORTSTDIO_C89:%=pics/%) := \
1196 1202 CPPFLAGS += -D_C89_INTMAX32
1197 1203
1198 1204 $(PORTI18N_COND:%=pics/%) := \
1199 1205 CPPFLAGS += -D_WCS_LONGLONG
1200 1206
1201 1207 pics/arc4random.o := CPPFLAGS += -I$(SRC)/common/crypto/chacha
1202 1208
1203 1209 pics/__clock_gettime.o := CPPFLAGS += $(COMMPAGE_CPPFLAGS)
1204 1210
1205 1211 .KEEP_STATE:
1206 1212
1207 1213 all: $(LIBS) $(LIB_PIC)
1208 1214
1209 1215 lint := CPPFLAGS += -I$(LIBCDIR)/$(MACH)/fp
1210 1216 lint := CPPFLAGS += -D_MSE_INT_H -D_LCONV_C99
1211 1217 lint := LINTFLAGS64 += -mn -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
1212 1218
1213 1219 lint:
1214 1220 @echo $(LINT.c) ... $(LDLIBS)
1215 1221 @$(LINT.c) $(SRCS) $(LDLIBS)
1216 1222
1217 1223 $(LINTLIB):= SRCS=$(LIBCDIR)/port/llib-lc
1218 1224 $(LINTLIB):= CPPFLAGS += -D_MSE_INT_H
1219 1225 $(LINTLIB):= LINTFLAGS64=-nvx -m64
1220 1226
1221 1227 # object files that depend on inline template
1222 1228 $(TIL:%=pics/%): $(LIBCBASE)/threads/amd64.il
1223 1229 # pics/mul64.o: crt/mul64.il
1224 1230
1225 1231 # include common libc targets
1226 1232 include ../Makefile.targ
1227 1233
1228 1234 # We need to strip out all CTF data from the static library
1229 1235 $(LIB_PIC) := DIR = pics
1230 1236 $(LIB_PIC): pics $$(PICS)
1231 1237 $(BUILD.AR)
1232 1238 $(MCS) -d -n .SUNW_ctf $@ > /dev/null 2>&1
1233 1239 $(AR) -ts $@ > /dev/null
1234 1240 $(POST_PROCESS_A)
1235 1241
1236 1242 ASSYMDEP_OBJS= \
1237 1243 _lwp_mutex_unlock.o \
1238 1244 _stack_grow.o \
1239 1245 asm_subr.o \
1240 1246 getcontext.o \
1241 1247 setjmp.o \
1242 1248 tls_get_addr.o \
1243 1249 vforkx.o
1244 1250
1245 1251 $(ASSYMDEP_OBJS:%=pics/%): assym.h
1246 1252
1247 1253 # assym.h build rules
1248 1254
1249 1255 GENASSYM_C = genassym.c
1250 1256
1251 1257 genassym: $(GENASSYM_C)
1252 1258 $(NATIVECC) $(NATIVE_CFLAGS) -Iinc -I$(LIBCDIR)/inc $(CPPFLAGS.native) \
1253 1259 -o $@ $(GENASSYM_C)
1254 1260
1255 1261 OFFSETS = $(LIBCDIR)/$(MACH)/offsets.in
1256 1262
1257 1263 assym.h: $(OFFSETS) genassym
1258 1264 $(OFFSETS_CREATE) <$(OFFSETS) >$@
1259 1265 ./genassym >>$@
1260 1266
1261 1267 # derived C source and related explicit dependencies
1262 1268 $(LIBCDIR)/port/gen/errlst.c + \
1263 1269 $(LIBCDIR)/port/gen/new_list.c: $(LIBCDIR)/port/gen/errlist $(LIBCDIR)/port/gen/errlist.awk
1264 1270 cd $(LIBCDIR)/port/gen; pwd; $(AWK) -f errlist.awk < errlist
1265 1271
1266 1272 pics/errlst.o: $(LIBCDIR)/port/gen/errlst.c
1267 1273
1268 1274 pics/new_list.o: $(LIBCDIR)/port/gen/new_list.c
↓ open down ↓ |
315 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX