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