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