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