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