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