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