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