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