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