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