Makefile revision d09832051bb4b41ce2b3202c09fceedc089678af
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# CDDL HEADER START
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# The contents of this file are subject to the terms of the
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Common Development and Distribution License (the "License").
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# You may not use this file except in compliance with the License.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# or http://www.opensolaris.org/os/licensing.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# See the License for the specific language governing permissions
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# and limitations under the License.
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# When distributing Covered Code, include this CDDL HEADER in each
5dbfd19ad5fcc2b779f40f80fa05c1bd28fd0b4eTheo Schlossnagle# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov# If applicable, add the following below this CDDL HEADER, with the
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov# fields enclosed by brackets "[]" replaced with your own identifying
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# information: Portions Copyright [yyyy] [name of copyright owner]
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# CDDL HEADER END
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Use is subject to license terms.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweLIBCBASE=.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweLIBRARY= libc.a
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweLIB_PIC= libc_pic.a
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweVERS= .1
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweCPP= /usr/lib/cpp
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweTARGET_ARCH= amd64
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# objects are grouped by source directory
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# local objects
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweSTRETS=
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweCRTOBJS= \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe cerror.o
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweDYNOBJS=
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweFPOBJS= \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe _base_il.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe fpgetmask.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe fpgetround.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe fpsetmask.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe fpsetround.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe fpstart.o
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweI386FPOBJS= \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe _D_cplx_div.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe _D_cplx_div_ix.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe _D_cplx_div_rx.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe _D_cplx_lr_div.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe _D_cplx_lr_div_ix.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe _D_cplx_lr_div_rx.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe _D_cplx_mul.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe _F_cplx_div.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe _F_cplx_div_ix.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe _F_cplx_div_rx.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe _F_cplx_lr_div.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe _F_cplx_lr_div_ix.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe _F_cplx_lr_div_rx.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe _F_cplx_mul.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe _X_cplx_div.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe _X_cplx_div_ix.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe _X_cplx_div_rx.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe _X_cplx_lr_div.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe _X_cplx_lr_div_ix.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe _X_cplx_lr_div_rx.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe _X_cplx_mul.o
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweFPASMOBJS= \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe __xgetRD.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe _xtoll.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe _xtoull.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe fpcw.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe fpgetsticky.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe fpsetsticky.o
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweATOMICOBJS= \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe atomic.o
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweXATTROBJS= \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe xattr_common.o
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweCOMOBJS= \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe bcmp.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe bcopy.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe bsearch.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe bzero.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe ffs.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe qsort.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe strtol.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe strtoul.o
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweGENOBJS= \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe _getsp.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe abs.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe alloca.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe attrat.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe byteorder.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe cache.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe cuexit.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe ecvt.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe errlst.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe amd64_data.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe ldivide.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe lock.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe makectxt.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe memccpy.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe memchr.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe memcmp.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe memcpy.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe memset.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe new_list.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe proc64_id.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe proc64_support.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe setjmp.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe siginfolst.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe siglongjmp.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe strcmp.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe strcpy.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe strlen.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe strncmp.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe strncpy.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe strnlen.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe sync_instruction_memory.o
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Preserved solely to ease maintenance of 32-bit and 64-bit library builds
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# This macro should ALWAYS be empty; native APIs are already 'large file'.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweCOMSYSOBJS64=
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweSYSOBJS64=
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweCOMSYSOBJS= \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe __clock_timer.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe __getloadavg.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe __rusagesys.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe __signotify.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe __sigrt.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe __time.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe _lgrp_home_fast.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe _lgrpsys.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe _nfssys.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe _portfs.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe _pset.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe _rpcsys.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe _sigaction.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe _so_accept.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe _so_bind.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe _so_connect.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe _so_getpeername.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe _so_getsockname.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe _so_getsockopt.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe _so_listen.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe _so_recv.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe _so_recvfrom.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe _so_recvmsg.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe _so_send.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe _so_sendmsg.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe _so_sendto.o \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov _so_setsockopt.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe _so_shutdown.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe _so_socket.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe _so_socketpair.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe _sockconfig.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe access.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe acct.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe acl.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe adjtime.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe alarm.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe brk.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe chdir.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe chmod.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe chown.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe chroot.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe cladm.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe close.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe creat.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe dup.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe execve.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe exit.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe facl.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe fchdir.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe fchmod.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe fchown.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe fchroot.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe fcntl.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe fdsync.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe fpathconf.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe fstat.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe fstatfs.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe fstatvfs.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe getcpuid.o \
03c1ea085b2a65a7bf9c001ba8502eb10725ea52Robert Mustacchi getdents.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe getegid.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe geteuid.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe getgid.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe getgroups.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe gethrtime.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe getitimer.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe getmsg.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe getpid.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe getpmsg.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe getppid.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe getrlimit.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe getuid.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe gtty.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe install_utrap.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe ioctl.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe kaio.o \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov kill.o \
088940da40dfd58e4a00927addc99837dbefaa6dRobert Mustacchi lchown.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe link.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe llseek.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe lseek.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe lstat.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe mmapobjsys.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe memcntl.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe mincore.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe mkdir.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe mknod.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe mmap.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe modctl.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe mount.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe mprotect.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe munmap.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe nice.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe ntp_adjtime.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe ntp_gettime.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe open.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe p_online.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe pathconf.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe pause.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe pcsample.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe pollsys.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe pread.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe priocntlset.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe processor_bind.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe processor_info.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe profil.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe putmsg.o \
03c1ea085b2a65a7bf9c001ba8502eb10725ea52Robert Mustacchi putpmsg.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe pwrite.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe read.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe readlink.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe readv.o \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov rename.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe resolvepath.o \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov rmdir.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe seteguid.o \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov setgid.o \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov setgroups.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe setitimer.o \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov setreid.o \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov setrlimit.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe setuid.o \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov sigaltstk.o \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov sigprocmsk.o \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov sigsendset.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe sigsuspend.o \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov stat.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe statfs.o \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov statvfs.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe stty.o \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov symlink.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe sync.o \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov sysconfig.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe sysfs.o \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov sysinfo.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe syslwp.o \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov times.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe ulimit.o \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov umask.o \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov umount2.o \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov unlink.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe utime.o \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov utimes.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe utssys.o \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov uucopy.o \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov vhangup.o \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov waitid.o \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov write.o \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov writev.o \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov yield.o
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri PankovSYSOBJS= \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov __clock_gettime.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe __getcontext.o \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov __uadmin.o \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov _lwp_mutex_unlock.o \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov _stack_grow.o \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov door.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe forkx.o \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov forkallx.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe fxstat.o \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov getcontext.o \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov gettimeofday.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe lwp_private.o \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov lxstat.o \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov nuname.o \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov pipe.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe syscall.o \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov sysi86.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe tls_get_addr.o \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov uadmin.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe umount.o \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov uname.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe vforkx.o \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov xmknod.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe xstat.o
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Preserved solely to ease maintenance of 32-bit and 64-bit library builds
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov# This macro should ALWAYS be empty; native APIs are already 'large file'.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LowePORTGEN64=
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# objects from source under ../port
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri PankovPORTFP= \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov __flt_decim.o \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov __flt_rounds.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe __tbl_10_b.o \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov __tbl_10_h.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe __tbl_10_s.o \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov __tbl_2_b.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe __tbl_2_h.o \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov __tbl_2_s.o \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov __tbl_fdq.o \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov __tbl_tens.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe __x_power.o \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov _base_sup.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe aconvert.o \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov decimal_bin.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe double_decim.o \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov econvert.o \
5dbfd19ad5fcc2b779f40f80fa05c1bd28fd0b4eTheo Schlossnagle fconvert.o \
088940da40dfd58e4a00927addc99837dbefaa6dRobert Mustacchi file_decim.o \
088940da40dfd58e4a00927addc99837dbefaa6dRobert Mustacchi finite.o \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov fp_data.o \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov func_decim.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe gconvert.o \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov hex_bin.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe ieee_globals.o \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov pack_float.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe sigfpe.o \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov string_decim.o
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LowePORTGEN= \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov _env_data.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe _xftw.o \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov a64l.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe abort.o \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov addsev.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe assert.o \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov atof.o \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov atoi.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe atol.o \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov atoll.o \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov attropen.o \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov atexit.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe atfork.o \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov basename.o \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov calloc.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe catgets.o \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov catopen.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe cfgetispeed.o \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov cfgetospeed.o \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov cfree.o \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov cfsetispeed.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe cfsetospeed.o \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov cftime.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe clock.o \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov closedir.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe closefrom.o \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov confstr.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe crypt.o \
03c1ea085b2a65a7bf9c001ba8502eb10725ea52Robert Mustacchi csetlen.o \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov ctime.o \
03c1ea085b2a65a7bf9c001ba8502eb10725ea52Robert Mustacchi ctime_r.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe deflt.o \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov directio.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe dirname.o \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov div.o \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov drand48.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe dup2.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe env_data.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe err.o \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov errno.o \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe euclen.o \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov event_port.o \
execvp.o \
fattach.o \
fdetach.o \
fdopendir.o \
fmtmsg.o \
ftime.o \
ftok.o \
ftw.o \
gcvt.o \
getauxv.o \
getcwd.o \
getdate_err.o \
getdtblsize.o \
getenv.o \
getexecname.o \
getgrnam.o \
getgrnam_r.o \
gethostid.o \
gethostname.o \
gethz.o \
getisax.o \
getloadavg.o \
getlogin.o \
getmntent.o \
getnetgrent.o \
getopt.o \
getopt_long.o \
getpagesize.o \
getpw.o \
getpwnam.o \
getpwnam_r.o \
getrusage.o \
getspent.o \
getspent_r.o \
getsubopt.o \
gettxt.o \
getusershell.o \
getut.o \
getutx.o \
getvfsent.o \
getwd.o \
getwidth.o \
getxby_door.o \
gtxt.o \
hsearch.o \
iconv.o \
imaxabs.o \
imaxdiv.o \
index.o \
initgroups.o \
insque.o \
isaexec.o \
isastream.o \
isatty.o \
killpg.o \
klpdlib.o \
l64a.o \
lckpwdf.o \
lconstants.o \
lexp10.o \
lfind.o \
lfmt.o \
lfmt_log.o \
lldiv.o \
llog10.o \
lltostr.o \
lmath.o \
localtime.o \
lsearch.o \
madvise.o \
malloc.o \
memalign.o \
mkdev.o \
mkdtemp.o \
mkfifo.o \
mkstemp.o \
mktemp.o \
mlock.o \
mlockall.o \
mon.o \
msync.o \
munlock.o \
munlockall.o \
ndbm.o \
nftw.o \
nlspath_checks.o \
nsparse.o \
nss_common.o \
nss_dbdefs.o \
nss_deffinder.o \
opendir.o \
opt_data.o \
perror.o \
pfmt.o \
pfmt_data.o \
pfmt_print.o \
plock.o \
poll.o \
posix_fadvise.o \
posix_fallocate.o \
posix_madvise.o \
posix_memalign.o \
priocntl.o \
privlib.o \
priv_str_xlate.o \
psiginfo.o \
psignal.o \
pt.o \
putpwent.o \
putspent.o \
raise.o \
rand.o \
random.o \
rctlops.o \
readdir.o \
readdir_r.o \
realpath.o \
reboot.o \
regexpr.o \
remove.o \
rewinddir.o \
rindex.o \
scandir.o \
seekdir.o \
select.o \
setlabel.o \
setpriority.o \
settimeofday.o \
sh_locks.o \
sigflag.o \
siglist.o \
sigsend.o \
sigsetops.o \
ssignal.o \
stack.o \
str2sig.o \
strcase_charmap.o \
strcasecmp.o \
strcat.o \
strchr.o \
strcspn.o \
strdup.o \
strerror.o \
strlcat.o \
strlcpy.o \
strncasecmp.o \
strncat.o \
strpbrk.o \
strrchr.o \
strsep.o \
strsignal.o \
strspn.o \
strstr.o \
strtod.o \
strtoimax.o \
strtok.o \
strtok_r.o \
strtoll.o \
strtoull.o \
strtoumax.o \
swab.o \
swapctl.o \
sysconf.o \
syslog.o \
tcdrain.o \
tcflow.o \
tcflush.o \
tcgetattr.o \
tcgetpgrp.o \
tcgetsid.o \
tcsendbreak.o \
tcsetattr.o \
tcsetpgrp.o \
tell.o \
telldir.o \
tfind.o \
time_data.o \
time_gdata.o \
truncate.o \
tsdalloc.o \
tsearch.o \
ttyname.o \
ttyslot.o \
ualarm.o \
ucred.o \
valloc.o \
vlfmt.o \
vpfmt.o \
waitpid.o \
walkstack.o \
wdata.o \
xgetwidth.o \
xpg4.o \
xpg6.o
PORTPRINT_W= \
doprnt_w.o
PORTPRINT= \
asprintf.o \
doprnt.o \
fprintf.o \
printf.o \
snprintf.o \
sprintf.o \
vfprintf.o \
vprintf.o \
vsnprintf.o \
vsprintf.o \
vwprintf.o \
wprintf.o
# Preserved solely to ease maintenance of 32-bit and 64-bit library builds
# This macro should ALWAYS be empty; native APIs are already 'large file'.
PORTSTDIO64=
PORTSTDIO_W= \
doscan_w.o
PORTSTDIO= \
__extensions.o \
_endopen.o \
_filbuf.o \
_findbuf.o \
_flsbuf.o \
_wrtchk.o \
clearerr.o \
ctermid.o \
ctermid_r.o \
cuserid.o \
data.o \
doscan.o \
fdopen.o \
feof.o \
ferror.o \
fgetc.o \
fgets.o \
fileno.o \
flockf.o \
flush.o \
fopen.o \
fpos.o \
fputc.o \
fputs.o \
fread.o \
fseek.o \
fseeko.o \
ftell.o \
ftello.o \
fwrite.o \
getc.o \
getchar.o \
getpass.o \
gets.o \
getw.o \
mse.o \
popen.o \
putc.o \
putchar.o \
puts.o \
putw.o \
rewind.o \
scanf.o \
setbuf.o \
setbuffer.o \
setvbuf.o \
system.o \
tempnam.o \
tmpfile.o \
tmpnam_r.o \
ungetc.o \
vscanf.o \
vwscanf.o \
wscanf.o
PORTI18N= \
__fgetwc_xpg5.o \
__fgetws_xpg5.o \
__fputwc_xpg5.o \
__fputws_xpg5.o \
__ungetwc_xpg5.o \
getwchar.o \
putwchar.o \
putws.o \
strtows.o \
wcsstr.o \
wcstoimax.o \
wcstol.o \
wcstoul.o \
wcswcs.o \
wmemchr.o \
wmemcmp.o \
wmemcpy.o \
wmemmove.o \
wmemset.o \
wscasecmp.o \
wscat.o \
wschr.o \
wscmp.o \
wscpy.o \
wscspn.o \
wsdup.o \
wslen.o \
wsncasecmp.o \
wsncat.o \
wsncmp.o \
wsncpy.o \
wspbrk.o \
wsprintf.o \
wsrchr.o \
wsscanf.o \
wsspn.o \
wstod.o \
wstok.o \
wstol.o \
wstoll.o \
wsxfrm.o \
gettext.o \
gettext_gnu.o \
gettext_real.o \
gettext_util.o \
plural_parser.o \
wdresolve.o \
_ctype.o \
isascii.o \
toascii.o
PORTI18N_COND= \
wcstol_longlong.o \
wcstoul_longlong.o
AIOOBJS= \
aio.o \
aio_alloc.o \
posix_aio.o
RTOBJS= \
clock_timer.o \
mqueue.o \
pos4obj.o \
sched.o \
sem.o \
shm.o \
sigev_thread.o
TPOOLOBJS= \
thread_pool.o
THREADSOBJS= \
alloc.o \
assfail.o \
cancel.o \
door_calls.o \
pthr_attr.o \
pthr_barrier.o \
pthr_cond.o \
pthr_mutex.o \
pthr_rwlock.o \
pthread.o \
rwlock.o \
scalls.o \
sema.o \
sigaction.o \
spawn.o \
synch.o \
tdb_agent.o \
thr.o \
thread_interface.o \
tls.o \
tsd.o
THREADSMACHOBJS= \
machdep.o
THREADSASMOBJS= \
asm_subr.o
UNICODEOBJS= \
u8_textprep.o \
uconv.o
UNWINDMACHOBJS= \
call_frame_inst.o \
eh_frame.o \
thrp_unwind.o \
unwind.o
pics/unwind.o:= COPTFLAG64 =
UNWINDASMOBJS= \
unwind_frame.o
# Preserved solely to ease maintenance of 32-bit and 64-bit library builds
# This macro should ALWAYS be empty; native APIs are already 'large file'.
PORTSYS64=
PORTSYS= \
_autofssys.o \
acctctl.o \
bsd_signal.o \
corectl.o \
exacctsys.o \
execl.o \
execle.o \
execv.o \
faccessat.o \
fsmisc.o \
fstatat.o \
getpagesizes.o \
getpeerucred.o \
inst_sync.o \
issetugid.o \
label.o \
libc_fcntl.o \
libc_link.o \
libc_open.o \
lockf.o \
lwp.o \
lwp_cond.o \
lwp_rwlock.o \
lwp_sigmask.o \
meminfosys.o \
msgsys.o \
nfssys.o \
openat.o \
pgrpsys.o \
posix_sigwait.o \
ppriv.o \
psetsys.o \
rctlsys.o \
sbrk.o \
semsys.o \
set_errno.o \
sharefs.o \
shmsys.o \
sidsys.o \
siginterrupt.o \
signal.o \
sigpending.o \
sigstack.o \
tasksys.o \
time.o \
time_util.o \
ucontext.o \
ustat.o \
zone.o
PORTREGEX= \
glob.o \
regcmp.o \
regex.o \
wordexp.o
VALUES= \
values-Xa.o
MOSTOBJS= \
$(STRETS) \
$(CRTOBJS) \
$(DYNOBJS) \
$(FPOBJS) \
$(I386FPOBJS) \
$(FPASMOBJS) \
$(ATOMICOBJS) \
$(XATTROBJS) \
$(COMOBJS) \
$(GENOBJS) \
$(PORTFP) \
$(PORTGEN) \
$(PORTGEN64) \
$(PORTI18N) \
$(PORTI18N_COND) \
$(PORTPRINT) \
$(PORTPRINT_W) \
$(PORTREGEX) \
$(PORTSTDIO) \
$(PORTSTDIO64) \
$(PORTSTDIO_W) \
$(PORTSYS) \
$(PORTSYS64) \
$(AIOOBJS) \
$(RTOBJS) \
$(TPOOLOBJS) \
$(THREADSOBJS) \
$(THREADSMACHOBJS) \
$(THREADSASMOBJS) \
$(UNICODEOBJS) \
$(UNWINDMACHOBJS) \
$(UNWINDASMOBJS) \
$(COMSYSOBJS) \
$(SYSOBJS) \
$(COMSYSOBJS64) \
$(SYSOBJS64) \
$(VALUES)
TRACEOBJS= \
plockstat.o
# NOTE: libc.so.1 must be linked with the minimal crti.o and crtn.o
# modules whose source is provided in the $(SRC)/lib/common directory.
# This must be done because otherwise the Sun C compiler would insert
# its own versions of these modules and those versions contain code
# to call out to C++ initialization functions. Such C++ initialization
# functions can call back into libc before thread initialization is
# complete and this leads to segmentation violations and other problems.
# Since libc contains no C++ code, linking with the minimal crti.o and
# crtn.o modules is safe and avoids the problems described above.
OBJECTS= $(CRTI) $(MOSTOBJS) $(CRTN)
CRTSRCS= ../../common/amd64
# include common library definitions
include ../../Makefile.lib
include ../../Makefile.lib.64
# NOTE: libc_i18n.a will be part of libc.so.1. Therefore, the compilation
# conditions such as the settings of CFLAGS and CPPFLAGS for the libc_i18n stuff
# need to be compatible with the ones for the libc stuff. Whenever the changes
# that affect the compilation conditions of libc happened, those for libc_i18n
# also need to be updated.
CFLAGS64 += $(CTF_FLAGS)
# This is necessary to avoid problems with calling _ex_unwind().
# We probably don't want any inlining anyway.
CFLAGS64 += -xinline=
# Setting THREAD_DEBUG = -DTHREAD_DEBUG (make THREAD_DEBUG=-DTHREAD_DEBUG ...)
# enables ASSERT() checking in the threads portion of the library.
# This is automatically enabled for DEBUG builds, not for non-debug builds.
THREAD_DEBUG =
$(NOT_RELEASE_BUILD)THREAD_DEBUG = -DTHREAD_DEBUG
# Make string literals read-only to save memory
CFLAGS64 += $(XSTRCONST)
ALTPICS= $(TRACEOBJS:%=pics/%)
$(DYNLIB) := PICS += $(ROOTFS_LIBDIR64)/libc_i18n.a
$(DYNLIB) := BUILD.SO = $(LD) -o $@ -G $(DYNFLAGS) $(PICS) $(ALTPICS)
MAPFILES = ../port/mapfile-vers mapfile-vers
CPPFLAGS= -D_REENTRANT -D$(MACH64) -D__$(MACH64) $(THREAD_DEBUG) \
-I. -I$(LIBCBASE)/inc -I../inc $(CPPFLAGS.master) -I/usr/include
ASFLAGS= $(AS_PICFLAGS) -P -D__STDC__ -D_ASM $(CPPFLAGS) \
$(amd64_AS_XARCH)
# Conditionally add support for making |wordexp()| check whether
# /usr/bin/ksh is ksh93 or not
include ../../../Makefile.ksh93switch
CPPFLAGS += -DWORDEXP_KSH93=$(ON_BUILD_KSH93_AS_BINKSH)
# proc64_id.o is built with defines in $(SRC)/uts/intel/sys/x86_archext.h
pics/proc64_id.o := CFLAGS64 += -I$(SRC)/uts/intel
# Inform the run-time linker about libc specialized initialization
RTLDINFO = -z rtldinfo=tls_rtldinfo
DYNFLAGS += $(RTLDINFO)
BUILD.s= $(AS) $(ASFLAGS) $< -o $@
# Override this top level flag so the compiler builds in its native
# C99 mode. This has been enabled to support the complex arithmetic
# added to libc.
C99MODE= $(C99_ENABLE)
# libc method of building an archive
BUILD.AR= $(RM) $@ ; \
$(AR) q $@ `$(LORDER) $(MOSTOBJS:%=$(DIR)/%)| $(TSORT)`
# extra files for the clean target
CLEANFILES= \
../port/gen/errlst.c \
../port/gen/new_list.c \
assym.h \
genassym \
crt/_rtld.s \
pics/crti.o \
pics/crtn.o \
$(ALTPICS)
CLOBBERFILES += $(LIB_PIC)
# list of C source for lint
SRCS= \
$(ATOMICOBJS:%.o=$(SRC)/common/atomic/%.c) \
$(XATTROBJS:%.o=$(SRC)/common/xattr/%.c) \
$(COMOBJS:%.o=$(SRC)/common/util/%.c) \
$(PORTFP:%.o=../port/fp/%.c) \
$(PORTGEN:%.o=../port/gen/%.c) \
$(PORTI18N:%.o=../port/i18n/%.c) \
$(PORTPRINT:%.o=../port/print/%.c) \
$(PORTREGEX:%.o=../port/regex/%.c) \
$(PORTSTDIO:%.o=../port/stdio/%.c) \
$(PORTSYS:%.o=../port/sys/%.c) \
$(AIOOBJS:%.o=../port/aio/%.c) \
$(RTOBJS:%.o=../port/rt/%.c) \
$(TPOOLOBJS:%.o=../port/tpool/%.c) \
$(THREADSOBJS:%.o=../port/threads/%.c) \
$(THREADSMACHOBJS:%.o=threads/%.c) \
$(UNICODEOBJS:%.o=$(SRC)/common/unicode/%.c) \
$(UNWINDMACHOBJS:%.o=unwind/%.c) \
$(FPOBJS:%.o=fp/%.c) \
$(I386FPOBJS:%.o=../i386/fp/%.c) \
$(LIBCBASE)/gen/ecvt.c \
$(LIBCBASE)/gen/makectxt.c \
$(LIBCBASE)/gen/siginfolst.c \
$(LIBCBASE)/gen/siglongjmp.c \
$(LIBCBASE)/gen/sync_instruction_memory.c \
$(LIBCBASE)/sys/uadmin.c
# conditional assignments
# $(DYNLIB) $(LIB_PIC) := DYNOBJS = _rtbootld.o
$(DYNLIB) := CRTI = crti.o
$(DYNLIB) := CRTN = crtn.o
# Files which need the threads .il inline template
TIL= \
aio.o \
alloc.o \
assfail.o \
atexit.o \
atfork.o \
cancel.o \
door_calls.o \
errno.o \
lwp.o \
ma.o \
machdep.o \
posix_aio.o \
pthr_attr.o \
pthr_barrier.o \
pthr_cond.o \
pthr_mutex.o \
pthr_rwlock.o \
pthread.o \
rand.o \
rwlock.o \
scalls.o \
sched.o \
sema.o \
sigaction.o \
sigev_thread.o \
spawn.o \
stack.o \
synch.o \
tdb_agent.o \
thr.o \
thread_interface.o \
thread_pool.o \
thrp_unwind.o \
tls.o \
tsd.o
$(TIL:%=pics/%) := CFLAGS64 += $(LIBCBASE)/threads/amd64.il
# pics/mul64.o := CFLAGS64 += crt/mul64.il
# large-file-aware components that should be built large
#$(COMSYSOBJS64:%=pics/%) := \
# CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
#$(SYSOBJS64:%=pics/%) := \
# CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
#$(PORTGEN64:%=pics/%) := \
# CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
#$(PORTSTDIO64:%=pics/%) := \
# CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
#$(PORTSYS64:%=pics/%) := \
# CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
$(PORTSTDIO_W:%=pics/%) := \
CPPFLAGS += -D_WIDE
$(PORTPRINT_W:%=pics/%) := \
CPPFLAGS += -D_WIDE
$(PORTPRINT_C89:%=pics/%) := \
CPPFLAGS += -D_C89_INTMAX32
$(PORTSTDIO_C89:%=pics/%) := \
CPPFLAGS += -D_C89_INTMAX32
$(PORTI18N_COND:%=pics/%) := \
CPPFLAGS += -D_WCS_LONGLONG
.KEEP_STATE:
all: $(LIBS) $(LIB_PIC)
lint := CPPFLAGS += -I../$(MACH)/fp
lint := CPPFLAGS += -D_MSE_INT_H -D_LCONV_C99
lint := LINTFLAGS64 += -mn -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
lint:
@echo $(LINT.c) ... $(LDLIBS)
@$(LINT.c) $(SRCS) $(LDLIBS)
$(LINTLIB):= SRCS=../port/llib-lc
$(LINTLIB):= CPPFLAGS += -D_MSE_INT_H
$(LINTLIB):= LINTFLAGS64=-nvx -m64
# object files that depend on inline template
$(TIL:%=pics/%): $(LIBCBASE)/threads/amd64.il
# pics/mul64.o: crt/mul64.il
# include common libc targets
include ../Makefile.targ
# We need to strip out all CTF data from the static library
$(LIB_PIC) := DIR = pics
$(LIB_PIC): pics $$(PICS)
$(BUILD.AR)
$(MCS) -d -n .SUNW_ctf $@ > /dev/null 2>&1
$(AR) -ts $@ > /dev/null
$(POST_PROCESS_A)
ASSYMDEP_OBJS= \
_lwp_mutex_unlock.o \
_stack_grow.o \
asm_subr.o \
getcontext.o \
tls_get_addr.o \
vforkx.o
$(ASSYMDEP_OBJS:%=pics/%): assym.h
# assym.h build rules
GENASSYM_C = genassym.c
# XXX A hack. Perhaps this should be 'CPPFLAGS.native' and
# live in Makefile.master
CPPFLAGS.genassym = \
$(ENVCPPFLAGS1) $(ENVCPPFLAGS2) $(ENVCPPFLAGS3) $(ENVCPPFLAGS4)
genassym: $(GENASSYM_C)
$(NATIVECC) -Iinc -I../inc $(CPPFLAGS.genassym) -o $@ $(GENASSYM_C)
OFFSETS = ../$(MACH)/offsets.in
assym.h: $(OFFSETS) genassym
$(OFFSETS_CREATE) <$(OFFSETS) >$@
./genassym >>$@
# derived C source and related explicit dependencies
../port/gen/errlst.c + \
../port/gen/new_list.c: ../port/gen/errlist ../port/gen/errlist.awk
cd ../port/gen; pwd; $(AWK) -f errlist.awk < errlist
pics/errlst.o: ../port/gen/errlst.c
pics/new_list.o: ../port/gen/new_list.c