xref: /titanic_44/usr/src/lib/libc/sparcv9/Makefile (revision f808c858fa61e7769218966759510a8b1190dfcf)
17c478bd9Sstevel@tonic-gate#
27c478bd9Sstevel@tonic-gate# CDDL HEADER START
37c478bd9Sstevel@tonic-gate#
47c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the
57c4dcc55Scasper# Common Development and Distribution License (the "License").
67c4dcc55Scasper# You may not use this file except in compliance with the License.
77c478bd9Sstevel@tonic-gate#
87c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
97c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
107c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions
117c478bd9Sstevel@tonic-gate# and limitations under the License.
127c478bd9Sstevel@tonic-gate#
137c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
147c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
157c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
167c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
177c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
187c478bd9Sstevel@tonic-gate#
197c478bd9Sstevel@tonic-gate# CDDL HEADER END
207c478bd9Sstevel@tonic-gate#
217c478bd9Sstevel@tonic-gate#
22e8031f0aSraf# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
237c478bd9Sstevel@tonic-gate# Use is subject to license terms.
247c478bd9Sstevel@tonic-gate#
257c478bd9Sstevel@tonic-gate# ident	"%Z%%M%	%I%	%E% SMI"
267c478bd9Sstevel@tonic-gate#
27*f808c858Sraf
287c478bd9Sstevel@tonic-gateLIBCBASE=.
297c478bd9Sstevel@tonic-gate
307c478bd9Sstevel@tonic-gateLIBRARY= libc.a
317c478bd9Sstevel@tonic-gateLIB_PIC= libc_pic.a
327c478bd9Sstevel@tonic-gateVERS=	.1
337c478bd9Sstevel@tonic-gateCPP=	/usr/lib/cpp
347c478bd9Sstevel@tonic-gateTARGET_ARCH=	sparc
357c478bd9Sstevel@tonic-gate
367c478bd9Sstevel@tonic-gate# objects are grouped by source directory
377c478bd9Sstevel@tonic-gate
387c478bd9Sstevel@tonic-gate# local objects
397c478bd9Sstevel@tonic-gateSTRETS=
407c478bd9Sstevel@tonic-gate
417c478bd9Sstevel@tonic-gateCRTOBJS=			\
427c478bd9Sstevel@tonic-gate	__align_cpy_2.o		\
437c478bd9Sstevel@tonic-gate	__align_cpy_4.o		\
447c478bd9Sstevel@tonic-gate	__align_cpy_8.o		\
457c478bd9Sstevel@tonic-gate	_ftou.o			\
467c478bd9Sstevel@tonic-gate	cerror.o
477c478bd9Sstevel@tonic-gate
487c478bd9Sstevel@tonic-gateDYNOBJS=
497c478bd9Sstevel@tonic-gate
507c478bd9Sstevel@tonic-gateFPOBJS=				\
517c478bd9Sstevel@tonic-gate	_D_cplx_div.o		\
527c478bd9Sstevel@tonic-gate	_D_cplx_div_ix.o	\
537c478bd9Sstevel@tonic-gate	_D_cplx_div_rx.o	\
547c478bd9Sstevel@tonic-gate	_D_cplx_mul.o		\
557c478bd9Sstevel@tonic-gate	_F_cplx_div.o		\
567c478bd9Sstevel@tonic-gate	_F_cplx_div_ix.o	\
577c478bd9Sstevel@tonic-gate	_F_cplx_div_rx.o	\
587c478bd9Sstevel@tonic-gate	_F_cplx_mul.o		\
597c478bd9Sstevel@tonic-gate	_Q_add.o		\
607c478bd9Sstevel@tonic-gate	_Q_cmp.o		\
617c478bd9Sstevel@tonic-gate	_Q_cmpe.o		\
627c478bd9Sstevel@tonic-gate	_Q_cplx_div.o		\
637c478bd9Sstevel@tonic-gate	_Q_cplx_div_ix.o	\
647c478bd9Sstevel@tonic-gate	_Q_cplx_div_rx.o	\
657c478bd9Sstevel@tonic-gate	_Q_cplx_lr_div.o	\
667c478bd9Sstevel@tonic-gate	_Q_cplx_lr_div_ix.o	\
677c478bd9Sstevel@tonic-gate	_Q_cplx_lr_div_rx.o	\
687c478bd9Sstevel@tonic-gate	_Q_cplx_lr_mul.o	\
697c478bd9Sstevel@tonic-gate	_Q_cplx_mul.o		\
707c478bd9Sstevel@tonic-gate	_Q_div.o		\
717c478bd9Sstevel@tonic-gate	_Q_dtoq.o		\
727c478bd9Sstevel@tonic-gate	_Q_fcc.o		\
737c478bd9Sstevel@tonic-gate	_Q_itoq.o		\
747c478bd9Sstevel@tonic-gate	_Q_mul.o		\
757c478bd9Sstevel@tonic-gate	_Q_neg.o		\
767c478bd9Sstevel@tonic-gate	_Q_qtod.o		\
777c478bd9Sstevel@tonic-gate	_Q_qtoi.o		\
787c478bd9Sstevel@tonic-gate	_Q_qtos.o		\
797c478bd9Sstevel@tonic-gate	_Q_qtou.o		\
807c478bd9Sstevel@tonic-gate	_Q_scl.o		\
817c478bd9Sstevel@tonic-gate	_Q_sqrt.o		\
827c478bd9Sstevel@tonic-gate	_Q_stoq.o		\
837c478bd9Sstevel@tonic-gate	_Q_sub.o		\
847c478bd9Sstevel@tonic-gate	_Q_utoq.o
857c478bd9Sstevel@tonic-gate
867c478bd9Sstevel@tonic-gateFPOBJS64=			\
877c478bd9Sstevel@tonic-gate	_Qp_qtox.o		\
887c478bd9Sstevel@tonic-gate	_Qp_qtoux.o		\
897c478bd9Sstevel@tonic-gate	_Qp_xtoq.o		\
907c478bd9Sstevel@tonic-gate	_Qp_uxtoq.o		\
917c478bd9Sstevel@tonic-gate	__dtoul.o		\
927c478bd9Sstevel@tonic-gate	__ftoul.o
937c478bd9Sstevel@tonic-gate
947c478bd9Sstevel@tonic-gateFPASMOBJS=			\
957c478bd9Sstevel@tonic-gate	_Q_get_rp_rd.o		\
967c478bd9Sstevel@tonic-gate	__quad_mag64.o		\
977c478bd9Sstevel@tonic-gate	fpgetmask.o		\
987c478bd9Sstevel@tonic-gate	fpgetrnd.o		\
997c478bd9Sstevel@tonic-gate	fpgetsticky.o		\
1007c478bd9Sstevel@tonic-gate	fpsetmask.o		\
1017c478bd9Sstevel@tonic-gate	fpsetrnd.o		\
1027c478bd9Sstevel@tonic-gate	fpsetsticky.o
1037c478bd9Sstevel@tonic-gate
1040ec57554Sraf$(__GNUC)FPASMOBJS +=		\
1050ec57554Sraf	__quad.o
1060ec57554Sraf
1077c478bd9Sstevel@tonic-gateATOMICOBJS=			\
1087c478bd9Sstevel@tonic-gate	atomic.o
1097c478bd9Sstevel@tonic-gate
1107c478bd9Sstevel@tonic-gateCOMOBJS=			\
1117c478bd9Sstevel@tonic-gate	bcmp.o			\
1127c478bd9Sstevel@tonic-gate	bcopy.o			\
1137c478bd9Sstevel@tonic-gate	bsearch.o		\
1147c478bd9Sstevel@tonic-gate	bzero.o			\
1157c478bd9Sstevel@tonic-gate	memccpy.o		\
1167c478bd9Sstevel@tonic-gate	qsort.o			\
1177c478bd9Sstevel@tonic-gate	strtol.o		\
1187c478bd9Sstevel@tonic-gate	strtoul.o
1197c478bd9Sstevel@tonic-gate
1207c478bd9Sstevel@tonic-gateGENOBJS=			\
1217c478bd9Sstevel@tonic-gate	_getsp.o		\
1227c478bd9Sstevel@tonic-gate	_xregs_clrptr.o		\
1237c478bd9Sstevel@tonic-gate	abs.o			\
1247c478bd9Sstevel@tonic-gate	alloca.o		\
1257c478bd9Sstevel@tonic-gate	cuexit.o		\
1267c478bd9Sstevel@tonic-gate	ecvt.o			\
1277c478bd9Sstevel@tonic-gate	getctxt.o		\
1287c478bd9Sstevel@tonic-gate	lexp10.o		\
1297c478bd9Sstevel@tonic-gate	llog10.o		\
1307c478bd9Sstevel@tonic-gate	lock.o			\
1317c478bd9Sstevel@tonic-gate	makectxt.o		\
1327c478bd9Sstevel@tonic-gate	memchr.o		\
1337c478bd9Sstevel@tonic-gate	memcmp.o		\
1347c478bd9Sstevel@tonic-gate	memcpy.o		\
1357c478bd9Sstevel@tonic-gate	memmove.o		\
1367c478bd9Sstevel@tonic-gate	memset.o		\
1377c478bd9Sstevel@tonic-gate	new_list.o		\
1387c478bd9Sstevel@tonic-gate	setjmp.o		\
1397c478bd9Sstevel@tonic-gate	siginfolst.o		\
1407c478bd9Sstevel@tonic-gate	siglongjmp.o		\
1417c478bd9Sstevel@tonic-gate	sparc_data.o		\
1427c478bd9Sstevel@tonic-gate	strcasecmp.o		\
1437c478bd9Sstevel@tonic-gate	strchr.o		\
1447c478bd9Sstevel@tonic-gate	strcmp.o		\
1457c478bd9Sstevel@tonic-gate	strcpy.o		\
1467c478bd9Sstevel@tonic-gate	strlcpy.o		\
1477c478bd9Sstevel@tonic-gate	strlen.o		\
1487c478bd9Sstevel@tonic-gate	strncmp.o		\
1497c478bd9Sstevel@tonic-gate	strncpy.o		\
1507c478bd9Sstevel@tonic-gate	swapctxt.o		\
1517c478bd9Sstevel@tonic-gate	sync_instruction_memory.o
1527c478bd9Sstevel@tonic-gate
1537c478bd9Sstevel@tonic-gate# Preserved solely to ease maintenance of 32-bit and 64-bit library builds
1547c478bd9Sstevel@tonic-gate# This macro should ALWAYS be empty; native APIs are already 'large file'.
1557c478bd9Sstevel@tonic-gateCOMSYSOBJS64=
1567c478bd9Sstevel@tonic-gate
1577c478bd9Sstevel@tonic-gateSYSOBJS64=
1587c478bd9Sstevel@tonic-gate
1597c478bd9Sstevel@tonic-gateCOMSYSOBJS=			\
1607c478bd9Sstevel@tonic-gate	__clock_timer.o		\
1617c478bd9Sstevel@tonic-gate	__fcntl.o		\
1627c478bd9Sstevel@tonic-gate	__getloadavg.o		\
1637c478bd9Sstevel@tonic-gate	__rusagesys.o		\
1647c478bd9Sstevel@tonic-gate	__signotify.o		\
1657c478bd9Sstevel@tonic-gate	__sigrt.o		\
1667c478bd9Sstevel@tonic-gate	__time.o		\
1677c478bd9Sstevel@tonic-gate	_lgrp_home_fast.o	\
1687c478bd9Sstevel@tonic-gate	_lgrpsys.o		\
1697c478bd9Sstevel@tonic-gate	_nfssys.o		\
1707c478bd9Sstevel@tonic-gate	_portfs.o		\
1717c478bd9Sstevel@tonic-gate	_pset.o			\
1727c478bd9Sstevel@tonic-gate	_rename.o		\
1737c478bd9Sstevel@tonic-gate	_rpcsys.o		\
1747c478bd9Sstevel@tonic-gate	_sigaction.o		\
1757c478bd9Sstevel@tonic-gate	_so_accept.o		\
1767c478bd9Sstevel@tonic-gate	_so_bind.o		\
1777c478bd9Sstevel@tonic-gate	_so_connect.o		\
1787c478bd9Sstevel@tonic-gate	_so_getpeername.o	\
1797c478bd9Sstevel@tonic-gate	_so_getsockname.o	\
1807c478bd9Sstevel@tonic-gate	_so_getsockopt.o	\
1817c478bd9Sstevel@tonic-gate	_so_listen.o		\
1827c478bd9Sstevel@tonic-gate	_so_recv.o		\
1837c478bd9Sstevel@tonic-gate	_so_recvfrom.o		\
1847c478bd9Sstevel@tonic-gate	_so_recvmsg.o		\
1857c478bd9Sstevel@tonic-gate	_so_send.o		\
1867c478bd9Sstevel@tonic-gate	_so_sendmsg.o		\
1877c478bd9Sstevel@tonic-gate	_so_sendto.o		\
1887c478bd9Sstevel@tonic-gate	_so_setsockopt.o	\
1897c478bd9Sstevel@tonic-gate	_so_shutdown.o		\
1907c478bd9Sstevel@tonic-gate	_so_socket.o		\
1917c478bd9Sstevel@tonic-gate	_so_socketpair.o	\
1927c478bd9Sstevel@tonic-gate	_sockconfig.o		\
1937c478bd9Sstevel@tonic-gate	access.o		\
1947c478bd9Sstevel@tonic-gate	acct.o			\
1957c478bd9Sstevel@tonic-gate	acl.o			\
1967c478bd9Sstevel@tonic-gate	adjtime.o		\
1977c478bd9Sstevel@tonic-gate	alarm.o			\
1987c478bd9Sstevel@tonic-gate	brk.o			\
1997c478bd9Sstevel@tonic-gate	chdir.o			\
2007c478bd9Sstevel@tonic-gate	chmod.o			\
2017c478bd9Sstevel@tonic-gate	chown.o			\
2027c478bd9Sstevel@tonic-gate	chroot.o		\
2037c478bd9Sstevel@tonic-gate	cladm.o			\
2047c478bd9Sstevel@tonic-gate	close.o			\
2057c478bd9Sstevel@tonic-gate	creat.o			\
2067c478bd9Sstevel@tonic-gate	dup.o			\
2077c478bd9Sstevel@tonic-gate	execve.o		\
2087c478bd9Sstevel@tonic-gate	exit.o			\
2097c478bd9Sstevel@tonic-gate	facl.o			\
2107c478bd9Sstevel@tonic-gate	fchdir.o		\
2117c478bd9Sstevel@tonic-gate	fchmod.o		\
2127c478bd9Sstevel@tonic-gate	fchown.o		\
2137c478bd9Sstevel@tonic-gate	fchroot.o		\
2147c478bd9Sstevel@tonic-gate	fdsync.o		\
2157c478bd9Sstevel@tonic-gate	fpathconf.o		\
2167c478bd9Sstevel@tonic-gate	fstat.o			\
2177c478bd9Sstevel@tonic-gate	fstatfs.o		\
2187c478bd9Sstevel@tonic-gate	fstatvfs.o		\
2197c478bd9Sstevel@tonic-gate	getcpuid.o		\
2207c478bd9Sstevel@tonic-gate	getdents.o		\
2217c478bd9Sstevel@tonic-gate	getegid.o		\
2227c478bd9Sstevel@tonic-gate	geteuid.o		\
2237c478bd9Sstevel@tonic-gate	getgid.o		\
2247c478bd9Sstevel@tonic-gate	getgroups.o		\
2257c478bd9Sstevel@tonic-gate	gethrtime.o		\
2267c478bd9Sstevel@tonic-gate	getitimer.o		\
2277c478bd9Sstevel@tonic-gate	getmsg.o		\
2287c478bd9Sstevel@tonic-gate	getpagesizes.o		\
2297c478bd9Sstevel@tonic-gate	getpid.o		\
2307c478bd9Sstevel@tonic-gate	getpmsg.o		\
2317c478bd9Sstevel@tonic-gate	getppid.o		\
2327c478bd9Sstevel@tonic-gate	getrlimit.o		\
2337c478bd9Sstevel@tonic-gate	getuid.o		\
2347c478bd9Sstevel@tonic-gate	gtty.o			\
2357c478bd9Sstevel@tonic-gate	install_utrap.o		\
2367c478bd9Sstevel@tonic-gate	ioctl.o			\
2377c478bd9Sstevel@tonic-gate	kaio.o			\
2387c478bd9Sstevel@tonic-gate	kill.o			\
2397c478bd9Sstevel@tonic-gate	lchown.o		\
2407c478bd9Sstevel@tonic-gate	link.o			\
2417c478bd9Sstevel@tonic-gate	llseek.o		\
2427c478bd9Sstevel@tonic-gate	lseek.o			\
2437c478bd9Sstevel@tonic-gate	lstat.o			\
2447c478bd9Sstevel@tonic-gate	memcntl.o		\
2457c478bd9Sstevel@tonic-gate	mincore.o		\
2467c478bd9Sstevel@tonic-gate	mkdir.o			\
2477c478bd9Sstevel@tonic-gate	mknod.o			\
2487c478bd9Sstevel@tonic-gate	mmap.o			\
2497c478bd9Sstevel@tonic-gate	modctl.o		\
2507c478bd9Sstevel@tonic-gate	mount.o			\
2517c478bd9Sstevel@tonic-gate	mprotect.o		\
2527c478bd9Sstevel@tonic-gate	munmap.o		\
2537c478bd9Sstevel@tonic-gate	nice.o			\
2547c478bd9Sstevel@tonic-gate	ntp_adjtime.o		\
2557c478bd9Sstevel@tonic-gate	ntp_gettime.o		\
2567c478bd9Sstevel@tonic-gate	open.o			\
2577c478bd9Sstevel@tonic-gate	p_online.o		\
2587c478bd9Sstevel@tonic-gate	pathconf.o		\
2597c478bd9Sstevel@tonic-gate	pause.o			\
2607c478bd9Sstevel@tonic-gate	pcsample.o		\
2617c478bd9Sstevel@tonic-gate	pollsys.o		\
2627c478bd9Sstevel@tonic-gate	pread.o			\
2637c478bd9Sstevel@tonic-gate	priocntlset.o		\
2647c478bd9Sstevel@tonic-gate	processor_bind.o	\
2657c478bd9Sstevel@tonic-gate	processor_info.o	\
2667c478bd9Sstevel@tonic-gate	profil.o		\
2677c478bd9Sstevel@tonic-gate	putmsg.o		\
2687c478bd9Sstevel@tonic-gate	putpmsg.o		\
2697c478bd9Sstevel@tonic-gate	pwrite.o		\
2707c478bd9Sstevel@tonic-gate	read.o			\
2717c478bd9Sstevel@tonic-gate	readlink.o		\
2727c478bd9Sstevel@tonic-gate	readv.o			\
2737c478bd9Sstevel@tonic-gate	resolvepath.o		\
2747c478bd9Sstevel@tonic-gate	rmdir.o			\
2757c478bd9Sstevel@tonic-gate	seteguid.o		\
2767c478bd9Sstevel@tonic-gate	setgid.o		\
2777c478bd9Sstevel@tonic-gate	setgroups.o		\
2787c478bd9Sstevel@tonic-gate	setitimer.o		\
2797c478bd9Sstevel@tonic-gate	setreid.o		\
2807c478bd9Sstevel@tonic-gate	setrlimit.o		\
2817c478bd9Sstevel@tonic-gate	setuid.o		\
2827c478bd9Sstevel@tonic-gate	sigaltstk.o		\
2837c478bd9Sstevel@tonic-gate	sigprocmsk.o		\
2847c478bd9Sstevel@tonic-gate	sigsendset.o		\
2857c478bd9Sstevel@tonic-gate	sigsuspend.o		\
2867c478bd9Sstevel@tonic-gate	stat.o			\
2877c478bd9Sstevel@tonic-gate	statfs.o		\
2887c478bd9Sstevel@tonic-gate	statvfs.o		\
2897c478bd9Sstevel@tonic-gate	stty.o			\
2907c478bd9Sstevel@tonic-gate	symlink.o		\
2917c478bd9Sstevel@tonic-gate	sync.o			\
2927c478bd9Sstevel@tonic-gate	sysconfig.o		\
2937c478bd9Sstevel@tonic-gate	sysfs.o			\
2947c478bd9Sstevel@tonic-gate	sysinfo.o		\
2957c478bd9Sstevel@tonic-gate	syslwp.o		\
2967c478bd9Sstevel@tonic-gate	times.o			\
2977c478bd9Sstevel@tonic-gate	ulimit.o		\
2987c478bd9Sstevel@tonic-gate	umask.o			\
2997c478bd9Sstevel@tonic-gate	umount2.o		\
3007c478bd9Sstevel@tonic-gate	unlink.o		\
3017c478bd9Sstevel@tonic-gate	utime.o			\
3027c478bd9Sstevel@tonic-gate	utimes.o		\
3037c478bd9Sstevel@tonic-gate	utssys.o		\
3047c478bd9Sstevel@tonic-gate	vhangup.o		\
3057c478bd9Sstevel@tonic-gate	waitid.o		\
3067c478bd9Sstevel@tonic-gate	write.o			\
3077c478bd9Sstevel@tonic-gate	writev.o		\
3087c478bd9Sstevel@tonic-gate	yield.o
3097c478bd9Sstevel@tonic-gate
3107c478bd9Sstevel@tonic-gateSYSOBJS=			\
3117c478bd9Sstevel@tonic-gate	__clock_gettime.o	\
3127c478bd9Sstevel@tonic-gate	__getcontext.o		\
3137c478bd9Sstevel@tonic-gate	_lwp_mutex_unlock.o	\
3147c478bd9Sstevel@tonic-gate	_stack_grow.o		\
3157c478bd9Sstevel@tonic-gate	door.o			\
3167c478bd9Sstevel@tonic-gate	fork1.o			\
3177c478bd9Sstevel@tonic-gate	forkall.o		\
3187c478bd9Sstevel@tonic-gate	gettimeofday.o		\
3197c478bd9Sstevel@tonic-gate	pipe.o			\
3207c478bd9Sstevel@tonic-gate	sparc_utrap_install.o	\
3217c478bd9Sstevel@tonic-gate	syscall.o		\
3227c478bd9Sstevel@tonic-gate	syssun.o		\
3237c478bd9Sstevel@tonic-gate	tls_get_addr.o		\
3247c478bd9Sstevel@tonic-gate	uadmin.o		\
3257c478bd9Sstevel@tonic-gate	umount.o		\
3267c478bd9Sstevel@tonic-gate	uname.o			\
3277c478bd9Sstevel@tonic-gate	vfork.o
3287c478bd9Sstevel@tonic-gate
3297c478bd9Sstevel@tonic-gate# Preserved solely to ease maintenance of 32-bit and 64-bit library builds
3307c478bd9Sstevel@tonic-gate# This macro should ALWAYS be empty; native APIs are already 'large file'.
3317c478bd9Sstevel@tonic-gatePORTGEN64=
3327c478bd9Sstevel@tonic-gate
3337c478bd9Sstevel@tonic-gate# objects from source under ../port
3347c478bd9Sstevel@tonic-gatePORTFP=				\
3357c478bd9Sstevel@tonic-gate	__flt_decim.o		\
3367c478bd9Sstevel@tonic-gate	__flt_rounds.o		\
3377c478bd9Sstevel@tonic-gate	__tbl_10_b.o		\
3387c478bd9Sstevel@tonic-gate	__tbl_10_h.o		\
3397c478bd9Sstevel@tonic-gate	__tbl_10_s.o		\
3407c478bd9Sstevel@tonic-gate	__tbl_2_b.o		\
3417c478bd9Sstevel@tonic-gate	__tbl_2_h.o		\
3427c478bd9Sstevel@tonic-gate	__tbl_2_s.o		\
3437c478bd9Sstevel@tonic-gate	__tbl_fdq.o		\
3447c478bd9Sstevel@tonic-gate	__tbl_tens.o		\
3457c478bd9Sstevel@tonic-gate	__x_power.o		\
3467c478bd9Sstevel@tonic-gate	_base_sup.o		\
3477c478bd9Sstevel@tonic-gate	aconvert.o		\
3487c478bd9Sstevel@tonic-gate	decimal_bin.o		\
3497c478bd9Sstevel@tonic-gate	double_decim.o		\
3507c478bd9Sstevel@tonic-gate	econvert.o		\
3517c478bd9Sstevel@tonic-gate	fconvert.o		\
3527c478bd9Sstevel@tonic-gate	file_decim.o		\
3537c478bd9Sstevel@tonic-gate	finite.o		\
3547c478bd9Sstevel@tonic-gate	fp_data.o		\
3557c478bd9Sstevel@tonic-gate	func_decim.o		\
3567c478bd9Sstevel@tonic-gate	gconvert.o		\
3577c478bd9Sstevel@tonic-gate	hex_bin.o		\
3587c478bd9Sstevel@tonic-gate	ieee_globals.o		\
3597c478bd9Sstevel@tonic-gate	pack_float.o		\
3607c478bd9Sstevel@tonic-gate	sigfpe.o		\
3617c478bd9Sstevel@tonic-gate	string_decim.o
3627c478bd9Sstevel@tonic-gate
3637c478bd9Sstevel@tonic-gatePORTGEN=			\
3647c478bd9Sstevel@tonic-gate	_env_data.o		\
3657c478bd9Sstevel@tonic-gate	_xftw.o			\
3667c478bd9Sstevel@tonic-gate	a64l.o			\
3677c478bd9Sstevel@tonic-gate	abort.o			\
3687c478bd9Sstevel@tonic-gate	addsev.o		\
3697c478bd9Sstevel@tonic-gate	assert.o		\
3707c478bd9Sstevel@tonic-gate	atof.o			\
3717c478bd9Sstevel@tonic-gate	atoi.o			\
3727c478bd9Sstevel@tonic-gate	atol.o			\
3737c478bd9Sstevel@tonic-gate	atoll.o			\
3747c478bd9Sstevel@tonic-gate	attropen.o		\
3757c478bd9Sstevel@tonic-gate	atexit.o		\
3767c478bd9Sstevel@tonic-gate	atfork.o		\
3777c478bd9Sstevel@tonic-gate	basename.o		\
3787c478bd9Sstevel@tonic-gate	calloc.o		\
3797c478bd9Sstevel@tonic-gate	catgets.o		\
3807c478bd9Sstevel@tonic-gate	catopen.o		\
3817c478bd9Sstevel@tonic-gate	cfgetispeed.o		\
3827c478bd9Sstevel@tonic-gate	cfgetospeed.o		\
3837c478bd9Sstevel@tonic-gate	cfree.o			\
3847c478bd9Sstevel@tonic-gate	cfsetispeed.o		\
3857c478bd9Sstevel@tonic-gate	cfsetospeed.o		\
3867c478bd9Sstevel@tonic-gate	cftime.o		\
3877c478bd9Sstevel@tonic-gate	clock.o			\
3887c478bd9Sstevel@tonic-gate	closedir.o		\
3897c478bd9Sstevel@tonic-gate	closefrom.o		\
3907c478bd9Sstevel@tonic-gate	confstr.o		\
3917c478bd9Sstevel@tonic-gate	crypt.o			\
3927c478bd9Sstevel@tonic-gate	csetlen.o		\
3937c478bd9Sstevel@tonic-gate	ctime.o			\
3947c478bd9Sstevel@tonic-gate	ctime_r.o		\
3957c478bd9Sstevel@tonic-gate	directio.o		\
3967c478bd9Sstevel@tonic-gate	dirname.o		\
3977c478bd9Sstevel@tonic-gate	div.o			\
3987c478bd9Sstevel@tonic-gate	drand48.o		\
3997c478bd9Sstevel@tonic-gate	dup2.o			\
4007c478bd9Sstevel@tonic-gate	env_data.o		\
4017c478bd9Sstevel@tonic-gate	errno.o			\
4027c478bd9Sstevel@tonic-gate	euclen.o		\
4037c478bd9Sstevel@tonic-gate	event_port.o		\
4047c478bd9Sstevel@tonic-gate	execvp.o		\
4057c478bd9Sstevel@tonic-gate	fattach.o		\
4067c478bd9Sstevel@tonic-gate	fdetach.o		\
4077c478bd9Sstevel@tonic-gate	fdopendir.o		\
4087c478bd9Sstevel@tonic-gate	ffs.o			\
4097c478bd9Sstevel@tonic-gate	fmtmsg.o		\
4107c478bd9Sstevel@tonic-gate	ftime.o			\
4117c478bd9Sstevel@tonic-gate	ftok.o			\
4127c478bd9Sstevel@tonic-gate	ftw.o			\
4137c478bd9Sstevel@tonic-gate	gcvt.o			\
4147c478bd9Sstevel@tonic-gate	getauxv.o		\
4157c478bd9Sstevel@tonic-gate	getcwd.o		\
4167c478bd9Sstevel@tonic-gate	getdate_err.o		\
4177c478bd9Sstevel@tonic-gate	getdtblsize.o		\
4187c478bd9Sstevel@tonic-gate	getenv.o		\
4197c478bd9Sstevel@tonic-gate	getexecname.o		\
4207c478bd9Sstevel@tonic-gate	getgrnam.o		\
4217c478bd9Sstevel@tonic-gate	getgrnam_r.o		\
4227c478bd9Sstevel@tonic-gate	gethostid.o		\
4237c478bd9Sstevel@tonic-gate	gethostname.o		\
4247c478bd9Sstevel@tonic-gate	gethz.o			\
4257c478bd9Sstevel@tonic-gate	getisax.o		\
4267c478bd9Sstevel@tonic-gate	getloadavg.o		\
4277c478bd9Sstevel@tonic-gate	getlogin.o		\
4287c478bd9Sstevel@tonic-gate	getmntent.o		\
4297c478bd9Sstevel@tonic-gate	getnetgrent.o		\
4307c478bd9Sstevel@tonic-gate	getopt.o		\
4317c478bd9Sstevel@tonic-gate	getopt_long.o		\
4327c478bd9Sstevel@tonic-gate	getpagesize.o		\
4337c478bd9Sstevel@tonic-gate	getpw.o			\
4347c478bd9Sstevel@tonic-gate	getpwnam.o		\
4357c478bd9Sstevel@tonic-gate	getpwnam_r.o		\
4367c478bd9Sstevel@tonic-gate	getrusage.o		\
4377c478bd9Sstevel@tonic-gate	getspent.o		\
4387c478bd9Sstevel@tonic-gate	getspent_r.o		\
4397c478bd9Sstevel@tonic-gate	getsubopt.o		\
4407c478bd9Sstevel@tonic-gate	gettxt.o		\
4417c478bd9Sstevel@tonic-gate	getusershell.o		\
4427c478bd9Sstevel@tonic-gate	getut.o			\
4437c478bd9Sstevel@tonic-gate	getutx.o		\
4447c478bd9Sstevel@tonic-gate	getvfsent.o		\
4457c478bd9Sstevel@tonic-gate	getwd.o			\
4467c478bd9Sstevel@tonic-gate	getwidth.o		\
4477c478bd9Sstevel@tonic-gate	getxby_door.o		\
4487c478bd9Sstevel@tonic-gate	gtxt.o			\
4497c478bd9Sstevel@tonic-gate	hsearch.o		\
4507c478bd9Sstevel@tonic-gate	iconv.o			\
4517c478bd9Sstevel@tonic-gate	imaxabs.o		\
4527c478bd9Sstevel@tonic-gate	imaxdiv.o		\
4537c478bd9Sstevel@tonic-gate	index.o			\
4547c478bd9Sstevel@tonic-gate	initgroups.o		\
4557c478bd9Sstevel@tonic-gate	insque.o		\
4567c478bd9Sstevel@tonic-gate	isaexec.o		\
4577c478bd9Sstevel@tonic-gate	isastream.o		\
4587c478bd9Sstevel@tonic-gate	isatty.o		\
4597c478bd9Sstevel@tonic-gate	killpg.o		\
4607c478bd9Sstevel@tonic-gate	l64a.o			\
4617c478bd9Sstevel@tonic-gate	lckpwdf.o		\
4627c478bd9Sstevel@tonic-gate	lconstants.o		\
4637c478bd9Sstevel@tonic-gate	ldivide.o		\
4647c478bd9Sstevel@tonic-gate	lfind.o			\
4657c478bd9Sstevel@tonic-gate	lfmt.o			\
4667c478bd9Sstevel@tonic-gate	lfmt_log.o		\
4677c478bd9Sstevel@tonic-gate	lldiv.o			\
4687c478bd9Sstevel@tonic-gate	lltostr.o		\
4697c478bd9Sstevel@tonic-gate	lmath.o			\
4707c478bd9Sstevel@tonic-gate	localtime.o		\
4717c478bd9Sstevel@tonic-gate	lsearch.o		\
4727c478bd9Sstevel@tonic-gate	madvise.o		\
4737c478bd9Sstevel@tonic-gate	malloc.o		\
4747c478bd9Sstevel@tonic-gate	memalign.o		\
4757c478bd9Sstevel@tonic-gate	mkdev.o			\
4767c4dcc55Scasper	mkdtemp.o		\
4777c478bd9Sstevel@tonic-gate	mkfifo.o		\
4787c478bd9Sstevel@tonic-gate	mkstemp.o		\
4797c478bd9Sstevel@tonic-gate	mktemp.o		\
4807c478bd9Sstevel@tonic-gate	mlock.o			\
4817c478bd9Sstevel@tonic-gate	mlockall.o		\
4827c478bd9Sstevel@tonic-gate	mon.o			\
4837c478bd9Sstevel@tonic-gate	msync.o			\
4847c478bd9Sstevel@tonic-gate	munlock.o		\
4857c478bd9Sstevel@tonic-gate	munlockall.o		\
4867c478bd9Sstevel@tonic-gate	ndbm.o			\
4877c478bd9Sstevel@tonic-gate	nftw.o			\
4887c478bd9Sstevel@tonic-gate	nlspath_checks.o	\
4897c478bd9Sstevel@tonic-gate	nsparse.o		\
4907c478bd9Sstevel@tonic-gate	nss_common.o		\
4917c478bd9Sstevel@tonic-gate	nss_dbdefs.o		\
4927c478bd9Sstevel@tonic-gate	nss_deffinder.o		\
4937c478bd9Sstevel@tonic-gate	opendir.o		\
4947c478bd9Sstevel@tonic-gate	opt_data.o		\
4957c478bd9Sstevel@tonic-gate	perror.o		\
4967c478bd9Sstevel@tonic-gate	pfmt.o			\
4977c478bd9Sstevel@tonic-gate	pfmt_data.o		\
4987c478bd9Sstevel@tonic-gate	pfmt_print.o		\
4997c478bd9Sstevel@tonic-gate	plock.o			\
5007c478bd9Sstevel@tonic-gate	poll.o			\
5017c478bd9Sstevel@tonic-gate	priocntl.o		\
5027c478bd9Sstevel@tonic-gate	privlib.o		\
5037c478bd9Sstevel@tonic-gate	priv_str_xlate.o	\
5047c478bd9Sstevel@tonic-gate	psiginfo.o		\
5057c478bd9Sstevel@tonic-gate	psignal.o		\
5067c478bd9Sstevel@tonic-gate	pt.o			\
5077c478bd9Sstevel@tonic-gate	putpwent.o		\
5087c478bd9Sstevel@tonic-gate	putspent.o		\
5097c478bd9Sstevel@tonic-gate	raise.o			\
5107c478bd9Sstevel@tonic-gate	rand.o			\
5117c478bd9Sstevel@tonic-gate	random.o		\
5127c478bd9Sstevel@tonic-gate	rctlops.o		\
5137c478bd9Sstevel@tonic-gate	readdir.o		\
5147c478bd9Sstevel@tonic-gate	readdir_r.o		\
5157c478bd9Sstevel@tonic-gate	realpath.o		\
5167c478bd9Sstevel@tonic-gate	reboot.o		\
5177c478bd9Sstevel@tonic-gate	regexpr.o		\
5187c478bd9Sstevel@tonic-gate	rename.o		\
5197c478bd9Sstevel@tonic-gate	rewinddir.o		\
5207c478bd9Sstevel@tonic-gate	rindex.o		\
5217c478bd9Sstevel@tonic-gate	scandir.o		\
5227c478bd9Sstevel@tonic-gate	seekdir.o		\
5237c478bd9Sstevel@tonic-gate	select.o		\
5247c478bd9Sstevel@tonic-gate	setlabel.o		\
5257c478bd9Sstevel@tonic-gate	setpriority.o		\
5267c478bd9Sstevel@tonic-gate	settimeofday.o		\
5277c478bd9Sstevel@tonic-gate	sh_locks.o		\
5287c478bd9Sstevel@tonic-gate	sigflag.o		\
5297c478bd9Sstevel@tonic-gate	siglist.o		\
5307c478bd9Sstevel@tonic-gate	sigsend.o		\
5317c478bd9Sstevel@tonic-gate	sigsetops.o		\
5327c478bd9Sstevel@tonic-gate	ssignal.o		\
5337c478bd9Sstevel@tonic-gate	stack.o			\
5347c478bd9Sstevel@tonic-gate	str2sig.o		\
5357c478bd9Sstevel@tonic-gate	strcase_charmap.o	\
5367c478bd9Sstevel@tonic-gate	strcat.o		\
5377c478bd9Sstevel@tonic-gate	strcspn.o		\
5387c478bd9Sstevel@tonic-gate	strdup.o		\
5397c478bd9Sstevel@tonic-gate	strerror.o		\
5407c478bd9Sstevel@tonic-gate	strncat.o		\
5417c478bd9Sstevel@tonic-gate	strlcat.o		\
5427c478bd9Sstevel@tonic-gate	strncasecmp.o		\
5437c478bd9Sstevel@tonic-gate	strpbrk.o		\
5447c478bd9Sstevel@tonic-gate	strrchr.o		\
5457c478bd9Sstevel@tonic-gate	strsignal.o		\
5467c478bd9Sstevel@tonic-gate	strspn.o		\
5477c478bd9Sstevel@tonic-gate	strstr.o		\
5487c478bd9Sstevel@tonic-gate	strtod.o		\
5497c478bd9Sstevel@tonic-gate	strtoimax.o		\
5507c478bd9Sstevel@tonic-gate	strtok.o		\
5517c478bd9Sstevel@tonic-gate	strtok_r.o		\
5527c478bd9Sstevel@tonic-gate	strtoll.o		\
5537c478bd9Sstevel@tonic-gate	strtoull.o		\
5547c478bd9Sstevel@tonic-gate	strtoumax.o		\
5557c478bd9Sstevel@tonic-gate	swab.o			\
5567c478bd9Sstevel@tonic-gate	swapctl.o		\
5577c478bd9Sstevel@tonic-gate	sysconf.o		\
5587c478bd9Sstevel@tonic-gate	syslog.o		\
5597c478bd9Sstevel@tonic-gate	tcdrain.o		\
5607c478bd9Sstevel@tonic-gate	tcflow.o		\
5617c478bd9Sstevel@tonic-gate	tcflush.o		\
5627c478bd9Sstevel@tonic-gate	tcgetattr.o		\
5637c478bd9Sstevel@tonic-gate	tcgetpgrp.o		\
5647c478bd9Sstevel@tonic-gate	tcgetsid.o		\
5657c478bd9Sstevel@tonic-gate	tcsendbreak.o		\
5667c478bd9Sstevel@tonic-gate	tcsetattr.o		\
5677c478bd9Sstevel@tonic-gate	tcsetpgrp.o		\
5687c478bd9Sstevel@tonic-gate	tell.o			\
5697c478bd9Sstevel@tonic-gate	telldir.o		\
5707c478bd9Sstevel@tonic-gate	tfind.o			\
5717c478bd9Sstevel@tonic-gate	time_data.o		\
5727c478bd9Sstevel@tonic-gate	time_gdata.o		\
5737c478bd9Sstevel@tonic-gate	truncate.o		\
5747c478bd9Sstevel@tonic-gate	tsdalloc.o		\
5757c478bd9Sstevel@tonic-gate	tsearch.o		\
5767c478bd9Sstevel@tonic-gate	ttyname.o		\
5777c478bd9Sstevel@tonic-gate	ttyslot.o		\
5787c478bd9Sstevel@tonic-gate	ualarm.o		\
5797c478bd9Sstevel@tonic-gate	ucred.o			\
5807c478bd9Sstevel@tonic-gate	valloc.o		\
5817c478bd9Sstevel@tonic-gate	vlfmt.o			\
5827c478bd9Sstevel@tonic-gate	vpfmt.o			\
5837c478bd9Sstevel@tonic-gate	wait3.o			\
5847c478bd9Sstevel@tonic-gate	wait4.o			\
5857c478bd9Sstevel@tonic-gate	waitpid.o		\
5867c478bd9Sstevel@tonic-gate	walkstack.o		\
5877c478bd9Sstevel@tonic-gate	wdata.o			\
5887c478bd9Sstevel@tonic-gate	xgetwidth.o		\
5897c478bd9Sstevel@tonic-gate	xpg4.o			\
5907c478bd9Sstevel@tonic-gate	xpg6.o
5917c478bd9Sstevel@tonic-gate
5927c478bd9Sstevel@tonic-gatePORTPRINT_W=			\
5937c478bd9Sstevel@tonic-gate	doprnt_w.o
5947c478bd9Sstevel@tonic-gate
5957c478bd9Sstevel@tonic-gatePORTPRINT=			\
5967c478bd9Sstevel@tonic-gate	doprnt.o		\
5977c478bd9Sstevel@tonic-gate	fprintf.o		\
5987c478bd9Sstevel@tonic-gate	printf.o		\
5997c478bd9Sstevel@tonic-gate	snprintf.o		\
6007c478bd9Sstevel@tonic-gate	sprintf.o		\
6017c478bd9Sstevel@tonic-gate	vfprintf.o		\
6027c478bd9Sstevel@tonic-gate	vprintf.o		\
6037c478bd9Sstevel@tonic-gate	vsnprintf.o		\
6047c478bd9Sstevel@tonic-gate	vsprintf.o		\
6057c478bd9Sstevel@tonic-gate	vwprintf.o		\
6067c478bd9Sstevel@tonic-gate	wprintf.o
6077c478bd9Sstevel@tonic-gate
6087c478bd9Sstevel@tonic-gate# Preserved solely to ease maintenance of 32-bit and 64-bit library builds
6097c478bd9Sstevel@tonic-gate# This macro should ALWAYS be empty; native APIs are already 'large file'.
6107c478bd9Sstevel@tonic-gatePORTSTDIO64=
6117c478bd9Sstevel@tonic-gate
6127c478bd9Sstevel@tonic-gatePORTSTDIO_W=			\
6137c478bd9Sstevel@tonic-gate	doscan_w.o
6147c478bd9Sstevel@tonic-gate
6157c478bd9Sstevel@tonic-gatePORTSTDIO=			\
6167c478bd9Sstevel@tonic-gate	__extensions.o		\
6177c478bd9Sstevel@tonic-gate	_endopen.o		\
6187c478bd9Sstevel@tonic-gate	_filbuf.o		\
6197c478bd9Sstevel@tonic-gate	_findbuf.o		\
6207c478bd9Sstevel@tonic-gate	_flsbuf.o		\
6217c478bd9Sstevel@tonic-gate	_wrtchk.o		\
6227c478bd9Sstevel@tonic-gate	clearerr.o		\
6237c478bd9Sstevel@tonic-gate	ctermid.o		\
6247c478bd9Sstevel@tonic-gate	ctermid_r.o		\
6257c478bd9Sstevel@tonic-gate	cuserid.o		\
6267c478bd9Sstevel@tonic-gate	data.o			\
6277c478bd9Sstevel@tonic-gate	doscan.o		\
6287c478bd9Sstevel@tonic-gate	fdopen.o		\
6297c478bd9Sstevel@tonic-gate	feof.o			\
6307c478bd9Sstevel@tonic-gate	ferror.o		\
6317c478bd9Sstevel@tonic-gate	fgetc.o			\
6327c478bd9Sstevel@tonic-gate	fgets.o			\
6337c478bd9Sstevel@tonic-gate	fileno.o		\
6347c478bd9Sstevel@tonic-gate	flockf.o		\
6357c478bd9Sstevel@tonic-gate	flush.o			\
6367c478bd9Sstevel@tonic-gate	fopen.o			\
6377c478bd9Sstevel@tonic-gate	fpos.o			\
6387c478bd9Sstevel@tonic-gate	fputc.o			\
6397c478bd9Sstevel@tonic-gate	fputs.o			\
6407c478bd9Sstevel@tonic-gate	fread.o			\
6417c478bd9Sstevel@tonic-gate	fseek.o			\
6427c478bd9Sstevel@tonic-gate	fseeko.o		\
6437c478bd9Sstevel@tonic-gate	ftell.o			\
6447c478bd9Sstevel@tonic-gate	ftello.o		\
6457c478bd9Sstevel@tonic-gate	fwrite.o		\
6467c478bd9Sstevel@tonic-gate	getc.o			\
6477c478bd9Sstevel@tonic-gate	getchar.o		\
6487c478bd9Sstevel@tonic-gate	getpass.o		\
6497c478bd9Sstevel@tonic-gate	gets.o			\
6507c478bd9Sstevel@tonic-gate	getw.o			\
6517c478bd9Sstevel@tonic-gate	popen.o			\
6527c478bd9Sstevel@tonic-gate	putc.o			\
6537c478bd9Sstevel@tonic-gate	putchar.o		\
6547c478bd9Sstevel@tonic-gate	puts.o			\
6557c478bd9Sstevel@tonic-gate	putw.o			\
6567c478bd9Sstevel@tonic-gate	rewind.o		\
6577c478bd9Sstevel@tonic-gate	scanf.o			\
6587c478bd9Sstevel@tonic-gate	setbuf.o		\
6597c478bd9Sstevel@tonic-gate	setbuffer.o		\
6607c478bd9Sstevel@tonic-gate	setvbuf.o		\
6617c478bd9Sstevel@tonic-gate	system.o		\
6627c478bd9Sstevel@tonic-gate	tempnam.o		\
6637c478bd9Sstevel@tonic-gate	tmpfile.o		\
6647c478bd9Sstevel@tonic-gate	tmpnam_r.o		\
6657c478bd9Sstevel@tonic-gate	ungetc.o		\
6667c478bd9Sstevel@tonic-gate	mse.o			\
6677c478bd9Sstevel@tonic-gate	vscanf.o		\
6687c478bd9Sstevel@tonic-gate	vwscanf.o		\
6697c478bd9Sstevel@tonic-gate	wscanf.o
6707c478bd9Sstevel@tonic-gate
6717c478bd9Sstevel@tonic-gatePORTI18N=			\
6727c478bd9Sstevel@tonic-gate	__fgetwc_xpg5.o		\
6737c478bd9Sstevel@tonic-gate	__fgetws_xpg5.o		\
6747c478bd9Sstevel@tonic-gate	__fputwc_xpg5.o		\
6757c478bd9Sstevel@tonic-gate	__fputws_xpg5.o		\
6767c478bd9Sstevel@tonic-gate	__ungetwc_xpg5.o	\
6777c478bd9Sstevel@tonic-gate	getwchar.o		\
6787c478bd9Sstevel@tonic-gate	putwchar.o		\
6797c478bd9Sstevel@tonic-gate	putws.o			\
6807c478bd9Sstevel@tonic-gate	strtows.o		\
6817c478bd9Sstevel@tonic-gate	wcstoimax.o		\
6827c478bd9Sstevel@tonic-gate	wcstol.o		\
6837c478bd9Sstevel@tonic-gate	wcstoul.o		\
6847c478bd9Sstevel@tonic-gate	wcswcs.o		\
6857c478bd9Sstevel@tonic-gate	wscasecmp.o		\
6867c478bd9Sstevel@tonic-gate	wscat.o			\
6877c478bd9Sstevel@tonic-gate	wschr.o			\
6887c478bd9Sstevel@tonic-gate	wscmp.o			\
6897c478bd9Sstevel@tonic-gate	wscpy.o			\
6907c478bd9Sstevel@tonic-gate	wscspn.o		\
6917c478bd9Sstevel@tonic-gate	wsdup.o			\
6927c478bd9Sstevel@tonic-gate	wslen.o			\
6937c478bd9Sstevel@tonic-gate	wsncasecmp.o		\
6947c478bd9Sstevel@tonic-gate	wsncat.o		\
6957c478bd9Sstevel@tonic-gate	wsncmp.o		\
6967c478bd9Sstevel@tonic-gate	wsncpy.o		\
6977c478bd9Sstevel@tonic-gate	wspbrk.o		\
6987c478bd9Sstevel@tonic-gate	wsprintf.o		\
6997c478bd9Sstevel@tonic-gate	wsrchr.o		\
7007c478bd9Sstevel@tonic-gate	wsscanf.o		\
7017c478bd9Sstevel@tonic-gate	wsspn.o			\
7027c478bd9Sstevel@tonic-gate	wstod.o			\
7037c478bd9Sstevel@tonic-gate	wstok.o			\
7047c478bd9Sstevel@tonic-gate	wstol.o			\
7057c478bd9Sstevel@tonic-gate	wstoll.o		\
7067c478bd9Sstevel@tonic-gate	wsxfrm.o		\
7077c478bd9Sstevel@tonic-gate	wmemchr.o		\
7087c478bd9Sstevel@tonic-gate	wmemcmp.o		\
7097c478bd9Sstevel@tonic-gate	wmemcpy.o		\
7107c478bd9Sstevel@tonic-gate	wmemmove.o		\
7117c478bd9Sstevel@tonic-gate	wmemset.o		\
7127c478bd9Sstevel@tonic-gate	wcsstr.o		\
7137c478bd9Sstevel@tonic-gate	gettext.o		\
7147c478bd9Sstevel@tonic-gate	gettext_real.o		\
7157c478bd9Sstevel@tonic-gate	gettext_util.o		\
7167c478bd9Sstevel@tonic-gate	gettext_gnu.o		\
7177c478bd9Sstevel@tonic-gate	plural_parser.o		\
7187c478bd9Sstevel@tonic-gate	wdresolve.o		\
7197c478bd9Sstevel@tonic-gate	_ctype.o		\
7207c478bd9Sstevel@tonic-gate	isascii.o		\
7217c478bd9Sstevel@tonic-gate	toascii.o
7227c478bd9Sstevel@tonic-gate
7237c478bd9Sstevel@tonic-gatePORTI18N_COND=			\
7247c478bd9Sstevel@tonic-gate	wcstol_longlong.o	\
7257c478bd9Sstevel@tonic-gate	wcstoul_longlong.o
7267c478bd9Sstevel@tonic-gate
727f841f6adSrafAIOOBJS=			\
728f841f6adSraf	aio.o			\
729f841f6adSraf	aio_alloc.o		\
730dab53f99Sraf	posix_aio.o
731f841f6adSraf
732f841f6adSrafRTOBJS=				\
733f841f6adSraf	clock_timer.o		\
734f841f6adSraf	fallocate.o		\
735f841f6adSraf	mqueue.o		\
736f841f6adSraf	pos4obj.o		\
737f841f6adSraf	sched.o			\
738f841f6adSraf	sem.o			\
739f841f6adSraf	shm.o			\
740f841f6adSraf	sigev_thread.o
741f841f6adSraf
742f841f6adSrafTPOOLOBJS=			\
743f841f6adSraf	thread_pool.o
744f841f6adSraf
7457c478bd9Sstevel@tonic-gateTHREADSOBJS=			\
7467c478bd9Sstevel@tonic-gate	alloc.o			\
7477c478bd9Sstevel@tonic-gate	assfail.o		\
7487c478bd9Sstevel@tonic-gate	cancel.o		\
7497c478bd9Sstevel@tonic-gate	door_calls.o		\
7507c478bd9Sstevel@tonic-gate	pthr_attr.o		\
7517c478bd9Sstevel@tonic-gate	pthr_barrier.o		\
7527c478bd9Sstevel@tonic-gate	pthr_cond.o		\
7537c478bd9Sstevel@tonic-gate	pthr_mutex.o		\
7547c478bd9Sstevel@tonic-gate	pthr_rwlock.o		\
7557c478bd9Sstevel@tonic-gate	pthread.o		\
7567c478bd9Sstevel@tonic-gate	rtsched.o		\
7577c478bd9Sstevel@tonic-gate	rwlock.o		\
7587c478bd9Sstevel@tonic-gate	scalls.o		\
7597c478bd9Sstevel@tonic-gate	sema.o			\
7607c478bd9Sstevel@tonic-gate	sigaction.o		\
7617c478bd9Sstevel@tonic-gate	spawn.o			\
7627c478bd9Sstevel@tonic-gate	synch.o			\
7637c478bd9Sstevel@tonic-gate	tdb_agent.o		\
7647c478bd9Sstevel@tonic-gate	thr.o			\
7657c478bd9Sstevel@tonic-gate	thread_interface.o	\
7667c478bd9Sstevel@tonic-gate	tls.o			\
7677c478bd9Sstevel@tonic-gate	tsd.o
7687c478bd9Sstevel@tonic-gate
7697c478bd9Sstevel@tonic-gateTHREADSMACHOBJS=		\
7707c478bd9Sstevel@tonic-gate	machdep.o
7717c478bd9Sstevel@tonic-gate
7727c478bd9Sstevel@tonic-gateTHREADSASMOBJS=			\
7737c478bd9Sstevel@tonic-gate	asm_subr.o
7747c478bd9Sstevel@tonic-gate
7757c478bd9Sstevel@tonic-gateUNWINDMACHOBJS=			\
7767c478bd9Sstevel@tonic-gate	unwind.o
7777c478bd9Sstevel@tonic-gate
7787c478bd9Sstevel@tonic-gateUNWINDASMOBJS=			\
7797c478bd9Sstevel@tonic-gate	unwind_frame.o
7807c478bd9Sstevel@tonic-gate
7817c478bd9Sstevel@tonic-gate# Preserved solely to ease maintenance of 32-bit and 64-bit library builds
7827c478bd9Sstevel@tonic-gate# This macro should ALWAYS be empty; native APIs are already 'large file'.
7837c478bd9Sstevel@tonic-gatePORTSYS64=
7847c478bd9Sstevel@tonic-gate
7857c478bd9Sstevel@tonic-gatePORTSYS=			\
7867c478bd9Sstevel@tonic-gate	_autofssys.o		\
7877c478bd9Sstevel@tonic-gate	acctctl.o		\
7887c478bd9Sstevel@tonic-gate	bsd_signal.o		\
7897c478bd9Sstevel@tonic-gate	corectl.o		\
7907c478bd9Sstevel@tonic-gate	exacctsys.o		\
7917c478bd9Sstevel@tonic-gate	execl.o			\
7927c478bd9Sstevel@tonic-gate	execle.o		\
7937c478bd9Sstevel@tonic-gate	execv.o			\
7947c478bd9Sstevel@tonic-gate	fcntl.o			\
7957c478bd9Sstevel@tonic-gate	fsmisc.o		\
7967c478bd9Sstevel@tonic-gate	fstatat.o		\
7977c478bd9Sstevel@tonic-gate	fsync.o			\
7987c478bd9Sstevel@tonic-gate	getpeerucred.o		\
7997c478bd9Sstevel@tonic-gate	inst_sync.o		\
8007c478bd9Sstevel@tonic-gate	issetugid.o		\
80145916cd2Sjpk	label.o			\
8027c478bd9Sstevel@tonic-gate	libc_link.o		\
8037c478bd9Sstevel@tonic-gate	libc_open.o		\
8047c478bd9Sstevel@tonic-gate	lockf.o			\
8057c478bd9Sstevel@tonic-gate	lwp.o			\
8067c478bd9Sstevel@tonic-gate	lwp_cond.o		\
8077c478bd9Sstevel@tonic-gate	lwp_rwlock.o		\
8087c478bd9Sstevel@tonic-gate	lwp_sigmask.o		\
8097c478bd9Sstevel@tonic-gate	meminfosys.o		\
8107c478bd9Sstevel@tonic-gate	msgsys.o		\
8117c478bd9Sstevel@tonic-gate	nfssys.o		\
8127c478bd9Sstevel@tonic-gate	openat.o		\
8137c478bd9Sstevel@tonic-gate	pgrpsys.o		\
8147c478bd9Sstevel@tonic-gate	posix_sigwait.o		\
8157c478bd9Sstevel@tonic-gate	ppriv.o			\
8167c478bd9Sstevel@tonic-gate	psetsys.o		\
8177c478bd9Sstevel@tonic-gate	rctlsys.o		\
8187c478bd9Sstevel@tonic-gate	sbrk.o			\
8197c478bd9Sstevel@tonic-gate	semsys.o		\
8207c478bd9Sstevel@tonic-gate	set_errno.o		\
8217c478bd9Sstevel@tonic-gate	shmsys.o		\
8227c478bd9Sstevel@tonic-gate	siginterrupt.o		\
8237c478bd9Sstevel@tonic-gate	signal.o		\
8247c478bd9Sstevel@tonic-gate	sigpending.o		\
8257c478bd9Sstevel@tonic-gate	sigstack.o		\
8267c478bd9Sstevel@tonic-gate	tasksys.o		\
8277c478bd9Sstevel@tonic-gate	time.o			\
8287c478bd9Sstevel@tonic-gate	time_util.o		\
8297c478bd9Sstevel@tonic-gate	ucontext.o		\
8307c478bd9Sstevel@tonic-gate	ustat.o			\
8317c478bd9Sstevel@tonic-gate	zone.o
8327c478bd9Sstevel@tonic-gate
8337c478bd9Sstevel@tonic-gatePORTREGEX=			\
8347c478bd9Sstevel@tonic-gate	glob.o			\
8357c478bd9Sstevel@tonic-gate	regcmp.o		\
8367c478bd9Sstevel@tonic-gate	regex.o			\
8377c478bd9Sstevel@tonic-gate	wordexp.o
8387c478bd9Sstevel@tonic-gate
83960c80770ScraigmVALUES=	values-Xa.o
84060c80770Scraigm
8417c478bd9Sstevel@tonic-gateMOSTOBJS=			\
8427c478bd9Sstevel@tonic-gate	$(STRETS)		\
8437c478bd9Sstevel@tonic-gate	$(CRTOBJS)		\
8447c478bd9Sstevel@tonic-gate	$(DYNOBJS)		\
8457c478bd9Sstevel@tonic-gate	$(FPOBJS)		\
8467c478bd9Sstevel@tonic-gate	$(FPOBJS64)		\
8477c478bd9Sstevel@tonic-gate	$(FPASMOBJS)		\
8487c478bd9Sstevel@tonic-gate	$(ATOMICOBJS)		\
8497c478bd9Sstevel@tonic-gate	$(COMOBJS)		\
8507c478bd9Sstevel@tonic-gate	$(GENOBJS)		\
8517c478bd9Sstevel@tonic-gate	$(PORTFP)		\
8527c478bd9Sstevel@tonic-gate	$(PORTGEN)		\
8537c478bd9Sstevel@tonic-gate	$(PORTGEN64)		\
8547c478bd9Sstevel@tonic-gate	$(PORTI18N)		\
8557c478bd9Sstevel@tonic-gate	$(PORTI18N_COND)	\
8567c478bd9Sstevel@tonic-gate	$(PORTPRINT)		\
8577c478bd9Sstevel@tonic-gate	$(PORTPRINT_W)		\
8587c478bd9Sstevel@tonic-gate	$(PORTREGEX)		\
8597c478bd9Sstevel@tonic-gate	$(PORTSTDIO)		\
8607c478bd9Sstevel@tonic-gate	$(PORTSTDIO64)		\
8617c478bd9Sstevel@tonic-gate	$(PORTSTDIO_W)		\
8627c478bd9Sstevel@tonic-gate	$(PORTSYS)		\
8637c478bd9Sstevel@tonic-gate	$(PORTSYS64)		\
864f841f6adSraf	$(AIOOBJS)		\
865f841f6adSraf	$(RTOBJS)		\
866f841f6adSraf	$(TPOOLOBJS)		\
8677c478bd9Sstevel@tonic-gate	$(THREADSOBJS)		\
8687c478bd9Sstevel@tonic-gate	$(THREADSMACHOBJS)	\
8697c478bd9Sstevel@tonic-gate	$(THREADSASMOBJS)	\
8707c478bd9Sstevel@tonic-gate	$(UNWINDMACHOBJS)	\
8717c478bd9Sstevel@tonic-gate	$(UNWINDASMOBJS)	\
8727c478bd9Sstevel@tonic-gate	$(COMSYSOBJS)		\
8737c478bd9Sstevel@tonic-gate	$(SYSOBJS)		\
8747c478bd9Sstevel@tonic-gate	$(COMSYSOBJS64)		\
87560c80770Scraigm	$(SYSOBJS64)		\
87660c80770Scraigm	$(VALUES)
8777c478bd9Sstevel@tonic-gate
8787c478bd9Sstevel@tonic-gateTRACEOBJS=			\
8797c478bd9Sstevel@tonic-gate	plockstat.o
8807c478bd9Sstevel@tonic-gate
8817c478bd9Sstevel@tonic-gate# NOTE:	libc.so.1 must be linked with the minimal crti.o and crtn.o
8827c478bd9Sstevel@tonic-gate# modules whose source is provided in the $(SRC)/lib/common directory.
8837c478bd9Sstevel@tonic-gate# This must be done because otherwise the Sun C compiler would insert
8847c478bd9Sstevel@tonic-gate# its own versions of these modules and those versions contain code
8857c478bd9Sstevel@tonic-gate# to call out to C++ initialization functions.  Such C++ initialization
8867c478bd9Sstevel@tonic-gate# functions can call back into libc before thread initialization is
8877c478bd9Sstevel@tonic-gate# complete and this leads to segmentation violations and other problems.
8887c478bd9Sstevel@tonic-gate# Since libc contains no C++ code, linking with the minimal crti.o and
8897c478bd9Sstevel@tonic-gate# crtn.o modules is safe and avoids the problems described above.
8907c478bd9Sstevel@tonic-gateOBJECTS= $(CRTI) $(MOSTOBJS) $(CRTN)
8917c478bd9Sstevel@tonic-gateCRTSRCS= ../../common/sparcv9
8927c478bd9Sstevel@tonic-gate
8937c478bd9Sstevel@tonic-gate# include common library definitions
8947c478bd9Sstevel@tonic-gateinclude ../../Makefile.lib
8957c478bd9Sstevel@tonic-gateinclude ../../Makefile.lib.64
8967c478bd9Sstevel@tonic-gate
8977c478bd9Sstevel@tonic-gate# NOTE: libc_i18n.a will be part of libc.so.1.  Therefore, the compilation
8987c478bd9Sstevel@tonic-gate# conditions such as the settings of CFLAGS and CPPFLAGS for the libc_i18n stuff
8997c478bd9Sstevel@tonic-gate# need to be compatible with the ones for the libc stuff.  Whenever the changes
9007c478bd9Sstevel@tonic-gate# that affect the compilation conditions of libc happened, those for libc_i18n
9017c478bd9Sstevel@tonic-gate# also need to be updated.
9027c478bd9Sstevel@tonic-gate
9037c478bd9Sstevel@tonic-gateCFLAGS64 += $(CCVERBOSE)
9047c478bd9Sstevel@tonic-gate
9057c478bd9Sstevel@tonic-gate# This is necessary to avoid problems with calling _ex_unwind().
9067c478bd9Sstevel@tonic-gate# We probably don't want any inlining anyway.
9077c478bd9Sstevel@tonic-gateCFLAGS64 += -xinline=
9087c478bd9Sstevel@tonic-gate
9097c478bd9Sstevel@tonic-gate# Setting THREAD_DEBUG = -DTHREAD_DEBUG (make THREAD_DEBUG=-DTHREAD_DEBUG ...)
9107c478bd9Sstevel@tonic-gate# enables ASSERT() checking in the threads portion of the library.
9117c478bd9Sstevel@tonic-gate# This is automatically enabled for DEBUG builds, not for non-debug builds.
9127c478bd9Sstevel@tonic-gateTHREAD_DEBUG =
9137c478bd9Sstevel@tonic-gate$(NOT_RELEASE_BUILD)THREAD_DEBUG = -DTHREAD_DEBUG
9147c478bd9Sstevel@tonic-gate
9157c478bd9Sstevel@tonic-gateCFLAGS64 += $(THREAD_DEBUG)
9167c478bd9Sstevel@tonic-gate
9177c478bd9Sstevel@tonic-gateALTPICS= $(TRACEOBJS:%=pics/%)
9187c478bd9Sstevel@tonic-gate
9197c478bd9Sstevel@tonic-gate$(DYNLIB) := PICS += $(ROOTFS_LIBDIR64)/libc_i18n.a
9207c478bd9Sstevel@tonic-gate$(DYNLIB) := BUILD.SO = $(LD) -o $@ -G $(DYNFLAGS) $(PICS) $(ALTPICS)
9217c478bd9Sstevel@tonic-gate
922*f808c858SrafMAPFILES =	../port/mapfile-vers mapfile-vers
9237c478bd9Sstevel@tonic-gate
9247c478bd9Sstevel@tonic-gatesparcv9_C_PICFLAGS= -K PIC
9257c478bd9Sstevel@tonic-gateCFLAGS64 +=	$(EXTN_CFLAGS)
9267c478bd9Sstevel@tonic-gateCPPFLAGS=	-D_REENTRANT -Dsparc $(EXTN_CPPFLAGS) \
9277c478bd9Sstevel@tonic-gate		-I$(LIBCBASE)/inc -I../inc $(CPPFLAGS.master)
9287c478bd9Sstevel@tonic-gateASFLAGS=	-K PIC -P -D__STDC__ -D_ASM -D__sparcv9 $(CPPFLAGS) \
92960c80770Scraigm		$(sparcv9_AS_XARCH)
9307c478bd9Sstevel@tonic-gate
9317c478bd9Sstevel@tonic-gate# Inform the run-time linker about libc specialized initialization
9327c478bd9Sstevel@tonic-gateRTLDINFO =	-z rtldinfo=tls_rtldinfo
933*f808c858SrafDYNFLAGS +=	$(RTLDINFO)
9347c478bd9Sstevel@tonic-gate
9357c478bd9Sstevel@tonic-gateDYNFLAGS +=	$(EXTN_DYNFLAGS)
9367c478bd9Sstevel@tonic-gate
9377c478bd9Sstevel@tonic-gateBUILD.s=	$(AS) $(ASFLAGS) $< -o $@
9387c478bd9Sstevel@tonic-gate
9397c478bd9Sstevel@tonic-gate# Override this top level flag so the compiler builds in its native
9407c478bd9Sstevel@tonic-gate# C99 mode.  This has been enabled to support the complex arithmetic
9417c478bd9Sstevel@tonic-gate# added to libc.
9427c478bd9Sstevel@tonic-gateC99MODE=	$(C99_ENABLE)
9437c478bd9Sstevel@tonic-gate
9447c478bd9Sstevel@tonic-gate# libc method of building an archive
9457c478bd9Sstevel@tonic-gateBUILD.AR= $(RM) $@ ; \
9467c478bd9Sstevel@tonic-gate	$(AR) q $@ `$(LORDER) $(MOSTOBJS:%=$(DIR)/%)| $(TSORT)`
9477c478bd9Sstevel@tonic-gate
9487c478bd9Sstevel@tonic-gate# extra files for the clean target
9497c478bd9Sstevel@tonic-gateCLEANFILES=			\
9507c478bd9Sstevel@tonic-gate	../port/gen/errlst.c	\
9517c478bd9Sstevel@tonic-gate	../port/gen/new_list.c	\
9527c478bd9Sstevel@tonic-gate	assym.h			\
9537c478bd9Sstevel@tonic-gate	genassym		\
9547c478bd9Sstevel@tonic-gate	pics/crti.o		\
9557c478bd9Sstevel@tonic-gate	pics/crtn.o		\
9567c478bd9Sstevel@tonic-gate	$(ALTPICS)
9577c478bd9Sstevel@tonic-gate
958*f808c858SrafCLOBBERFILES +=	$(LIB_PIC)
9597c478bd9Sstevel@tonic-gate
9607c478bd9Sstevel@tonic-gate# list of C source for lint
9617c478bd9Sstevel@tonic-gateSRCS=							\
9627c478bd9Sstevel@tonic-gate	$(ATOMICOBJS:%.o=$(SRC)/common/atomic/%.c)	\
9637c478bd9Sstevel@tonic-gate	$(COMOBJS:%.o=$(SRC)/common/util/%.c)		\
9647c478bd9Sstevel@tonic-gate	$(PORTFP:%.o=../port/fp/%.c)			\
9657c478bd9Sstevel@tonic-gate	$(PORTGEN:%.o=../port/gen/%.c)			\
9667c478bd9Sstevel@tonic-gate	$(PORTI18N:%.o=../port/i18n/%.c)		\
9677c478bd9Sstevel@tonic-gate	$(PORTPRINT:%.o=../port/print/%.c)		\
9687c478bd9Sstevel@tonic-gate	$(PORTREGEX:%.o=../port/regex/%.c)		\
9697c478bd9Sstevel@tonic-gate	$(PORTSTDIO:%.o=../port/stdio/%.c)		\
9707c478bd9Sstevel@tonic-gate	$(PORTSYS:%.o=../port/sys/%.c)			\
971f841f6adSraf	$(AIOOBJS:%.o=../port/aio/%.c)			\
972f841f6adSraf	$(RTOBJS:%.o=../port/rt/%.c)			\
973f841f6adSraf	$(TPOOLOBJS:%.o=../port/tpool/%.c)		\
9747c478bd9Sstevel@tonic-gate	$(THREADSOBJS:%.o=../port/threads/%.c)		\
9757c478bd9Sstevel@tonic-gate	$(THREADSMACHOBJS:%.o=../$(MACH)/threads/%.c)	\
9767c478bd9Sstevel@tonic-gate	$(UNWINDMACHOBJS:%.o=../port/unwind/%.c)	\
9777c478bd9Sstevel@tonic-gate	$(FPOBJS:%.o=../$(MACH)/fp/%.c)			\
9787c478bd9Sstevel@tonic-gate	$(FPOBJS64:%.o=$(LIBCBASE)/fp/%.c)		\
9797c478bd9Sstevel@tonic-gate	$(LIBCBASE)/crt/_ftou.c				\
9807c478bd9Sstevel@tonic-gate	$(LIBCBASE)/gen/_xregs_clrptr.c			\
9817c478bd9Sstevel@tonic-gate	$(LIBCBASE)/gen/ecvt.c				\
9827c478bd9Sstevel@tonic-gate	$(LIBCBASE)/gen/getctxt.c			\
9837c478bd9Sstevel@tonic-gate	$(LIBCBASE)/gen/lexp10.c			\
9847c478bd9Sstevel@tonic-gate	$(LIBCBASE)/gen/llog10.c			\
9857c478bd9Sstevel@tonic-gate	$(LIBCBASE)/gen/makectxt.c			\
9867c478bd9Sstevel@tonic-gate	$(LIBCBASE)/gen/siginfolst.c			\
9877c478bd9Sstevel@tonic-gate	$(LIBCBASE)/gen/siglongjmp.c			\
9887c478bd9Sstevel@tonic-gate	$(LIBCBASE)/gen/swapctxt.c
9897c478bd9Sstevel@tonic-gate
9907c478bd9Sstevel@tonic-gate# conditional assignments
9917c478bd9Sstevel@tonic-gate# $(DYNLIB) $(LIB_PIC) := DYNOBJS = _rtbootld.o
99260c80770Scraigm$(DYNLIB) := CRTI = crti.o
9937c478bd9Sstevel@tonic-gate$(DYNLIB) := CRTN = crtn.o
9947c478bd9Sstevel@tonic-gate
9957c478bd9Sstevel@tonic-gate# Files which need the threads .il inline template
9967c478bd9Sstevel@tonic-gateTIL=				\
997f841f6adSraf	aio.o			\
9987c478bd9Sstevel@tonic-gate	alloc.o			\
9997c478bd9Sstevel@tonic-gate	assfail.o		\
10007c478bd9Sstevel@tonic-gate	atexit.o		\
10017c478bd9Sstevel@tonic-gate	atfork.o		\
10027c478bd9Sstevel@tonic-gate	cancel.o		\
10037c478bd9Sstevel@tonic-gate	door_calls.o		\
10047c478bd9Sstevel@tonic-gate	errno.o			\
10057c478bd9Sstevel@tonic-gate	getctxt.o		\
10067c478bd9Sstevel@tonic-gate	lwp.o			\
1007f841f6adSraf	ma.o			\
10087c478bd9Sstevel@tonic-gate	machdep.o		\
1009f841f6adSraf	posix_aio.o		\
10107c478bd9Sstevel@tonic-gate	pthr_attr.o		\
10117c478bd9Sstevel@tonic-gate	pthr_barrier.o		\
10127c478bd9Sstevel@tonic-gate	pthr_cond.o		\
10137c478bd9Sstevel@tonic-gate	pthr_mutex.o		\
10147c478bd9Sstevel@tonic-gate	pthr_rwlock.o		\
10157c478bd9Sstevel@tonic-gate	pthread.o		\
10167c478bd9Sstevel@tonic-gate	rand.o			\
10177c478bd9Sstevel@tonic-gate	rtsched.o		\
10187c478bd9Sstevel@tonic-gate	rwlock.o		\
10197c478bd9Sstevel@tonic-gate	scalls.o		\
10207c478bd9Sstevel@tonic-gate	sema.o			\
10217c478bd9Sstevel@tonic-gate	sigaction.o		\
1022f841f6adSraf	sigev_thread.o		\
10237c478bd9Sstevel@tonic-gate	spawn.o			\
10247c478bd9Sstevel@tonic-gate	stack.o			\
10257c478bd9Sstevel@tonic-gate	swapctxt.o		\
10267c478bd9Sstevel@tonic-gate	synch.o			\
10277c478bd9Sstevel@tonic-gate	tdb_agent.o		\
10287c478bd9Sstevel@tonic-gate	thr.o			\
10297c478bd9Sstevel@tonic-gate	thread_interface.o	\
1030f841f6adSraf	thread_pool.o		\
10317c478bd9Sstevel@tonic-gate	tls.o			\
10327c478bd9Sstevel@tonic-gate	tsd.o			\
10337c478bd9Sstevel@tonic-gate	unwind.o
10347c478bd9Sstevel@tonic-gate
10357c478bd9Sstevel@tonic-gate$(TIL:%=pics/%) := CFLAGS64 += $(LIBCBASE)/threads/sparcv9.il
10367c478bd9Sstevel@tonic-gate
10377c478bd9Sstevel@tonic-gate# Files in fp, port/fp subdirectories that need base.il inline template
10387c478bd9Sstevel@tonic-gateIL=				\
10397c478bd9Sstevel@tonic-gate	__flt_decim.o		\
10407c478bd9Sstevel@tonic-gate	decimal_bin.o
10417c478bd9Sstevel@tonic-gate
10427c478bd9Sstevel@tonic-gate$(IL:%=pics/%) := CFLAGS64 += $(LIBCBASE)/fp/base.il
10437c478bd9Sstevel@tonic-gate
10447c478bd9Sstevel@tonic-gate# Files in fp subdirectory which need __quad.il inline template
10457c478bd9Sstevel@tonic-gateQIL=				\
10467c478bd9Sstevel@tonic-gate	_Q_add.o		\
10477c478bd9Sstevel@tonic-gate	_Q_cmp.o		\
10487c478bd9Sstevel@tonic-gate	_Q_cmpe.o		\
10497c478bd9Sstevel@tonic-gate	_Q_div.o		\
10507c478bd9Sstevel@tonic-gate	_Q_dtoq.o		\
10517c478bd9Sstevel@tonic-gate	_Q_fcc.o		\
10527c478bd9Sstevel@tonic-gate	_Q_mul.o		\
10537c478bd9Sstevel@tonic-gate	_Q_qtod.o		\
10547c478bd9Sstevel@tonic-gate	_Q_qtoi.o		\
10557c478bd9Sstevel@tonic-gate	_Q_qtos.o		\
10567c478bd9Sstevel@tonic-gate	_Q_qtou.o		\
10577c478bd9Sstevel@tonic-gate	_Q_sqrt.o		\
10587c478bd9Sstevel@tonic-gate	_Q_stoq.o		\
10597c478bd9Sstevel@tonic-gate	_Q_sub.o		\
10607c478bd9Sstevel@tonic-gate	_Qp_qtox.o		\
10617c478bd9Sstevel@tonic-gate	_Qp_qtoux.o
10627c478bd9Sstevel@tonic-gate
10637c478bd9Sstevel@tonic-gate$(QIL:%=pics/%) := CFLAGS64 += ../$(MACH)/fp/__quad.il
10647c478bd9Sstevel@tonic-gatepics/_Qp%.o := CFLAGS64 += -I../$(MACH)/fp
10657c478bd9Sstevel@tonic-gatepics/_Q%.o := sparcv9_COPTFLAG = -xO4 -xchip=ultra
10667c478bd9Sstevel@tonic-gate
10677c478bd9Sstevel@tonic-gate# Files in crt subdirectory which need muldiv64.il inline template
10687c478bd9Sstevel@tonic-gate#CIL=	mul64.o divrem64.o
10697c478bd9Sstevel@tonic-gate#$(CIL:%=pics/%) := CFLAGS += $(LIBCBASE)/crt/mul64.il
10707c478bd9Sstevel@tonic-gate
10717c478bd9Sstevel@tonic-gate# large-file-aware components that should be built large
10727c478bd9Sstevel@tonic-gate
10737c478bd9Sstevel@tonic-gate#$(COMSYSOBJS64:%=pics/%) := \
10747c478bd9Sstevel@tonic-gate#	CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
10757c478bd9Sstevel@tonic-gate
10767c478bd9Sstevel@tonic-gate#$(SYSOBJS64:%=pics/%) := \
10777c478bd9Sstevel@tonic-gate#	CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
10787c478bd9Sstevel@tonic-gate
10797c478bd9Sstevel@tonic-gate#$(PORTGEN64:%=pics/%) := \
10807c478bd9Sstevel@tonic-gate#	CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
10817c478bd9Sstevel@tonic-gate
10827c478bd9Sstevel@tonic-gate#$(PORTSTDIO64:%=pics/%) := \
10837c478bd9Sstevel@tonic-gate#	CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
10847c478bd9Sstevel@tonic-gate
10857c478bd9Sstevel@tonic-gate#$(PORTSYS64:%=pics/%) := \
10867c478bd9Sstevel@tonic-gate#	CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
10877c478bd9Sstevel@tonic-gate
10887c478bd9Sstevel@tonic-gate$(PORTSTDIO_W:%=pics/%) := \
10897c478bd9Sstevel@tonic-gate	CPPFLAGS += -D_WIDE
10907c478bd9Sstevel@tonic-gate
10917c478bd9Sstevel@tonic-gate$(PORTPRINT_W:%=pics/%) := \
10927c478bd9Sstevel@tonic-gate	CPPFLAGS += -D_WIDE
10937c478bd9Sstevel@tonic-gate
10947c478bd9Sstevel@tonic-gate$(PORTI18N_COND:%=pics/%) := \
10957c478bd9Sstevel@tonic-gate	CPPFLAGS += -D_WCS_LONGLONG
10967c478bd9Sstevel@tonic-gate
10977c478bd9Sstevel@tonic-gate# Files which need extra optimization
10987c478bd9Sstevel@tonic-gatepics/getenv.o := sparcv9_COPTFLAG = -xO4
10997c478bd9Sstevel@tonic-gate
11007c478bd9Sstevel@tonic-gate.KEEP_STATE:
11017c478bd9Sstevel@tonic-gate
11027c478bd9Sstevel@tonic-gateall: $(LIBS) $(LIB_PIC)
11037c478bd9Sstevel@tonic-gate
11047c478bd9Sstevel@tonic-gatelint	:=	CPPFLAGS += -I../$(MACH)/fp
11057c478bd9Sstevel@tonic-gatelint	:=	CPPFLAGS += -D_MSE_INT_H -D_LCONV_C99
11067c478bd9Sstevel@tonic-gatelint	:=	LINTFLAGS64 += -mn
11077c478bd9Sstevel@tonic-gate
11087c478bd9Sstevel@tonic-gatelint:
11097c478bd9Sstevel@tonic-gate	@echo $(LINT.c) ... $(LDLIBS)
11107c478bd9Sstevel@tonic-gate	@$(LINT.c) $(SRCS) $(LDLIBS)
11117c478bd9Sstevel@tonic-gate
11127c478bd9Sstevel@tonic-gate$(LINTLIB):= SRCS=../port/llib-lc
11137c478bd9Sstevel@tonic-gate$(LINTLIB):= CPPFLAGS += -D_MSE_INT_H
11147c478bd9Sstevel@tonic-gate$(LINTLIB):= LINTFLAGS64=-nvx -Xarch=v9
11157c478bd9Sstevel@tonic-gate
11167c478bd9Sstevel@tonic-gate# object files that depend on inline template
11177c478bd9Sstevel@tonic-gate$(TIL:%=pics/%): $(LIBCBASE)/threads/sparcv9.il
11187c478bd9Sstevel@tonic-gate$(IL:%=pics/%): $(LIBCBASE)/fp/base.il
11197c478bd9Sstevel@tonic-gate$(QIL:%=pics/%): ../$(MACH)/fp/__quad.il
11207c478bd9Sstevel@tonic-gate#$(CIL:%=pics/%): $(LIBCBASE)/crt/muldiv64.il
11217c478bd9Sstevel@tonic-gate
11227c478bd9Sstevel@tonic-gate# include common libc targets
11237c478bd9Sstevel@tonic-gateinclude ../Makefile.targ
11247c478bd9Sstevel@tonic-gate
11257c478bd9Sstevel@tonic-gate# We need to strip out all CTF and DOF data from the static library
11267c478bd9Sstevel@tonic-gate$(LIB_PIC) := DIR = pics
11277c478bd9Sstevel@tonic-gate$(LIB_PIC): pics $$(PICS)
11287c478bd9Sstevel@tonic-gate	$(BUILD.AR)
11297c478bd9Sstevel@tonic-gate	$(MCS) -d -n .SUNW_ctf $@ > /dev/null 2>&1
11307c478bd9Sstevel@tonic-gate	$(MCS) -d -n .SUNW_dof $@ > /dev/null 2>&1
11317c478bd9Sstevel@tonic-gate	$(AR) -ts $@ > /dev/null
11327c478bd9Sstevel@tonic-gate	$(POST_PROCESS_A)
11337c478bd9Sstevel@tonic-gate
11347c478bd9Sstevel@tonic-gate# special cases
11357c478bd9Sstevel@tonic-gate#$(STRETS:%=pics/%): crt/stret.s
11367c478bd9Sstevel@tonic-gate#	$(AS) $(ASFLAGS) -DSTRET$(@F:stret%.o=%) crt/stret.s -o $@
11377c478bd9Sstevel@tonic-gate#	$(POST_PROCESS_O)
11387c478bd9Sstevel@tonic-gate
11397c478bd9Sstevel@tonic-gate#crt/_rtbootld.s:	crt/_rtboot.s crt/_rtld.c
11407c478bd9Sstevel@tonic-gate#	$(CC) $(CPPFLAGS) -O -S -K pic crt/_rtld.c -o crt/_rtld.s
11417c478bd9Sstevel@tonic-gate#	$(CAT) crt/_rtboot.s crt/_rtld.s > $@
11427c478bd9Sstevel@tonic-gate#	$(RM) crt/_rtld.s
11437c478bd9Sstevel@tonic-gate
11447c478bd9Sstevel@tonic-gateASSYMDEP_OBJS=			\
11457c478bd9Sstevel@tonic-gate	_lwp_mutex_unlock.o	\
11467c478bd9Sstevel@tonic-gate	_stack_grow.o		\
11477c478bd9Sstevel@tonic-gate	asm_subr.o		\
11487c478bd9Sstevel@tonic-gate	tls_get_addr.o		\
11497c478bd9Sstevel@tonic-gate	unwind_frame.o		\
11507c478bd9Sstevel@tonic-gate	vfork.o
11517c478bd9Sstevel@tonic-gate
11527c478bd9Sstevel@tonic-gate$(ASSYMDEP_OBJS:%=pics/%)	:=	CPPFLAGS += -I.
11537c478bd9Sstevel@tonic-gate
11547c478bd9Sstevel@tonic-gate$(ASSYMDEP_OBJS:%=pics/%): assym.h
11557c478bd9Sstevel@tonic-gate
11567c478bd9Sstevel@tonic-gate# assym.h build rules
11577c478bd9Sstevel@tonic-gate
11587c478bd9Sstevel@tonic-gateGENASSYM_C = ../$(MACH)/genassym.c
11597c478bd9Sstevel@tonic-gate
11607c478bd9Sstevel@tonic-gate# XXX	A hack.  Perhaps this should be 'CPPFLAGS.native' and
11617c478bd9Sstevel@tonic-gate#	live in Makefile.master
11627c478bd9Sstevel@tonic-gate
11637c478bd9Sstevel@tonic-gateCPPFLAGS.genassym = \
11647c478bd9Sstevel@tonic-gate	$(ENVCPPFLAGS1) $(ENVCPPFLAGS2) $(ENVCPPFLAGS3) $(ENVCPPFLAGS4)
11657c478bd9Sstevel@tonic-gate
11667c478bd9Sstevel@tonic-gategenassym: $(GENASSYM_C)
11677c478bd9Sstevel@tonic-gate	$(NATIVECC) -I$(LIBCBASE)/inc -I../inc \
11687c478bd9Sstevel@tonic-gate		$(CPPFLAGS.genassym) -o $@ $(GENASSYM_C)
11697c478bd9Sstevel@tonic-gate
11707c478bd9Sstevel@tonic-gateOFFSETS = ../$(MACH)/offsets.in
11717c478bd9Sstevel@tonic-gate
11727c478bd9Sstevel@tonic-gateassym.h: $(OFFSETS) genassym
11737c478bd9Sstevel@tonic-gate	$(OFFSETS_CREATE) <$(OFFSETS) >$@
11747c478bd9Sstevel@tonic-gate	./genassym >>$@
11757c478bd9Sstevel@tonic-gate
11767c478bd9Sstevel@tonic-gate# derived C source and related explicit dependencies
11777c478bd9Sstevel@tonic-gate../port/gen/new_list.c: ../port/gen/errlist ../port/gen/errlist.awk
11787c478bd9Sstevel@tonic-gate	cd ../port/gen; pwd; $(AWK) -f errlist.awk < errlist
11797c478bd9Sstevel@tonic-gate
11807c478bd9Sstevel@tonic-gatepics/new_list.o: ../port/gen/new_list.c
1181