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