Print this page
6648 illumos build should be explicit about C standards
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
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 27 # Copyright 2011 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 flock.o \
453 453 fls.o \
454 454 fmtmsg.o \
455 455 ftime.o \
456 456 ftok.o \
457 457 ftw.o \
458 458 gcvt.o \
459 459 getauxv.o \
460 460 getcwd.o \
461 461 getdate_err.o \
462 462 getdtblsize.o \
463 463 getentropy.o \
464 464 getenv.o \
465 465 getexecname.o \
466 466 getgrnam.o \
467 467 getgrnam_r.o \
468 468 gethostid.o \
469 469 gethostname.o \
470 470 gethz.o \
471 471 getisax.o \
472 472 getloadavg.o \
473 473 getlogin.o \
474 474 getmntent.o \
475 475 getnetgrent.o \
476 476 get_nprocs.o \
477 477 getopt.o \
478 478 getopt_long.o \
479 479 getpagesize.o \
480 480 getpw.o \
481 481 getpwnam.o \
482 482 getpwnam_r.o \
483 483 getrusage.o \
484 484 getspent.o \
485 485 getspent_r.o \
486 486 getsubopt.o \
487 487 gettxt.o \
488 488 getusershell.o \
489 489 getut.o \
490 490 getutx.o \
491 491 getvfsent.o \
492 492 getwd.o \
493 493 getwidth.o \
494 494 getxby_door.o \
495 495 gtxt.o \
496 496 hsearch.o \
497 497 iconv.o \
498 498 imaxabs.o \
499 499 imaxdiv.o \
500 500 index.o \
501 501 initgroups.o \
502 502 insque.o \
503 503 isaexec.o \
504 504 isastream.o \
505 505 isatty.o \
506 506 killpg.o \
507 507 klpdlib.o \
508 508 l64a.o \
509 509 lckpwdf.o \
510 510 lconstants.o \
511 511 ldivide.o \
512 512 lexp10.o \
513 513 lfind.o \
514 514 lfmt.o \
515 515 lfmt_log.o \
516 516 llabs.o \
517 517 lldiv.o \
518 518 llog10.o \
519 519 lltostr.o \
520 520 localtime.o \
521 521 lsearch.o \
522 522 madvise.o \
523 523 malloc.o \
524 524 memalign.o \
525 525 memmem.o \
526 526 mkdev.o \
527 527 mkdtemp.o \
528 528 mkfifo.o \
529 529 mkstemp.o \
530 530 mktemp.o \
531 531 mlock.o \
532 532 mlockall.o \
533 533 mon.o \
534 534 msync.o \
535 535 munlock.o \
536 536 munlockall.o \
537 537 ndbm.o \
538 538 nftw.o \
539 539 nlspath_checks.o \
540 540 nsparse.o \
541 541 nss_common.o \
542 542 nss_dbdefs.o \
543 543 nss_deffinder.o \
544 544 opendir.o \
545 545 opt_data.o \
546 546 perror.o \
547 547 pfmt.o \
548 548 pfmt_data.o \
549 549 pfmt_print.o \
550 550 pipe.o \
551 551 plock.o \
552 552 poll.o \
553 553 posix_fadvise.o \
554 554 posix_fallocate.o \
555 555 posix_madvise.o \
556 556 posix_memalign.o \
557 557 priocntl.o \
558 558 privlib.o \
559 559 priv_str_xlate.o \
560 560 psiginfo.o \
561 561 psignal.o \
562 562 pt.o \
563 563 putpwent.o \
564 564 putspent.o \
565 565 raise.o \
566 566 rand.o \
567 567 random.o \
568 568 rctlops.o \
569 569 readdir.o \
570 570 readdir_r.o \
571 571 realpath.o \
572 572 reboot.o \
573 573 regexpr.o \
574 574 remove.o \
575 575 rewinddir.o \
576 576 rindex.o \
577 577 scandir.o \
578 578 seekdir.o \
579 579 select.o \
580 580 select_large_fdset.o \
581 581 setlabel.o \
582 582 setpriority.o \
583 583 settimeofday.o \
584 584 sh_locks.o \
585 585 sigflag.o \
586 586 siglist.o \
587 587 sigsend.o \
588 588 sigsetops.o \
589 589 ssignal.o \
590 590 stack.o \
591 591 stpcpy.o \
592 592 stpncpy.o \
593 593 str2sig.o \
594 594 strcase_charmap.o \
595 595 strcat.o \
596 596 strchrnul.o \
597 597 strcspn.o \
598 598 strdup.o \
599 599 strerror.o \
600 600 strlcat.o \
601 601 strncat.o \
602 602 strndup.o \
603 603 strpbrk.o \
604 604 strrchr.o \
605 605 strsep.o \
606 606 strsignal.o \
607 607 strspn.o \
608 608 strstr.o \
609 609 strtod.o \
610 610 strtoimax.o \
611 611 strtok.o \
612 612 strtok_r.o \
613 613 strtoumax.o \
614 614 swab.o \
615 615 swapctl.o \
616 616 sysconf.o \
617 617 syslog.o \
618 618 tcdrain.o \
619 619 tcflow.o \
620 620 tcflush.o \
621 621 tcgetattr.o \
622 622 tcgetpgrp.o \
623 623 tcgetsid.o \
624 624 tcsendbreak.o \
625 625 tcsetattr.o \
626 626 tcsetpgrp.o \
627 627 tell.o \
628 628 telldir.o \
629 629 tfind.o \
630 630 time_data.o \
631 631 time_gdata.o \
632 632 tls_data.o \
633 633 truncate.o \
634 634 tsdalloc.o \
635 635 tsearch.o \
636 636 ttyname.o \
637 637 ttyslot.o \
638 638 ualarm.o \
639 639 ucred.o \
640 640 valloc.o \
641 641 vlfmt.o \
642 642 vpfmt.o \
643 643 waitpid.o \
644 644 walkstack.o \
645 645 wdata.o \
646 646 xgetwidth.o \
647 647 xpg4.o \
648 648 xpg6.o
649 649
650 650 PORTPRINT_W= \
651 651 doprnt_w.o
652 652
653 653 PORTPRINT= \
654 654 asprintf.o \
655 655 doprnt.o \
656 656 fprintf.o \
657 657 printf.o \
658 658 snprintf.o \
659 659 sprintf.o \
660 660 vfprintf.o \
661 661 vprintf.o \
662 662 vsnprintf.o \
663 663 vsprintf.o \
664 664 vwprintf.o \
665 665 wprintf.o
666 666
667 667 # c89 variants to support 32-bit size of c89 u/intmax_t (32-bit libc only)
668 668 PORTPRINT_C89= \
669 669 vfprintf_c89.o \
670 670 vprintf_c89.o \
671 671 vsnprintf_c89.o \
672 672 vsprintf_c89.o \
673 673 vwprintf_c89.o
674 674
675 675 PORTSTDIO_C89= \
676 676 vscanf_c89.o \
677 677 vwscanf_c89.o
678 678
679 679 # portable stdio objects that contain large file interfaces.
680 680 # Note: fopen64 is a special case, as we build it small.
681 681 PORTSTDIO64= \
682 682 fopen64.o \
683 683 fpos64.o
684 684
685 685 PORTSTDIO_W= \
686 686 doscan_w.o
687 687
688 688 PORTSTDIO= \
689 689 __extensions.o \
690 690 _endopen.o \
691 691 _filbuf.o \
692 692 _findbuf.o \
693 693 _flsbuf.o \
694 694 _wrtchk.o \
695 695 clearerr.o \
696 696 ctermid.o \
697 697 ctermid_r.o \
698 698 cuserid.o \
699 699 data.o \
700 700 doscan.o \
701 701 fdopen.o \
702 702 feof.o \
703 703 ferror.o \
704 704 fgetc.o \
705 705 fgets.o \
706 706 fileno.o \
707 707 flockf.o \
708 708 flush.o \
709 709 fopen.o \
710 710 fpos.o \
711 711 fputc.o \
712 712 fputs.o \
713 713 fread.o \
714 714 fseek.o \
715 715 fseeko.o \
716 716 ftell.o \
717 717 ftello.o \
718 718 fwrite.o \
719 719 getc.o \
720 720 getchar.o \
721 721 getline.o \
722 722 getpass.o \
723 723 gets.o \
724 724 getw.o \
725 725 popen.o \
726 726 putc.o \
727 727 putchar.o \
728 728 puts.o \
729 729 putw.o \
730 730 rewind.o \
731 731 scanf.o \
732 732 setbuf.o \
733 733 setbuffer.o \
734 734 setvbuf.o \
735 735 system.o \
736 736 tempnam.o \
737 737 tmpfile.o \
738 738 tmpnam_r.o \
739 739 ungetc.o \
740 740 mse.o \
741 741 vscanf.o \
742 742 vwscanf.o \
743 743 wscanf.o
744 744
745 745 PORTI18N= \
746 746 getwchar.o \
747 747 putwchar.o \
748 748 putws.o \
749 749 strtows.o \
750 750 wcsnlen.o \
751 751 wcstoimax.o \
752 752 wcstol.o \
753 753 wcstoul.o \
754 754 wcswcs.o \
755 755 wscat.o \
756 756 wschr.o \
757 757 wscmp.o \
758 758 wscpy.o \
759 759 wscspn.o \
760 760 wsdup.o \
761 761 wslen.o \
762 762 wsncat.o \
763 763 wsncmp.o \
764 764 wsncpy.o \
765 765 wspbrk.o \
766 766 wsprintf.o \
767 767 wsrchr.o \
768 768 wsscanf.o \
769 769 wsspn.o \
770 770 wstod.o \
771 771 wstok.o \
772 772 wstol.o \
773 773 wstoll.o \
774 774 wsxfrm.o \
775 775 wmemchr.o \
776 776 wmemcmp.o \
777 777 wmemcpy.o \
778 778 wmemmove.o \
779 779 wmemset.o \
780 780 wcsstr.o \
781 781 gettext.o \
782 782 gettext_real.o \
783 783 gettext_util.o \
784 784 gettext_gnu.o \
785 785 plural_parser.o \
786 786 wdresolve.o \
787 787 _ctype.o \
788 788 isascii.o \
789 789 toascii.o
790 790
791 791 PORTI18N_COND= \
792 792 wcstol_longlong.o \
793 793 wcstoul_longlong.o
794 794
795 795 PORTLOCALE= \
796 796 big5.o \
797 797 btowc.o \
798 798 collate.o \
799 799 collcmp.o \
800 800 euc.o \
801 801 fnmatch.o \
802 802 fgetwc.o \
803 803 fgetws.o \
804 804 fix_grouping.o \
805 805 fputwc.o \
806 806 fputws.o \
807 807 fwide.o \
808 808 gb18030.o \
809 809 gb2312.o \
810 810 gbk.o \
811 811 getdate.o \
812 812 isdigit.o \
813 813 iswctype.o \
814 814 ldpart.o \
815 815 lmessages.o \
816 816 lnumeric.o \
817 817 lmonetary.o \
818 818 localeimpl.o \
819 819 localeconv.o \
820 820 mbftowc.o \
821 821 mblen.o \
822 822 mbrlen.o \
823 823 mbrtowc.o \
824 824 mbsinit.o \
825 825 mbsnrtowcs.o \
826 826 mbsrtowcs.o \
827 827 mbstowcs.o \
828 828 mbtowc.o \
829 829 mskanji.o \
830 830 nextwctype.o \
831 831 nl_langinfo.o \
832 832 none.o \
833 833 regcomp.o \
834 834 regfree.o \
835 835 regerror.o \
836 836 regexec.o \
837 837 rune.o \
838 838 runetype.o \
839 839 setlocale.o \
840 840 setrunelocale.o \
841 841 strcasecmp.o \
842 842 strcasestr.o \
843 843 strcoll.o \
844 844 strfmon.o \
845 845 strftime.o \
846 846 strncasecmp.o \
847 847 strptime.o \
848 848 strxfrm.o \
849 849 table.o \
850 850 timelocal.o \
851 851 tolower.o \
852 852 towlower.o \
853 853 ungetwc.o \
854 854 utf8.o \
855 855 wcrtomb.o \
856 856 wcscasecmp.o \
857 857 wcscoll.o \
858 858 wcsftime.o \
859 859 wcsnrtombs.o \
860 860 wcsrtombs.o \
861 861 wcstombs.o \
862 862 wcswidth.o \
863 863 wcsxfrm.o \
864 864 wctob.o \
865 865 wctomb.o \
866 866 wctrans.o \
867 867 wctype.o \
868 868 wcwidth.o \
869 869 wscol.o
870 870
871 871 AIOOBJS= \
872 872 aio.o \
873 873 aio_alloc.o \
874 874 posix_aio.o
875 875
876 876 RTOBJS= \
877 877 clock_timer.o \
878 878 mqueue.o \
879 879 pos4obj.o \
880 880 sched.o \
881 881 sem.o \
882 882 shm.o \
883 883 sigev_thread.o
884 884
885 885 TPOOLOBJS= \
886 886 thread_pool.o
887 887
888 888 THREADSOBJS= \
889 889 alloc.o \
890 890 assfail.o \
891 891 cancel.o \
892 892 door_calls.o \
893 893 tmem.o \
894 894 pthr_attr.o \
895 895 pthr_barrier.o \
896 896 pthr_cond.o \
897 897 pthr_mutex.o \
898 898 pthr_rwlock.o \
899 899 pthread.o \
900 900 rwlock.o \
901 901 scalls.o \
902 902 sema.o \
903 903 sigaction.o \
904 904 spawn.o \
905 905 synch.o \
906 906 tdb_agent.o \
907 907 thr.o \
908 908 thread_interface.o \
909 909 tls.o \
910 910 tsd.o
911 911
912 912 THREADSMACHOBJS= \
913 913 machdep.o
914 914
915 915 THREADSASMOBJS= \
916 916 asm_subr.o
917 917
918 918 UNICODEOBJS= \
919 919 u8_textprep.o \
920 920 uconv.o
921 921
922 922 UNWINDMACHOBJS= \
923 923 unwind.o
924 924
925 925 UNWINDASMOBJS= \
926 926 unwind_frame.o
927 927
928 928 # objects that implement the transitional large file API
929 929 PORTSYS64= \
930 930 lockf64.o \
931 931 stat64.o
932 932
933 933 PORTSYS= \
934 934 _autofssys.o \
935 935 access.o \
936 936 acctctl.o \
937 937 bsd_signal.o \
938 938 chmod.o \
939 939 chown.o \
940 940 corectl.o \
941 941 epoll.o \
942 942 eventfd.o \
943 943 exacctsys.o \
944 944 execl.o \
945 945 execle.o \
946 946 execv.o \
947 947 fcntl.o \
948 948 getpagesizes.o \
949 949 getpeerucred.o \
950 950 inst_sync.o \
951 951 issetugid.o \
952 952 label.o \
953 953 link.o \
954 954 lockf.o \
955 955 lwp.o \
956 956 lwp_cond.o \
957 957 lwp_rwlock.o \
958 958 lwp_sigmask.o \
959 959 meminfosys.o \
960 960 mkdir.o \
961 961 mknod.o \
962 962 msgsys.o \
963 963 nfssys.o \
964 964 open.o \
965 965 pgrpsys.o \
966 966 posix_sigwait.o \
967 967 ppriv.o \
968 968 psetsys.o \
969 969 rctlsys.o \
970 970 readlink.o \
971 971 rename.o \
972 972 sbrk.o \
973 973 semsys.o \
974 974 set_errno.o \
975 975 sharefs.o \
976 976 shmsys.o \
977 977 sidsys.o \
978 978 siginterrupt.o \
979 979 signal.o \
980 980 signalfd.o \
981 981 sigpending.o \
982 982 sigstack.o \
983 983 stat.o \
984 984 symlink.o \
985 985 tasksys.o \
986 986 time.o \
987 987 time_util.o \
988 988 timerfd.o \
989 989 ucontext.o \
990 990 unlink.o \
991 991 ustat.o \
992 992 utimesys.o \
993 993 zone.o
994 994
995 995 PORTREGEX= \
996 996 glob.o \
997 997 regcmp.o \
998 998 regex.o \
999 999 wordexp.o
1000 1000
1001 1001 PORTREGEX64= \
1002 1002 glob64.o
1003 1003
1004 1004 VALUES= values-Xa.o
1005 1005
1006 1006 MOSTOBJS= \
1007 1007 $(STRETS) \
1008 1008 $(CRTOBJS) \
1009 1009 $(DYNOBJS) \
1010 1010 $(FPOBJS) \
1011 1011 $(FPASMOBJS) \
1012 1012 $(ATOMICOBJS) \
1013 1013 $(CHACHAOBJS) \
1014 1014 $(XATTROBJS) \
1015 1015 $(COMOBJS) \
1016 1016 $(DTRACEOBJS) \
1017 1017 $(GENOBJS) \
1018 1018 $(PRFOBJS) \
1019 1019 $(PORTFP) \
1020 1020 $(PORTGEN) \
1021 1021 $(PORTGEN64) \
1022 1022 $(PORTI18N) \
1023 1023 $(PORTI18N_COND) \
1024 1024 $(PORTLOCALE) \
1025 1025 $(PORTPRINT) \
1026 1026 $(PORTPRINT_C89) \
1027 1027 $(PORTPRINT_W) \
1028 1028 $(PORTREGEX) \
1029 1029 $(PORTREGEX64) \
1030 1030 $(PORTSTDIO) \
1031 1031 $(PORTSTDIO64) \
1032 1032 $(PORTSTDIO_C89) \
1033 1033 $(PORTSTDIO_W) \
1034 1034 $(PORTSYS) \
1035 1035 $(PORTSYS64) \
1036 1036 $(AIOOBJS) \
1037 1037 $(RTOBJS) \
1038 1038 $(TPOOLOBJS) \
1039 1039 $(THREADSOBJS) \
1040 1040 $(THREADSMACHOBJS) \
1041 1041 $(THREADSASMOBJS) \
1042 1042 $(UNICODEOBJS) \
1043 1043 $(UNWINDMACHOBJS) \
1044 1044 $(UNWINDASMOBJS) \
1045 1045 $(COMSYSOBJS) \
1046 1046 $(SYSOBJS) \
1047 1047 $(COMSYSOBJS64) \
1048 1048 $(SYSOBJS64) \
1049 1049 $(VALUES)
1050 1050
1051 1051 TRACEOBJS= \
1052 1052 plockstat.o
1053 1053
1054 1054 # NOTE: libc.so.1 must be linked with the minimal crti.o and crtn.o
1055 1055 # modules whose source is provided in the $(SRC)/lib/common directory.
1056 1056 # This must be done because otherwise the Sun C compiler would insert
1057 1057 # its own versions of these modules and those versions contain code
1058 1058 # to call out to C++ initialization functions. Such C++ initialization
1059 1059 # functions can call back into libc before thread initialization is
1060 1060 # complete and this leads to segmentation violations and other problems.
1061 1061 # Since libc contains no C++ code, linking with the minimal crti.o and
1062 1062 # crtn.o modules is safe and avoids the problems described above.
1063 1063 OBJECTS= $(CRTI) $(MOSTOBJS) $(CRTN)
1064 1064 CRTSRCS= ../../common/sparc
1065 1065
1066 1066 # include common library definitions
1067 1067 include $(SRC)/lib/Makefile.lib
1068 1068
1069 1069 # we need to override the default SONAME here because we might
1070 1070 # be building a variant object (still libc.so.1, but different filename)
1071 1071 SONAME = libc.so.1
1072 1072
1073 1073 CFLAGS += $(CCVERBOSE)
1074 1074
1075 1075 # This is necessary to avoid problems with calling _ex_unwind().
1076 1076 # We probably don't want any inlining anyway.
1077 1077 CFLAGS += -xinline=
1078 1078
1079 1079 CERRWARN += -_gcc=-Wno-parentheses
1080 1080 CERRWARN += -_gcc=-Wno-switch
1081 1081 CERRWARN += -_gcc=-Wno-uninitialized
1082 1082 CERRWARN += -_gcc=-Wno-unused-value
1083 1083 CERRWARN += -_gcc=-Wno-unused-label
1084 1084 CERRWARN += -_gcc=-Wno-unused-variable
1085 1085 CERRWARN += -_gcc=-Wno-type-limits
1086 1086 CERRWARN += -_gcc=-Wno-char-subscripts
1087 1087 CERRWARN += -_gcc=-Wno-clobbered
1088 1088 CERRWARN += -_gcc=-Wno-unused-function
1089 1089 CERRWARN += -_gcc=-Wno-address
1090 1090
1091 1091 # Setting THREAD_DEBUG = -DTHREAD_DEBUG (make THREAD_DEBUG=-DTHREAD_DEBUG ...)
1092 1092 # enables ASSERT() checking in the threads portion of the library.
1093 1093 # This is automatically enabled for DEBUG builds, not for non-debug builds.
1094 1094 THREAD_DEBUG =
1095 1095 $(NOT_RELEASE_BUILD)THREAD_DEBUG = -DTHREAD_DEBUG
1096 1096
1097 1097 # Make string literals read-only to save memory.
1098 1098 CFLAGS += $(XSTRCONST)
1099 1099
1100 1100 ALTPICS= $(TRACEOBJS:%=pics/%)
1101 1101
1102 1102 $(DYNLIB) := BUILD.SO = $(LD) -o $@ -G $(DYNFLAGS) $(PICS) $(ALTPICS) $(EXTPICS)
1103 1103
1104 1104 MAPFILES = $(LIBCDIR)/port/mapfile-vers
1105 1105
1106 1106 CFLAGS += $(EXTN_CFLAGS)
1107 1107 CPPFLAGS= -D_REENTRANT -Dsparc $(EXTN_CPPFLAGS) $(THREAD_DEBUG) \
1108 1108 -I$(LIBCBASE)/inc -I$(LIBCDIR)/inc $(CPPFLAGS.master)
1109 1109 ASFLAGS= $(EXTN_ASFLAGS) -K pic -P -D__STDC__ -D_ASM $(CPPFLAGS) $(sparc_AS_XARCH)
1110 1110
1111 1111 # As a favor to the dtrace syscall provider, libc still calls the
1112 1112 # old syscall traps that have been obsoleted by the *at() interfaces.
1113 1113 # Delete this to compile libc using only the new *at() system call traps
1114 1114 CPPFLAGS += -D_RETAIN_OLD_SYSCALLS
1115 1115
1116 1116 # Inform the run-time linker about libc specialized initialization
1117 1117 RTLDINFO = -z rtldinfo=tls_rtldinfo
1118 1118 DYNFLAGS += $(RTLDINFO)
1119 1119
1120 1120 # Force libc's internal references to be resolved immediately upon loading
1121 1121 # in order to avoid critical region problems. Since almost all libc symbols
1122 1122 # are marked 'protected' in the mapfiles, this is a minimal set (15 to 20).
1123 1123 DYNFLAGS += -znow
1124 1124
1125 1125 DYNFLAGS += -e __rtboot
1126 1126 DYNFLAGS += $(EXTN_DYNFLAGS)
1127 1127
1128 1128 # Inform the kernel about the initial DTrace area (in case
1129 1129 # libc is being used as the interpreter / runtime linker).
1130 1130 DTRACE_DATA = -zdtrace=dtrace_data
1131 1131 DYNFLAGS += $(DTRACE_DATA)
1132 1132
1133 1133 # DTrace needs an executable data segment.
1134 1134 MAPFILE.NED=
1135 1135
1136 1136 BUILD.s= $(AS) $(ASFLAGS) $< -o $@
1137 1137
1138 1138 # Override this top level flag so the compiler builds in its native
1139 1139 # C99 mode. This has been enabled to support the complex arithmetic
1140 1140 # added to libc.
1141 1141 C99MODE= $(C99_ENABLE)
1142 1142
1143 1143 # libc method of building an archive
1144 1144 # The "$(GREP) -v ' L '" part is necessary only until
1145 1145 # lorder is fixed to ignore thread-local variables.
1146 1146 BUILD.AR= $(RM) $@ ; \
1147 1147 $(AR) q $@ `$(LORDER) $(MOSTOBJS:%=$(DIR)/%) | $(GREP) -v ' L ' | $(TSORT)`
1148 1148
1149 1149 # extra files for the clean target
1150 1150 CLEANFILES= \
1151 1151 $(LIBCDIR)/port/gen/errlst.c \
1152 1152 $(LIBCDIR)/port/gen/new_list.c \
1153 1153 assym.h \
1154 1154 genassym \
1155 1155 $(LIBCBASE)/crt/_rtld.s \
1156 1156 $(LIBCBASE)/crt/_rtbootld.s \
1157 1157 pics/_rtbootld.o \
1158 1158 pics/crti.o \
1159 1159 pics/crtn.o \
1160 1160 $(ALTPICS)
1161 1161
1162 1162 CLOBBERFILES += $(LIB_PIC)
1163 1163
1164 1164 # list of C source for lint
1165 1165 SRCS= \
1166 1166 $(ATOMICOBJS:%.o=$(SRC)/common/atomic/%.c) \
1167 1167 $(XATTROBJS:%.o=$(SRC)/common/xattr/%.c) \
1168 1168 $(COMOBJS:%.o=$(SRC)/common/util/%.c) \
1169 1169 $(DTRACEOBJS:%.o=$(SRC)/common/dtrace/%.c) \
1170 1170 $(PORTFP:%.o=$(LIBCDIR)/port/fp/%.c) \
1171 1171 $(PORTGEN:%.o=$(LIBCDIR)/port/gen/%.c) \
1172 1172 $(PORTI18N:%.o=$(LIBCDIR)/port/i18n/%.c) \
1173 1173 $(PORTLOCALE:%.o=$(LIBCDIR)/port/locale/%.c) \
1174 1174 $(PORTPRINT:%.o=$(LIBCDIR)/port/print/%.c) \
1175 1175 $(PORTREGEX:%.o=$(LIBCDIR)/port/regex/%.c) \
1176 1176 $(PORTSTDIO:%.o=$(LIBCDIR)/port/stdio/%.c) \
1177 1177 $(PORTSYS:%.o=$(LIBCDIR)/port/sys/%.c) \
1178 1178 $(AIOOBJS:%.o=$(LIBCDIR)/port/aio/%.c) \
1179 1179 $(RTOBJS:%.o=$(LIBCDIR)/port/rt/%.c) \
1180 1180 $(TPOOLOBJS:%.o=$(LIBCDIR)/port/tpool/%.c) \
1181 1181 $(THREADSOBJS:%.o=$(LIBCDIR)/port/threads/%.c) \
1182 1182 $(THREADSMACHOBJS:%.o=$(LIBCDIR)/$(MACH)/threads/%.c) \
1183 1183 $(UNICODEOBJS:%.o=$(SRC)/common/unicode/%.c) \
1184 1184 $(UNWINDMACHOBJS:%.o=$(LIBCDIR)/port/unwind/%.c) \
1185 1185 $(FPOBJS:%.o=$(LIBCDIR)/$(MACH)/fp/%.c) \
1186 1186 $(LIBCBASE)/crt/_ftou.c \
1187 1187 $(LIBCBASE)/gen/_xregs_clrptr.c \
1188 1188 $(LIBCBASE)/gen/byteorder.c \
1189 1189 $(LIBCBASE)/gen/ecvt.c \
1190 1190 $(LIBCBASE)/gen/getctxt.c \
1191 1191 $(LIBCBASE)/gen/lmul.c \
1192 1192 $(LIBCBASE)/gen/makectxt.c \
1193 1193 $(LIBCBASE)/gen/siginfolst.c \
1194 1194 $(LIBCBASE)/gen/siglongjmp.c \
1195 1195 $(LIBCBASE)/gen/swapctxt.c \
1196 1196 $(LIBCBASE)/sys/ptrace.c \
1197 1197 $(LIBCBASE)/sys/uadmin.c
1198 1198
1199 1199 # conditional assignments
1200 1200 $(DYNLIB) := CRTI = crti.o
1201 1201 $(DYNLIB) := CRTN = crtn.o
1202 1202
1203 1203 # Files which need the threads .il inline template
1204 1204 TIL= \
1205 1205 aio.o \
1206 1206 alloc.o \
1207 1207 assfail.o \
1208 1208 atexit.o \
1209 1209 atfork.o \
1210 1210 cancel.o \
1211 1211 door_calls.o \
1212 1212 err.o \
1213 1213 errno.o \
1214 1214 getctxt.o \
1215 1215 lwp.o \
1216 1216 ma.o \
1217 1217 machdep.o \
1218 1218 posix_aio.o \
1219 1219 pthr_attr.o \
1220 1220 pthr_barrier.o \
1221 1221 pthr_cond.o \
1222 1222 pthr_mutex.o \
1223 1223 pthr_rwlock.o \
1224 1224 pthread.o \
1225 1225 rand.o \
1226 1226 rwlock.o \
1227 1227 scalls.o \
1228 1228 sched.o \
1229 1229 sema.o \
1230 1230 sigaction.o \
1231 1231 sigev_thread.o \
1232 1232 spawn.o \
1233 1233 stack.o \
1234 1234 swapctxt.o \
1235 1235 synch.o \
1236 1236 tdb_agent.o \
1237 1237 thr.o \
1238 1238 thread_interface.o \
1239 1239 thread_pool.o \
1240 1240 tls.o \
1241 1241 tsd.o \
1242 1242 unwind.o
1243 1243
1244 1244 $(TIL:%=pics/%) := CFLAGS += $(LIBCBASE)/threads/sparc.il
1245 1245
1246 1246 # special kludge for inlines with 'cas':
1247 1247 pics/rwlock.o pics/synch.o pics/lwp.o pics/door_calls.o := \
1248 1248 sparc_CFLAGS += -_gcc=-Wa,-xarch=v8plus
1249 1249
1250 1250 # Files in port/fp subdirectory that need base.il inline template
1251 1251 IL= \
1252 1252 __flt_decim.o \
1253 1253 decimal_bin.o
1254 1254
1255 1255 $(IL:%=pics/%) := CFLAGS += $(LIBCBASE)/fp/base.il
1256 1256
1257 1257 # Files in fp subdirectory which need __quad.il inline template
1258 1258 QIL= \
1259 1259 _Q_add.o \
1260 1260 _Q_cmp.o \
1261 1261 _Q_cmpe.o \
1262 1262 _Q_div.o \
1263 1263 _Q_dtoq.o \
1264 1264 _Q_fcc.o \
1265 1265 _Q_mul.o \
1266 1266 _Q_qtod.o \
1267 1267 _Q_qtoi.o \
1268 1268 _Q_qtos.o \
1269 1269 _Q_qtou.o \
1270 1270 _Q_sqrt.o \
1271 1271 _Q_stoq.o \
1272 1272 _Q_sub.o
1273 1273
1274 1274 $(QIL:%=pics/%) := CFLAGS += $(LIBCDIR)/$(MACH)/fp/__quad.il
1275 1275 pics/_Q%.o := sparc_COPTFLAG = -xO4 -dalign
1276 1276 pics/__quad%.o := sparc_COPTFLAG = -xO4 -dalign
1277 1277
1278 1278 # large-file-aware components that should be built large
1279 1279
1280 1280 $(COMSYSOBJS64:%=pics/%) := \
1281 1281 CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
1282 1282
1283 1283 $(SYSOBJS64:%=pics/%) := \
1284 1284 CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
1285 1285
1286 1286 $(PORTGEN64:%=pics/%) := \
1287 1287 CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
1288 1288
1289 1289 $(PORTREGEX64:%=pics/%) := \
1290 1290 CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
1291 1291
1292 1292 $(PORTSTDIO64:%=pics/%) := \
1293 1293 CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
1294 1294
1295 1295 $(PORTSYS64:%=pics/%) := \
1296 1296 CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
1297 1297
1298 1298 $(PORTSTDIO_W:%=pics/%) := \
1299 1299 CPPFLAGS += -D_WIDE
1300 1300
1301 1301 $(PORTPRINT_W:%=pics/%) := \
1302 1302 CPPFLAGS += -D_WIDE
1303 1303
1304 1304 # printf/scanf functions to support c89-sized intmax_t variables
1305 1305 $(PORTPRINT_C89:%=pics/%) := \
1306 1306 CPPFLAGS += -D_C89_INTMAX32
1307 1307
1308 1308 $(PORTSTDIO_C89:%=pics/%) := \
1309 1309 CPPFLAGS += -D_C89_INTMAX32
1310 1310
1311 1311 $(PORTI18N_COND:%=pics/%) := \
1312 1312 CPPFLAGS += -D_WCS_LONGLONG
1313 1313
1314 1314 pics/arc4random.o := CPPFLAGS += -I$(SRC)/common/crypto/chacha
1315 1315
1316 1316 # Files which need extra optimization
1317 1317 pics/getenv.o := sparc_COPTFLAG = -xO4
1318 1318
1319 1319 .KEEP_STATE:
1320 1320
1321 1321 all: $(LIBS) $(LIB_PIC)
1322 1322
1323 1323 lint := CPPFLAGS += -I$(LIBCDIR)/$(MACH)/fp
1324 1324 lint := CPPFLAGS += -D_MSE_INT_H -D_LCONV_C99
1325 1325 lint := LINTFLAGS += -mn
1326 1326
1327 1327 lint:
1328 1328 @echo $(LINT.c) ... $(LDLIBS)
1329 1329 @$(LINT.c) $(SRCS) $(LDLIBS)
1330 1330
1331 1331 $(LINTLIB):= SRCS=$(LIBCDIR)/port/llib-lc
1332 1332 $(LINTLIB):= CPPFLAGS += -D_MSE_INT_H
1333 1333 $(LINTLIB):= LINTFLAGS=-nvx
1334 1334
1335 1335 # object files that depend on inline template
1336 1336 $(TIL:%=pics/%): $(LIBCBASE)/threads/sparc.il
1337 1337 $(IL:%=pics/%): $(LIBCBASE)/fp/base.il
1338 1338 $(QIL:%=pics/%): $(LIBCDIR)/$(MACH)/fp/__quad.il
1339 1339
1340 1340 # include common libc targets
1341 1341 include $(LIBCDIR)/Makefile.targ
1342 1342
1343 1343 # We need to strip out all CTF and DOF data from the static library
1344 1344 $(LIB_PIC) := DIR = pics
1345 1345 $(LIB_PIC): pics $$(PICS)
1346 1346 $(BUILD.AR)
1347 1347 $(MCS) -d -n .SUNW_ctf $@ > /dev/null 2>&1
1348 1348 $(MCS) -d -n .SUNW_dof $@ > /dev/null 2>&1
1349 1349 $(AR) -ts $@ > /dev/null
1350 1350 $(POST_PROCESS_A)
1351 1351
1352 1352 # special cases
1353 1353 $(STRETS:%=pics/%): $(LIBCBASE)/crt/stret.s
1354 1354 $(AS) $(ASFLAGS) -DSTRET$(@F:stret%.o=%) $(LIBCBASE)/crt/stret.s -o $@
1355 1355 $(POST_PROCESS_O)
1356 1356
1357 1357 $(LIBCBASE)/crt/_rtbootld.s: $(LIBCBASE)/crt/_rtboot.s $(LIBCBASE)/crt/_rtld.c
1358 1358 $(CC) $(CPPFLAGS) $(CTF_FLAGS) -O -S -K pic \
1359 1359 $(LIBCBASE)/crt/_rtld.c -o $(LIBCBASE)/crt/_rtld.s
1360 1360 $(CAT) $(LIBCBASE)/crt/_rtboot.s $(LIBCBASE)/crt/_rtld.s > $@
1361 1361 $(RM) $(LIBCBASE)/crt/_rtld.s
1362 1362
1363 1363 # partially built from C source
1364 1364 pics/_rtbootld.o: $(LIBCBASE)/crt/_rtbootld.s
1365 1365 $(AS) $(ASFLAGS) $(LIBCBASE)/crt/_rtbootld.s -o $@
1366 1366 $(CTFCONVERT_O)
1367 1367
1368 1368 ASSYMDEP_OBJS= \
1369 1369 _lwp_mutex_unlock.o \
1370 1370 _stack_grow.o \
1371 1371 asm_subr.o \
1372 1372 setjmp.o \
1373 1373 smt_pause.o \
1374 1374 tls_get_addr.o \
1375 1375 unwind_frame.o \
1376 1376 vforkx.o
1377 1377
1378 1378 $(ASSYMDEP_OBJS:%=pics/%) := CPPFLAGS += -I.
↓ open down ↓ |
1378 lines elided |
↑ open up ↑ |
1379 1379
1380 1380 $(ASSYMDEP_OBJS:%=pics/%): assym.h
1381 1381
1382 1382 # assym.h build rules
1383 1383
1384 1384 assym.h := CFLAGS += -g
1385 1385
1386 1386 GENASSYM_C = $(LIBCDIR)/$(MACH)/genassym.c
1387 1387
1388 1388 genassym: $(GENASSYM_C)
1389 - $(NATIVECC) -I$(LIBCBASE)/inc -I$(LIBCDIR)/inc \
1389 + $(NATIVECC) $(NATIVE_CFLAGS) -I$(LIBCBASE)/inc -I$(LIBCDIR)/inc \
1390 1390 $(CPPFLAGS.native) -o $@ $(GENASSYM_C)
1391 1391
1392 1392 OFFSETS = $(LIBCDIR)/$(MACH)/offsets.in
1393 1393
1394 1394 assym.h: $(OFFSETS) genassym
1395 1395 $(OFFSETS_CREATE) <$(OFFSETS) >$@
1396 1396 ./genassym >>$@
1397 1397
1398 1398 # derived C source and related explicit dependencies
1399 1399 $(LIBCDIR)/port/gen/errlst.c + \
1400 1400 $(LIBCDIR)/port/gen/new_list.c: $(LIBCDIR)/port/gen/errlist $(LIBCDIR)/port/gen/errlist.awk
1401 1401 cd $(LIBCDIR)/port/gen; pwd; $(AWK) -f errlist.awk < errlist
1402 1402
1403 1403 pics/errlst.o: $(LIBCDIR)/port/gen/errlst.c
1404 1404
1405 1405 pics/new_list.o: $(LIBCDIR)/port/gen/new_list.c
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX