xref: /onnv-gate/usr/src/lib/libc/i386/Makefile.com (revision 13093:48f2dbca79a2)
10Sstevel@tonic-gate#
20Sstevel@tonic-gate# CDDL HEADER START
30Sstevel@tonic-gate#
40Sstevel@tonic-gate# The contents of this file are subject to the terms of the
51475Scasper# Common Development and Distribution License (the "License").
61475Scasper# You may not use this file except in compliance with the License.
70Sstevel@tonic-gate#
80Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
90Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
100Sstevel@tonic-gate# See the License for the specific language governing permissions
110Sstevel@tonic-gate# and limitations under the License.
120Sstevel@tonic-gate#
130Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
140Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
150Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
160Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
170Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
180Sstevel@tonic-gate#
190Sstevel@tonic-gate# CDDL HEADER END
200Sstevel@tonic-gate#
210Sstevel@tonic-gate#
2212692SAli.Bahrami@Oracle.COM# Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
230Sstevel@tonic-gate#
240Sstevel@tonic-gate
2512719SRod.Evans@Sun.COMLIBCDIR=	$(SRC)/lib/libc
2612719SRod.Evans@Sun.COMLIB_PIC=	libc_pic.a
2712719SRod.Evans@Sun.COMVERS=		.1
2812719SRod.Evans@Sun.COMCPP=		/usr/lib/cpp
290Sstevel@tonic-gateTARGET_ARCH=	i386
300Sstevel@tonic-gate
3112719SRod.Evans@Sun.COMVALUES=		values-Xa.o
320Sstevel@tonic-gate
330Sstevel@tonic-gate# objects are grouped by source directory
340Sstevel@tonic-gate
350Sstevel@tonic-gate# local objects
360Sstevel@tonic-gateSTRETS=
370Sstevel@tonic-gate
380Sstevel@tonic-gateCRTOBJS=			\
390Sstevel@tonic-gate	cerror.o		\
400Sstevel@tonic-gate	cerror64.o
410Sstevel@tonic-gate
425891SrafDYNOBJS=			\
435891Sraf	_rtbootld.o
440Sstevel@tonic-gate
450Sstevel@tonic-gateFPOBJS=				\
460Sstevel@tonic-gate	_D_cplx_div.o		\
470Sstevel@tonic-gate	_D_cplx_div_ix.o	\
480Sstevel@tonic-gate	_D_cplx_div_rx.o	\
490Sstevel@tonic-gate	_D_cplx_lr_div.o	\
500Sstevel@tonic-gate	_D_cplx_lr_div_ix.o	\
510Sstevel@tonic-gate	_D_cplx_lr_div_rx.o	\
520Sstevel@tonic-gate	_D_cplx_mul.o		\
530Sstevel@tonic-gate	_F_cplx_div.o		\
540Sstevel@tonic-gate	_F_cplx_div_ix.o	\
550Sstevel@tonic-gate	_F_cplx_div_rx.o	\
560Sstevel@tonic-gate	_F_cplx_lr_div.o	\
570Sstevel@tonic-gate	_F_cplx_lr_div_ix.o	\
580Sstevel@tonic-gate	_F_cplx_lr_div_rx.o	\
590Sstevel@tonic-gate	_F_cplx_mul.o		\
600Sstevel@tonic-gate	_X_cplx_div.o		\
610Sstevel@tonic-gate	_X_cplx_div_ix.o	\
620Sstevel@tonic-gate	_X_cplx_div_rx.o	\
630Sstevel@tonic-gate	_X_cplx_lr_div.o	\
640Sstevel@tonic-gate	_X_cplx_lr_div_ix.o	\
650Sstevel@tonic-gate	_X_cplx_lr_div_rx.o	\
660Sstevel@tonic-gate	_X_cplx_mul.o		\
670Sstevel@tonic-gate	_base_il.o		\
680Sstevel@tonic-gate	fpgetmask.o		\
690Sstevel@tonic-gate	fpgetround.o		\
700Sstevel@tonic-gate	fpgetsticky.o		\
710Sstevel@tonic-gate	fpsetmask.o		\
720Sstevel@tonic-gate	fpsetround.o		\
730Sstevel@tonic-gate	fpsetsticky.o		\
740Sstevel@tonic-gate	fpstart.o
750Sstevel@tonic-gate
760Sstevel@tonic-gateFPASMOBJS=			\
770Sstevel@tonic-gate	__xgetRD.o		\
780Sstevel@tonic-gate	_xtoll.o		\
790Sstevel@tonic-gate	_xtoull.o		\
800Sstevel@tonic-gate	fpcw.o
810Sstevel@tonic-gate
820Sstevel@tonic-gateATOMICOBJS=			\
830Sstevel@tonic-gate	atomic.o
840Sstevel@tonic-gate
855331SamwXATTROBJS=			\
865331Samw	xattr_common.o
875331Samw
880Sstevel@tonic-gateCOMOBJS=			\
890Sstevel@tonic-gate	bcmp.o			\
900Sstevel@tonic-gate	bcopy.o			\
910Sstevel@tonic-gate	bsearch.o		\
920Sstevel@tonic-gate	bzero.o			\
930Sstevel@tonic-gate	qsort.o			\
940Sstevel@tonic-gate	strtol.o		\
958872SJordan.Vaughan@Sun.com	strtoul.o		\
968872SJordan.Vaughan@Sun.com	strtoll.o		\
978872SJordan.Vaughan@Sun.com	strtoull.o
980Sstevel@tonic-gate
993746SrafDTRACEOBJS=			\
1003746Sraf	dtrace_data.o
1013746Sraf
1020Sstevel@tonic-gateGENOBJS=			\
1030Sstevel@tonic-gate	_div64.o		\
1041016Sraf	_divdi3.o		\
1050Sstevel@tonic-gate	_getsp.o		\
1060Sstevel@tonic-gate	_mul64.o		\
1070Sstevel@tonic-gate	abs.o			\
1080Sstevel@tonic-gate	alloca.o		\
1090Sstevel@tonic-gate	byteorder.o		\
1107421SDaniel.Anderson@Sun.COM	byteorder64.o		\
1110Sstevel@tonic-gate	cuexit.o		\
1120Sstevel@tonic-gate	ecvt.o			\
1130Sstevel@tonic-gate	errlst.o		\
1140Sstevel@tonic-gate	i386_data.o		\
1150Sstevel@tonic-gate	ladd.o			\
1160Sstevel@tonic-gate	ldivide.o		\
1170Sstevel@tonic-gate	lmul.o			\
1180Sstevel@tonic-gate	lock.o			\
1190Sstevel@tonic-gate	lshiftl.o		\
1200Sstevel@tonic-gate	lsign.o			\
1210Sstevel@tonic-gate	lsub.o			\
1220Sstevel@tonic-gate	makectxt.o		\
1230Sstevel@tonic-gate	memccpy.o		\
1240Sstevel@tonic-gate	memchr.o		\
1250Sstevel@tonic-gate	memcmp.o		\
1260Sstevel@tonic-gate	memcpy.o		\
1270Sstevel@tonic-gate	memset.o		\
1280Sstevel@tonic-gate	new_list.o		\
1290Sstevel@tonic-gate	setjmp.o		\
1300Sstevel@tonic-gate	siginfolst.o		\
1310Sstevel@tonic-gate	siglongjmp.o		\
1320Sstevel@tonic-gate	strcat.o		\
1330Sstevel@tonic-gate	strchr.o		\
1340Sstevel@tonic-gate	strcmp.o		\
1350Sstevel@tonic-gate	strcpy.o		\
1360Sstevel@tonic-gate	strlen.o		\
1370Sstevel@tonic-gate	strncat.o		\
1380Sstevel@tonic-gate	strncmp.o		\
1390Sstevel@tonic-gate	strncpy.o		\
1403153Sdg199075	strnlen.o		\
1410Sstevel@tonic-gate	strrchr.o		\
1420Sstevel@tonic-gate	sync_instruction_memory.o
1430Sstevel@tonic-gate
1440Sstevel@tonic-gate# sysobjs that contain large-file interfaces
1450Sstevel@tonic-gateCOMSYSOBJS64=			\
1460Sstevel@tonic-gate	fstatvfs64.o		\
1470Sstevel@tonic-gate	getdents64.o		\
1480Sstevel@tonic-gate	getrlimit64.o		\
1490Sstevel@tonic-gate	lseek64.o		\
1509264SRoger.Faulkner@Sun.COM	mmap64.o		\
1510Sstevel@tonic-gate	pread64.o		\
1520Sstevel@tonic-gate	pwrite64.o		\
1530Sstevel@tonic-gate	setrlimit64.o		\
1540Sstevel@tonic-gate	statvfs64.o
1550Sstevel@tonic-gate
1569170SRoger.Faulkner@Sun.COMSYSOBJS64=
1570Sstevel@tonic-gate
1580Sstevel@tonic-gateCOMSYSOBJS=			\
1590Sstevel@tonic-gate	__clock_timer.o		\
1600Sstevel@tonic-gate	__getloadavg.o		\
1610Sstevel@tonic-gate	__rusagesys.o		\
1620Sstevel@tonic-gate	__signotify.o		\
1630Sstevel@tonic-gate	__sigrt.o		\
1640Sstevel@tonic-gate	__time.o		\
1650Sstevel@tonic-gate	_lgrp_home_fast.o	\
1660Sstevel@tonic-gate	_lgrpsys.o		\
1670Sstevel@tonic-gate	_nfssys.o		\
1680Sstevel@tonic-gate	_portfs.o		\
1690Sstevel@tonic-gate	_pset.o			\
1700Sstevel@tonic-gate	_rpcsys.o		\
1710Sstevel@tonic-gate	_sigaction.o		\
1720Sstevel@tonic-gate	_so_accept.o		\
1730Sstevel@tonic-gate	_so_bind.o		\
1740Sstevel@tonic-gate	_so_connect.o		\
1750Sstevel@tonic-gate	_so_getpeername.o	\
1760Sstevel@tonic-gate	_so_getsockname.o	\
1770Sstevel@tonic-gate	_so_getsockopt.o	\
1780Sstevel@tonic-gate	_so_listen.o		\
1790Sstevel@tonic-gate	_so_recv.o		\
1800Sstevel@tonic-gate	_so_recvfrom.o		\
1810Sstevel@tonic-gate	_so_recvmsg.o		\
1820Sstevel@tonic-gate	_so_send.o		\
1830Sstevel@tonic-gate	_so_sendmsg.o		\
1840Sstevel@tonic-gate	_so_sendto.o		\
1850Sstevel@tonic-gate	_so_setsockopt.o	\
1860Sstevel@tonic-gate	_so_shutdown.o		\
1870Sstevel@tonic-gate	_so_socket.o		\
1880Sstevel@tonic-gate	_so_socketpair.o	\
1890Sstevel@tonic-gate	_sockconfig.o		\
1900Sstevel@tonic-gate	acct.o			\
1910Sstevel@tonic-gate	acl.o			\
1920Sstevel@tonic-gate	adjtime.o		\
1930Sstevel@tonic-gate	alarm.o			\
1940Sstevel@tonic-gate	brk.o			\
1950Sstevel@tonic-gate	chdir.o			\
1960Sstevel@tonic-gate	chroot.o		\
1970Sstevel@tonic-gate	cladm.o			\
1980Sstevel@tonic-gate	close.o			\
1990Sstevel@tonic-gate	execve.o		\
2000Sstevel@tonic-gate	exit.o			\
2010Sstevel@tonic-gate	facl.o			\
2020Sstevel@tonic-gate	fchdir.o		\
2030Sstevel@tonic-gate	fchroot.o		\
2040Sstevel@tonic-gate	fdsync.o		\
2050Sstevel@tonic-gate	fpathconf.o		\
2060Sstevel@tonic-gate	fstatfs.o		\
2070Sstevel@tonic-gate	fstatvfs.o		\
2080Sstevel@tonic-gate	getcpuid.o		\
2090Sstevel@tonic-gate	getdents.o		\
2100Sstevel@tonic-gate	getegid.o		\
2110Sstevel@tonic-gate	geteuid.o		\
2120Sstevel@tonic-gate	getgid.o		\
2130Sstevel@tonic-gate	getgroups.o		\
2140Sstevel@tonic-gate	gethrtime.o		\
2150Sstevel@tonic-gate	getitimer.o		\
2160Sstevel@tonic-gate	getmsg.o		\
2170Sstevel@tonic-gate	getpid.o		\
2180Sstevel@tonic-gate	getpmsg.o		\
2190Sstevel@tonic-gate	getppid.o		\
2200Sstevel@tonic-gate	getrlimit.o		\
2210Sstevel@tonic-gate	getuid.o		\
2220Sstevel@tonic-gate	gtty.o			\
2230Sstevel@tonic-gate	install_utrap.o		\
2240Sstevel@tonic-gate	ioctl.o			\
2250Sstevel@tonic-gate	kaio.o			\
2260Sstevel@tonic-gate	kill.o			\
2270Sstevel@tonic-gate	llseek.o		\
2280Sstevel@tonic-gate	lseek.o			\
2298212SMichael.Corcoran@Sun.COM	mmapobjsys.o		\
2300Sstevel@tonic-gate	memcntl.o		\
2310Sstevel@tonic-gate	mincore.o		\
2329264SRoger.Faulkner@Sun.COM	mmap.o			\
2330Sstevel@tonic-gate	modctl.o		\
2340Sstevel@tonic-gate	mount.o			\
2350Sstevel@tonic-gate	mprotect.o		\
2369264SRoger.Faulkner@Sun.COM	munmap.o		\
2370Sstevel@tonic-gate	nice.o			\
2380Sstevel@tonic-gate	ntp_adjtime.o		\
2390Sstevel@tonic-gate	ntp_gettime.o		\
2400Sstevel@tonic-gate	p_online.o		\
2410Sstevel@tonic-gate	pathconf.o		\
2420Sstevel@tonic-gate	pause.o			\
2430Sstevel@tonic-gate	pcsample.o		\
2440Sstevel@tonic-gate	pollsys.o		\
2450Sstevel@tonic-gate	pread.o			\
2460Sstevel@tonic-gate	priocntlset.o		\
2470Sstevel@tonic-gate	processor_bind.o	\
2480Sstevel@tonic-gate	processor_info.o	\
2490Sstevel@tonic-gate	profil.o		\
2500Sstevel@tonic-gate	putmsg.o		\
2510Sstevel@tonic-gate	putpmsg.o		\
2520Sstevel@tonic-gate	pwrite.o		\
2530Sstevel@tonic-gate	read.o			\
2540Sstevel@tonic-gate	readv.o			\
2550Sstevel@tonic-gate	resolvepath.o		\
2560Sstevel@tonic-gate	seteguid.o		\
2570Sstevel@tonic-gate	setgid.o		\
2580Sstevel@tonic-gate	setgroups.o		\
2590Sstevel@tonic-gate	setitimer.o		\
2600Sstevel@tonic-gate	setreid.o		\
2610Sstevel@tonic-gate	setrlimit.o		\
2620Sstevel@tonic-gate	setuid.o		\
2630Sstevel@tonic-gate	sigaltstk.o		\
2640Sstevel@tonic-gate	sigprocmsk.o		\
2650Sstevel@tonic-gate	sigsendset.o		\
2660Sstevel@tonic-gate	sigsuspend.o		\
2670Sstevel@tonic-gate	statfs.o		\
2680Sstevel@tonic-gate	statvfs.o		\
2690Sstevel@tonic-gate	stty.o			\
2700Sstevel@tonic-gate	sync.o			\
2710Sstevel@tonic-gate	sysconfig.o		\
2720Sstevel@tonic-gate	sysfs.o			\
2730Sstevel@tonic-gate	sysinfo.o		\
2740Sstevel@tonic-gate	syslwp.o		\
2750Sstevel@tonic-gate	times.o			\
2760Sstevel@tonic-gate	ulimit.o		\
2770Sstevel@tonic-gate	umask.o			\
2780Sstevel@tonic-gate	umount2.o		\
2790Sstevel@tonic-gate	utssys.o		\
2802712Snn35248	uucopy.o		\
2810Sstevel@tonic-gate	vhangup.o		\
2820Sstevel@tonic-gate	waitid.o		\
2830Sstevel@tonic-gate	write.o			\
2840Sstevel@tonic-gate	writev.o		\
2850Sstevel@tonic-gate	yield.o
2860Sstevel@tonic-gate
2870Sstevel@tonic-gateSYSOBJS=			\
2880Sstevel@tonic-gate	__clock_gettime.o	\
2890Sstevel@tonic-gate	__getcontext.o		\
2900Sstevel@tonic-gate	__uadmin.o		\
2910Sstevel@tonic-gate	_lwp_mutex_unlock.o	\
2920Sstevel@tonic-gate	_stack_grow.o		\
2930Sstevel@tonic-gate	door.o			\
2943235Sraf	forkx.o			\
2953235Sraf	forkallx.o		\
2960Sstevel@tonic-gate	getcontext.o		\
2970Sstevel@tonic-gate	gettimeofday.o		\
2980Sstevel@tonic-gate	lwp_private.o		\
2990Sstevel@tonic-gate	nuname.o		\
3000Sstevel@tonic-gate	pipe.o			\
3010Sstevel@tonic-gate	ptrace.o		\
3020Sstevel@tonic-gate	syscall.o		\
3030Sstevel@tonic-gate	sysi86.o		\
3040Sstevel@tonic-gate	tls_get_addr.o		\
3050Sstevel@tonic-gate	uadmin.o		\
3060Sstevel@tonic-gate	umount.o		\
3070Sstevel@tonic-gate	uname.o			\
3083235Sraf	vforkx.o		\
3090Sstevel@tonic-gate	xstat.o
3100Sstevel@tonic-gate
31112719SRod.Evans@Sun.COM# objects under $(LIBCDIR)/port which contain transitional large file interfaces
3120Sstevel@tonic-gatePORTGEN64=			\
3130Sstevel@tonic-gate	_xftw64.o		\
3140Sstevel@tonic-gate	attropen64.o		\
3150Sstevel@tonic-gate	ftw64.o			\
3160Sstevel@tonic-gate	mkstemp64.o		\
3170Sstevel@tonic-gate	nftw64.o		\
3180Sstevel@tonic-gate	tell64.o		\
3190Sstevel@tonic-gate	truncate64.o
3200Sstevel@tonic-gate
32112719SRod.Evans@Sun.COM# objects from source under $(LIBCDIR)/port
3220Sstevel@tonic-gatePORTFP=				\
3230Sstevel@tonic-gate	__flt_decim.o		\
3240Sstevel@tonic-gate	__flt_rounds.o		\
3250Sstevel@tonic-gate	__tbl_10_b.o		\
3260Sstevel@tonic-gate	__tbl_10_h.o		\
3270Sstevel@tonic-gate	__tbl_10_s.o		\
3280Sstevel@tonic-gate	__tbl_2_b.o		\
3290Sstevel@tonic-gate	__tbl_2_h.o		\
3300Sstevel@tonic-gate	__tbl_2_s.o		\
3310Sstevel@tonic-gate	__tbl_fdq.o		\
3320Sstevel@tonic-gate	__tbl_tens.o		\
3330Sstevel@tonic-gate	__x_power.o		\
3340Sstevel@tonic-gate	_base_sup.o		\
3350Sstevel@tonic-gate	aconvert.o		\
3360Sstevel@tonic-gate	decimal_bin.o		\
3370Sstevel@tonic-gate	double_decim.o		\
3380Sstevel@tonic-gate	econvert.o		\
3390Sstevel@tonic-gate	fconvert.o		\
3400Sstevel@tonic-gate	file_decim.o		\
3410Sstevel@tonic-gate	finite.o		\
3420Sstevel@tonic-gate	fp_data.o		\
3430Sstevel@tonic-gate	func_decim.o		\
3440Sstevel@tonic-gate	gconvert.o		\
3450Sstevel@tonic-gate	hex_bin.o		\
3460Sstevel@tonic-gate	ieee_globals.o		\
3470Sstevel@tonic-gate	pack_float.o		\
3480Sstevel@tonic-gate	sigfpe.o		\
3490Sstevel@tonic-gate	string_decim.o
3500Sstevel@tonic-gate
3510Sstevel@tonic-gatePORTGEN=			\
3520Sstevel@tonic-gate	_env_data.o		\
3530Sstevel@tonic-gate	_xftw.o			\
3540Sstevel@tonic-gate	a64l.o			\
3550Sstevel@tonic-gate	abort.o			\
3560Sstevel@tonic-gate	addsev.o		\
357*13093SRoger.Faulkner@Oracle.COM	ascii_strcasecmp.o	\
358*13093SRoger.Faulkner@Oracle.COM	ascii_strncasecmp.o	\
3590Sstevel@tonic-gate	assert.o		\
3600Sstevel@tonic-gate	atof.o			\
3610Sstevel@tonic-gate	atoi.o			\
3620Sstevel@tonic-gate	atol.o			\
3630Sstevel@tonic-gate	atoll.o			\
3645331Samw	attrat.o		\
3650Sstevel@tonic-gate	attropen.o		\
3660Sstevel@tonic-gate	atexit.o		\
3670Sstevel@tonic-gate	atfork.o		\
3680Sstevel@tonic-gate	basename.o		\
3690Sstevel@tonic-gate	calloc.o		\
3700Sstevel@tonic-gate	catgets.o		\
3710Sstevel@tonic-gate	catopen.o		\
3720Sstevel@tonic-gate	cfgetispeed.o		\
3730Sstevel@tonic-gate	cfgetospeed.o		\
3740Sstevel@tonic-gate	cfree.o			\
3750Sstevel@tonic-gate	cfsetispeed.o		\
3760Sstevel@tonic-gate	cfsetospeed.o		\
3770Sstevel@tonic-gate	cftime.o		\
3780Sstevel@tonic-gate	clock.o			\
3790Sstevel@tonic-gate	closedir.o		\
3800Sstevel@tonic-gate	closefrom.o		\
3810Sstevel@tonic-gate	confstr.o		\
3820Sstevel@tonic-gate	crypt.o			\
3830Sstevel@tonic-gate	csetlen.o		\
3840Sstevel@tonic-gate	ctime.o			\
3850Sstevel@tonic-gate	ctime_r.o		\
38610547SVladimir.Kotal@Sun.COM	daemon.o		\
3872923Sraf	deflt.o			\
3880Sstevel@tonic-gate	directio.o		\
3890Sstevel@tonic-gate	dirname.o		\
3900Sstevel@tonic-gate	div.o			\
3910Sstevel@tonic-gate	drand48.o		\
39211798SRoger.Faulkner@Sun.COM	dup.o			\
3930Sstevel@tonic-gate	env_data.o		\
3944891Svk199839	err.o			\
3950Sstevel@tonic-gate	errno.o			\
3960Sstevel@tonic-gate	euclen.o		\
3970Sstevel@tonic-gate	event_port.o		\
3980Sstevel@tonic-gate	execvp.o		\
3990Sstevel@tonic-gate	fattach.o		\
4000Sstevel@tonic-gate	fdetach.o		\
4010Sstevel@tonic-gate	fdopendir.o		\
402*13093SRoger.Faulkner@Oracle.COM	ffs.o			\
403*13093SRoger.Faulkner@Oracle.COM	fls.o			\
4040Sstevel@tonic-gate	fmtmsg.o		\
4050Sstevel@tonic-gate	ftime.o			\
4060Sstevel@tonic-gate	ftok.o			\
4070Sstevel@tonic-gate	ftw.o			\
4080Sstevel@tonic-gate	gcvt.o			\
4090Sstevel@tonic-gate	getauxv.o		\
4100Sstevel@tonic-gate	getcwd.o		\
4110Sstevel@tonic-gate	getdate_err.o		\
4120Sstevel@tonic-gate	getdtblsize.o		\
4130Sstevel@tonic-gate	getenv.o		\
4140Sstevel@tonic-gate	getexecname.o		\
4150Sstevel@tonic-gate	getgrnam.o		\
4160Sstevel@tonic-gate	getgrnam_r.o		\
4170Sstevel@tonic-gate	gethostid.o		\
4180Sstevel@tonic-gate	gethostname.o		\
4190Sstevel@tonic-gate	gethz.o			\
4200Sstevel@tonic-gate	getisax.o		\
4210Sstevel@tonic-gate	getloadavg.o		\
4220Sstevel@tonic-gate	getlogin.o		\
4230Sstevel@tonic-gate	getmntent.o		\
4240Sstevel@tonic-gate	getnetgrent.o		\
425*13093SRoger.Faulkner@Oracle.COM	get_nprocs.o		\
4260Sstevel@tonic-gate	getopt.o		\
4270Sstevel@tonic-gate	getopt_long.o		\
4280Sstevel@tonic-gate	getpagesize.o		\
4290Sstevel@tonic-gate	getpw.o			\
4300Sstevel@tonic-gate	getpwnam.o		\
4310Sstevel@tonic-gate	getpwnam_r.o		\
4320Sstevel@tonic-gate	getrusage.o		\
4330Sstevel@tonic-gate	getspent.o		\
4340Sstevel@tonic-gate	getspent_r.o		\
4350Sstevel@tonic-gate	getsubopt.o		\
4360Sstevel@tonic-gate	gettxt.o		\
4370Sstevel@tonic-gate	getusershell.o		\
4380Sstevel@tonic-gate	getut.o			\
4390Sstevel@tonic-gate	getutx.o		\
4400Sstevel@tonic-gate	getvfsent.o		\
4410Sstevel@tonic-gate	getwd.o			\
4420Sstevel@tonic-gate	getwidth.o		\
4430Sstevel@tonic-gate	getxby_door.o		\
4440Sstevel@tonic-gate	gtxt.o			\
4450Sstevel@tonic-gate	hsearch.o		\
4460Sstevel@tonic-gate	iconv.o			\
4470Sstevel@tonic-gate	imaxabs.o		\
4480Sstevel@tonic-gate	imaxdiv.o		\
4490Sstevel@tonic-gate	index.o			\
4500Sstevel@tonic-gate	initgroups.o		\
4510Sstevel@tonic-gate	insque.o		\
4520Sstevel@tonic-gate	isaexec.o		\
4530Sstevel@tonic-gate	isastream.o		\
4540Sstevel@tonic-gate	isatty.o		\
4550Sstevel@tonic-gate	killpg.o		\
4566134Scasper	klpdlib.o		\
4570Sstevel@tonic-gate	l64a.o			\
4580Sstevel@tonic-gate	lckpwdf.o		\
4590Sstevel@tonic-gate	lconstants.o		\
4606812Sraf	lexp10.o		\
4610Sstevel@tonic-gate	lfind.o			\
4620Sstevel@tonic-gate	lfmt.o			\
4630Sstevel@tonic-gate	lfmt_log.o		\
4640Sstevel@tonic-gate	llabs.o			\
4650Sstevel@tonic-gate	lldiv.o			\
4666812Sraf	llog10.o		\
4670Sstevel@tonic-gate	lltostr.o		\
4680Sstevel@tonic-gate	localtime.o		\
4690Sstevel@tonic-gate	lsearch.o		\
4700Sstevel@tonic-gate	madvise.o		\
4710Sstevel@tonic-gate	malloc.o		\
4720Sstevel@tonic-gate	memalign.o		\
473*13093SRoger.Faulkner@Oracle.COM	memmem.o		\
4740Sstevel@tonic-gate	mkdev.o			\
4751475Scasper	mkdtemp.o		\
4760Sstevel@tonic-gate	mkfifo.o		\
4770Sstevel@tonic-gate	mkstemp.o		\
4780Sstevel@tonic-gate	mktemp.o		\
4790Sstevel@tonic-gate	mlock.o			\
4800Sstevel@tonic-gate	mlockall.o		\
4810Sstevel@tonic-gate	mon.o			\
4820Sstevel@tonic-gate	msync.o			\
4830Sstevel@tonic-gate	munlock.o		\
4840Sstevel@tonic-gate	munlockall.o		\
4850Sstevel@tonic-gate	ndbm.o			\
4860Sstevel@tonic-gate	nftw.o			\
4870Sstevel@tonic-gate	nlspath_checks.o	\
4880Sstevel@tonic-gate	nsparse.o		\
4890Sstevel@tonic-gate	nss_common.o		\
4900Sstevel@tonic-gate	nss_dbdefs.o		\
4910Sstevel@tonic-gate	nss_deffinder.o		\
4920Sstevel@tonic-gate	opendir.o		\
4930Sstevel@tonic-gate	opt_data.o		\
4940Sstevel@tonic-gate	perror.o		\
4950Sstevel@tonic-gate	pfmt.o			\
4960Sstevel@tonic-gate	pfmt_data.o		\
4970Sstevel@tonic-gate	pfmt_print.o		\
4980Sstevel@tonic-gate	plock.o			\
4990Sstevel@tonic-gate	poll.o			\
5007088Sraf	posix_fadvise.o		\
5017088Sraf	posix_fallocate.o	\
5027088Sraf	posix_madvise.o		\
5037088Sraf	posix_memalign.o	\
5040Sstevel@tonic-gate	priocntl.o		\
5050Sstevel@tonic-gate	privlib.o		\
5060Sstevel@tonic-gate	priv_str_xlate.o	\
5070Sstevel@tonic-gate	psiginfo.o		\
5080Sstevel@tonic-gate	psignal.o		\
5090Sstevel@tonic-gate	pt.o			\
5100Sstevel@tonic-gate	putpwent.o		\
5110Sstevel@tonic-gate	putspent.o		\
5120Sstevel@tonic-gate	raise.o			\
5130Sstevel@tonic-gate	rand.o			\
5140Sstevel@tonic-gate	random.o		\
5150Sstevel@tonic-gate	rctlops.o		\
5160Sstevel@tonic-gate	readdir.o		\
5170Sstevel@tonic-gate	readdir_r.o		\
5180Sstevel@tonic-gate	realpath.o		\
5190Sstevel@tonic-gate	reboot.o		\
5200Sstevel@tonic-gate	regexpr.o		\
5215891Sraf	remove.o		\
5220Sstevel@tonic-gate	rewinddir.o		\
5230Sstevel@tonic-gate	rindex.o		\
5240Sstevel@tonic-gate	scandir.o		\
5250Sstevel@tonic-gate	seekdir.o		\
5260Sstevel@tonic-gate	select.o		\
5270Sstevel@tonic-gate	select_large_fdset.o	\
5280Sstevel@tonic-gate	setlabel.o		\
5290Sstevel@tonic-gate	setpriority.o		\
5300Sstevel@tonic-gate	settimeofday.o		\
5310Sstevel@tonic-gate	sh_locks.o		\
5320Sstevel@tonic-gate	sigflag.o		\
5330Sstevel@tonic-gate	siglist.o		\
5340Sstevel@tonic-gate	sigsend.o		\
5350Sstevel@tonic-gate	sigsetops.o		\
5360Sstevel@tonic-gate	ssignal.o		\
5370Sstevel@tonic-gate	stack.o			\
538*13093SRoger.Faulkner@Oracle.COM	stpcpy.o		\
539*13093SRoger.Faulkner@Oracle.COM	stpncpy.o		\
5400Sstevel@tonic-gate	str2sig.o		\
5410Sstevel@tonic-gate	strcase_charmap.o	\
542*13093SRoger.Faulkner@Oracle.COM	strchrnul.o		\
5430Sstevel@tonic-gate	strcspn.o		\
5440Sstevel@tonic-gate	strdup.o		\
5450Sstevel@tonic-gate	strerror.o		\
5460Sstevel@tonic-gate	strlcat.o		\
5470Sstevel@tonic-gate	strlcpy.o		\
548*13093SRoger.Faulkner@Oracle.COM	strndup.o		\
5490Sstevel@tonic-gate	strpbrk.o		\
5507478SVladimir.Kotal@Sun.COM	strsep.o		\
5510Sstevel@tonic-gate	strsignal.o		\
5520Sstevel@tonic-gate	strspn.o		\
5530Sstevel@tonic-gate	strstr.o		\
5540Sstevel@tonic-gate	strtod.o		\
5550Sstevel@tonic-gate	strtoimax.o		\
5560Sstevel@tonic-gate	strtok.o		\
5570Sstevel@tonic-gate	strtok_r.o		\
5580Sstevel@tonic-gate	strtoumax.o		\
5590Sstevel@tonic-gate	swab.o			\
5600Sstevel@tonic-gate	swapctl.o		\
5610Sstevel@tonic-gate	sysconf.o		\
5620Sstevel@tonic-gate	syslog.o		\
5630Sstevel@tonic-gate	tcdrain.o		\
5640Sstevel@tonic-gate	tcflow.o		\
5650Sstevel@tonic-gate	tcflush.o		\
5660Sstevel@tonic-gate	tcgetattr.o		\
5670Sstevel@tonic-gate	tcgetpgrp.o		\
5680Sstevel@tonic-gate	tcgetsid.o		\
5690Sstevel@tonic-gate	tcsendbreak.o		\
5700Sstevel@tonic-gate	tcsetattr.o		\
5710Sstevel@tonic-gate	tcsetpgrp.o		\
5720Sstevel@tonic-gate	tell.o			\
5730Sstevel@tonic-gate	telldir.o		\
5740Sstevel@tonic-gate	tfind.o			\
5750Sstevel@tonic-gate	time_data.o		\
5760Sstevel@tonic-gate	time_gdata.o		\
577*13093SRoger.Faulkner@Oracle.COM	tls_data.o		\
5780Sstevel@tonic-gate	truncate.o		\
5790Sstevel@tonic-gate	tsdalloc.o		\
5800Sstevel@tonic-gate	tsearch.o		\
5810Sstevel@tonic-gate	ttyname.o		\
5820Sstevel@tonic-gate	ttyslot.o		\
5830Sstevel@tonic-gate	ualarm.o		\
5840Sstevel@tonic-gate	ucred.o			\
5850Sstevel@tonic-gate	valloc.o		\
5860Sstevel@tonic-gate	vlfmt.o			\
5870Sstevel@tonic-gate	vpfmt.o			\
5880Sstevel@tonic-gate	waitpid.o		\
5890Sstevel@tonic-gate	walkstack.o		\
5900Sstevel@tonic-gate	wdata.o			\
5910Sstevel@tonic-gate	xgetwidth.o		\
5920Sstevel@tonic-gate	xpg4.o			\
5930Sstevel@tonic-gate	xpg6.o
5940Sstevel@tonic-gate
5950Sstevel@tonic-gatePORTPRINT_W=			\
5960Sstevel@tonic-gate	doprnt_w.o
5970Sstevel@tonic-gate
5980Sstevel@tonic-gatePORTPRINT=			\
5998546SRoger.Faulkner@Sun.COM	asprintf.o		\
6000Sstevel@tonic-gate	doprnt.o		\
6010Sstevel@tonic-gate	fprintf.o		\
6020Sstevel@tonic-gate	printf.o		\
6030Sstevel@tonic-gate	snprintf.o		\
6040Sstevel@tonic-gate	sprintf.o		\
6050Sstevel@tonic-gate	vfprintf.o		\
6060Sstevel@tonic-gate	vprintf.o		\
6070Sstevel@tonic-gate	vsnprintf.o		\
6080Sstevel@tonic-gate	vsprintf.o		\
6090Sstevel@tonic-gate	vwprintf.o		\
6100Sstevel@tonic-gate	wprintf.o
6110Sstevel@tonic-gate
6120Sstevel@tonic-gate# c89 variants to support 32-bit size of c89 u/intmax_t (32-bit libc only)
6130Sstevel@tonic-gatePORTPRINT_C89=			\
6140Sstevel@tonic-gate	vfprintf_c89.o		\
6150Sstevel@tonic-gate	vprintf_c89.o		\
6160Sstevel@tonic-gate	vsnprintf_c89.o		\
6170Sstevel@tonic-gate	vsprintf_c89.o		\
6180Sstevel@tonic-gate	vwprintf_c89.o
6190Sstevel@tonic-gate
6200Sstevel@tonic-gatePORTSTDIO_C89=			\
6210Sstevel@tonic-gate	vscanf_c89.o		\
6220Sstevel@tonic-gate	vwscanf_c89.o		\
6230Sstevel@tonic-gate
6240Sstevel@tonic-gate# portable stdio objects that contain large file interfaces.
6250Sstevel@tonic-gate# Note: fopen64 is a special case, as we build it small.
6260Sstevel@tonic-gatePORTSTDIO64=			\
6270Sstevel@tonic-gate	fopen64.o		\
6280Sstevel@tonic-gate	fpos64.o
6290Sstevel@tonic-gate
6300Sstevel@tonic-gatePORTSTDIO_W=			\
6310Sstevel@tonic-gate	doscan_w.o
6320Sstevel@tonic-gate
6330Sstevel@tonic-gatePORTSTDIO=			\
6340Sstevel@tonic-gate	__extensions.o		\
6350Sstevel@tonic-gate	_endopen.o		\
6360Sstevel@tonic-gate	_filbuf.o		\
6370Sstevel@tonic-gate	_findbuf.o		\
6380Sstevel@tonic-gate	_flsbuf.o		\
6390Sstevel@tonic-gate	_wrtchk.o		\
6400Sstevel@tonic-gate	clearerr.o		\
6410Sstevel@tonic-gate	ctermid.o		\
6420Sstevel@tonic-gate	ctermid_r.o		\
6430Sstevel@tonic-gate	cuserid.o		\
6440Sstevel@tonic-gate	data.o			\
6450Sstevel@tonic-gate	doscan.o		\
6460Sstevel@tonic-gate	fdopen.o		\
6470Sstevel@tonic-gate	feof.o			\
6480Sstevel@tonic-gate	ferror.o		\
6490Sstevel@tonic-gate	fgetc.o			\
6500Sstevel@tonic-gate	fgets.o			\
6510Sstevel@tonic-gate	fileno.o		\
6520Sstevel@tonic-gate	flockf.o		\
6530Sstevel@tonic-gate	flush.o			\
6540Sstevel@tonic-gate	fopen.o			\
6550Sstevel@tonic-gate	fpos.o			\
6560Sstevel@tonic-gate	fputc.o			\
6570Sstevel@tonic-gate	fputs.o			\
6580Sstevel@tonic-gate	fread.o			\
6590Sstevel@tonic-gate	fseek.o			\
6600Sstevel@tonic-gate	fseeko.o		\
6610Sstevel@tonic-gate	ftell.o			\
6620Sstevel@tonic-gate	ftello.o		\
6630Sstevel@tonic-gate	fwrite.o		\
6640Sstevel@tonic-gate	getc.o			\
6650Sstevel@tonic-gate	getchar.o		\
666*13093SRoger.Faulkner@Oracle.COM	getline.o		\
6670Sstevel@tonic-gate	getpass.o		\
6680Sstevel@tonic-gate	gets.o			\
6690Sstevel@tonic-gate	getw.o			\
6700Sstevel@tonic-gate	mse.o			\
6710Sstevel@tonic-gate	popen.o			\
6720Sstevel@tonic-gate	putc.o			\
6730Sstevel@tonic-gate	putchar.o		\
6740Sstevel@tonic-gate	puts.o			\
6750Sstevel@tonic-gate	putw.o			\
6760Sstevel@tonic-gate	rewind.o		\
6770Sstevel@tonic-gate	scanf.o			\
6780Sstevel@tonic-gate	setbuf.o		\
6790Sstevel@tonic-gate	setbuffer.o		\
6800Sstevel@tonic-gate	setvbuf.o		\
6810Sstevel@tonic-gate	system.o		\
6820Sstevel@tonic-gate	tempnam.o		\
6830Sstevel@tonic-gate	tmpfile.o		\
6840Sstevel@tonic-gate	tmpnam_r.o		\
6850Sstevel@tonic-gate	ungetc.o		\
6860Sstevel@tonic-gate	vscanf.o		\
6870Sstevel@tonic-gate	vwscanf.o		\
6880Sstevel@tonic-gate	wscanf.o
6890Sstevel@tonic-gate
6900Sstevel@tonic-gatePORTI18N=			\
6910Sstevel@tonic-gate	__fgetwc_xpg5.o		\
6920Sstevel@tonic-gate	__fgetws_xpg5.o		\
6930Sstevel@tonic-gate	__fputwc_xpg5.o		\
6940Sstevel@tonic-gate	__fputws_xpg5.o		\
6950Sstevel@tonic-gate	__ungetwc_xpg5.o	\
6960Sstevel@tonic-gate	getwchar.o		\
6970Sstevel@tonic-gate	putwchar.o		\
6980Sstevel@tonic-gate	putws.o			\
699*13093SRoger.Faulkner@Oracle.COM	strcasecmp.o		\
700*13093SRoger.Faulkner@Oracle.COM	strcasestr.o		\
701*13093SRoger.Faulkner@Oracle.COM	strncasecmp.o		\
7020Sstevel@tonic-gate	strtows.o		\
703*13093SRoger.Faulkner@Oracle.COM	wcsnlen.o		\
7040Sstevel@tonic-gate	wcsstr.o		\
7050Sstevel@tonic-gate	wcstoimax.o		\
7060Sstevel@tonic-gate	wcstol.o		\
7070Sstevel@tonic-gate	wcstoul.o		\
7080Sstevel@tonic-gate	wcswcs.o		\
7090Sstevel@tonic-gate	wmemchr.o		\
7100Sstevel@tonic-gate	wmemcmp.o		\
7110Sstevel@tonic-gate	wmemcpy.o		\
7120Sstevel@tonic-gate	wmemmove.o		\
7130Sstevel@tonic-gate	wmemset.o		\
7140Sstevel@tonic-gate	wscasecmp.o		\
7150Sstevel@tonic-gate	wscat.o			\
7160Sstevel@tonic-gate	wschr.o			\
7170Sstevel@tonic-gate	wscmp.o			\
7180Sstevel@tonic-gate	wscpy.o			\
7190Sstevel@tonic-gate	wscspn.o		\
7200Sstevel@tonic-gate	wsdup.o			\
7210Sstevel@tonic-gate	wslen.o			\
7220Sstevel@tonic-gate	wsncasecmp.o		\
7230Sstevel@tonic-gate	wsncat.o		\
7240Sstevel@tonic-gate	wsncmp.o		\
7250Sstevel@tonic-gate	wsncpy.o		\
7260Sstevel@tonic-gate	wspbrk.o		\
7270Sstevel@tonic-gate	wsprintf.o		\
7280Sstevel@tonic-gate	wsrchr.o		\
7290Sstevel@tonic-gate	wsscanf.o		\
7300Sstevel@tonic-gate	wsspn.o			\
7310Sstevel@tonic-gate	wstod.o			\
7320Sstevel@tonic-gate	wstok.o			\
7330Sstevel@tonic-gate	wstol.o			\
7340Sstevel@tonic-gate	wstoll.o		\
7350Sstevel@tonic-gate	wsxfrm.o		\
7360Sstevel@tonic-gate	gettext.o		\
7370Sstevel@tonic-gate	gettext_gnu.o		\
7380Sstevel@tonic-gate	gettext_real.o		\
7390Sstevel@tonic-gate	gettext_util.o		\
7400Sstevel@tonic-gate	plural_parser.o		\
7410Sstevel@tonic-gate	wdresolve.o		\
7420Sstevel@tonic-gate	_ctype.o		\
7430Sstevel@tonic-gate	isascii.o		\
7440Sstevel@tonic-gate	toascii.o
7450Sstevel@tonic-gate
7460Sstevel@tonic-gatePORTI18N_COND=			\
7470Sstevel@tonic-gate	wcstol_longlong.o	\
7480Sstevel@tonic-gate	wcstoul_longlong.o
7490Sstevel@tonic-gate
7502248SrafAIOOBJS=			\
7512248Sraf	aio.o			\
7522248Sraf	aio_alloc.o		\
7532316Sraf	posix_aio.o
7542248Sraf
7552248SrafRTOBJS=				\
7562248Sraf	clock_timer.o		\
7572248Sraf	mqueue.o		\
7582248Sraf	pos4obj.o		\
7592248Sraf	sched.o			\
7602248Sraf	sem.o			\
7612248Sraf	shm.o			\
7622248Sraf	sigev_thread.o
7632248Sraf
7642248SrafTPOOLOBJS=			\
7652248Sraf	thread_pool.o
7662248Sraf
7670Sstevel@tonic-gateTHREADSOBJS=			\
7680Sstevel@tonic-gate	alloc.o			\
7690Sstevel@tonic-gate	assfail.o		\
7700Sstevel@tonic-gate	cancel.o		\
7710Sstevel@tonic-gate	door_calls.o		\
7720Sstevel@tonic-gate	pthr_attr.o		\
7730Sstevel@tonic-gate	pthr_barrier.o		\
7740Sstevel@tonic-gate	pthr_cond.o		\
7750Sstevel@tonic-gate	pthr_mutex.o		\
7760Sstevel@tonic-gate	pthr_rwlock.o		\
7770Sstevel@tonic-gate	pthread.o		\
7780Sstevel@tonic-gate	rwlock.o		\
7790Sstevel@tonic-gate	scalls.o		\
7800Sstevel@tonic-gate	sema.o			\
7810Sstevel@tonic-gate	sigaction.o		\
7820Sstevel@tonic-gate	spawn.o			\
7830Sstevel@tonic-gate	synch.o			\
7840Sstevel@tonic-gate	tdb_agent.o		\
7850Sstevel@tonic-gate	thr.o			\
7860Sstevel@tonic-gate	thread_interface.o	\
7870Sstevel@tonic-gate	tls.o			\
7880Sstevel@tonic-gate	tsd.o
7890Sstevel@tonic-gate
7900Sstevel@tonic-gateTHREADSMACHOBJS=		\
7910Sstevel@tonic-gate	machdep.o
7920Sstevel@tonic-gate
7930Sstevel@tonic-gateTHREADSASMOBJS=			\
7940Sstevel@tonic-gate	asm_subr.o
7950Sstevel@tonic-gate
7965049SisUNICODEOBJS=			\
7975049Sis	u8_textprep.o		\
7985049Sis	uconv.o
7995049Sis
8000Sstevel@tonic-gateUNWINDMACHOBJS=			\
8010Sstevel@tonic-gate	unwind.o
8020Sstevel@tonic-gate
8030Sstevel@tonic-gateUNWINDASMOBJS=			\
8040Sstevel@tonic-gate	unwind_frame.o
8050Sstevel@tonic-gate
8060Sstevel@tonic-gate# objects that implement the transitional large file API
8070Sstevel@tonic-gatePORTSYS64=			\
8080Sstevel@tonic-gate	lockf64.o		\
80911798SRoger.Faulkner@Sun.COM	stat64.o
8100Sstevel@tonic-gate
8110Sstevel@tonic-gatePORTSYS=			\
8120Sstevel@tonic-gate	_autofssys.o		\
81311798SRoger.Faulkner@Sun.COM	access.o		\
8140Sstevel@tonic-gate	acctctl.o		\
8150Sstevel@tonic-gate	bsd_signal.o		\
81612789SRoger.Faulkner@Oracle.COM	chmod.o			\
81711798SRoger.Faulkner@Sun.COM	chown.o			\
8180Sstevel@tonic-gate	corectl.o		\
8190Sstevel@tonic-gate	exacctsys.o		\
8200Sstevel@tonic-gate	execl.o			\
8210Sstevel@tonic-gate	execle.o		\
8220Sstevel@tonic-gate	execv.o			\
82311798SRoger.Faulkner@Sun.COM	fcntl.o			\
8245349Skchow	getpagesizes.o		\
8250Sstevel@tonic-gate	getpeerucred.o		\
8260Sstevel@tonic-gate	inst_sync.o		\
8270Sstevel@tonic-gate	issetugid.o		\
8281676Sjpk	label.o			\
82912789SRoger.Faulkner@Oracle.COM	link.o			\
8300Sstevel@tonic-gate	lockf.o			\
8310Sstevel@tonic-gate	lwp.o			\
8320Sstevel@tonic-gate	lwp_cond.o		\
8330Sstevel@tonic-gate	lwp_rwlock.o		\
8340Sstevel@tonic-gate	lwp_sigmask.o		\
8350Sstevel@tonic-gate	meminfosys.o		\
83612789SRoger.Faulkner@Oracle.COM	mkdir.o			\
83712789SRoger.Faulkner@Oracle.COM	mknod.o			\
8380Sstevel@tonic-gate	msgsys.o		\
8390Sstevel@tonic-gate	nfssys.o		\
84011798SRoger.Faulkner@Sun.COM	open.o			\
8410Sstevel@tonic-gate	pgrpsys.o		\
8420Sstevel@tonic-gate	posix_sigwait.o		\
8430Sstevel@tonic-gate	ppriv.o			\
8440Sstevel@tonic-gate	psetsys.o		\
8450Sstevel@tonic-gate	rctlsys.o		\
84612789SRoger.Faulkner@Oracle.COM	readlink.o		\
84711798SRoger.Faulkner@Sun.COM	rename.o		\
8480Sstevel@tonic-gate	sbrk.o			\
8490Sstevel@tonic-gate	semsys.o		\
8500Sstevel@tonic-gate	set_errno.o		\
8513957Sth199096	sharefs.o		\
8520Sstevel@tonic-gate	shmsys.o		\
8534321Scasper	sidsys.o		\
8540Sstevel@tonic-gate	siginterrupt.o		\
8550Sstevel@tonic-gate	signal.o		\
8560Sstevel@tonic-gate	sigpending.o		\
8570Sstevel@tonic-gate	sigstack.o		\
85811798SRoger.Faulkner@Sun.COM	stat.o			\
85912789SRoger.Faulkner@Oracle.COM	symlink.o		\
8600Sstevel@tonic-gate	tasksys.o		\
8610Sstevel@tonic-gate	time.o			\
8620Sstevel@tonic-gate	time_util.o		\
8630Sstevel@tonic-gate	ucontext.o		\
86411798SRoger.Faulkner@Sun.COM	unlink.o		\
8650Sstevel@tonic-gate	ustat.o			\
86610440SRoger.Faulkner@Sun.COM	utimesys.o		\
8670Sstevel@tonic-gate	zone.o
8680Sstevel@tonic-gate
8690Sstevel@tonic-gatePORTREGEX=			\
8700Sstevel@tonic-gate	glob.o			\
8710Sstevel@tonic-gate	regcmp.o		\
8720Sstevel@tonic-gate	regex.o			\
8730Sstevel@tonic-gate	wordexp.o
8740Sstevel@tonic-gate
8750Sstevel@tonic-gateMOSTOBJS=			\
8760Sstevel@tonic-gate	$(STRETS)		\
8770Sstevel@tonic-gate	$(CRTOBJS)		\
8780Sstevel@tonic-gate	$(DYNOBJS)		\
8790Sstevel@tonic-gate	$(FPOBJS)		\
8800Sstevel@tonic-gate	$(FPASMOBJS)		\
8810Sstevel@tonic-gate	$(ATOMICOBJS)		\
8825331Samw	$(XATTROBJS)		\
8830Sstevel@tonic-gate	$(COMOBJS)		\
8843746Sraf	$(DTRACEOBJS)		\
8850Sstevel@tonic-gate	$(GENOBJS)		\
8860Sstevel@tonic-gate	$(PORTFP)		\
8870Sstevel@tonic-gate	$(PORTGEN)		\
8880Sstevel@tonic-gate	$(PORTGEN64)		\
8890Sstevel@tonic-gate	$(PORTI18N)		\
8900Sstevel@tonic-gate	$(PORTI18N_COND)	\
8910Sstevel@tonic-gate	$(PORTPRINT)		\
8920Sstevel@tonic-gate	$(PORTPRINT_C89)	\
8930Sstevel@tonic-gate	$(PORTPRINT_W)		\
8940Sstevel@tonic-gate	$(PORTREGEX)		\
8950Sstevel@tonic-gate	$(PORTSTDIO)		\
8960Sstevel@tonic-gate	$(PORTSTDIO64)		\
8970Sstevel@tonic-gate	$(PORTSTDIO_C89)	\
8980Sstevel@tonic-gate	$(PORTSTDIO_W)		\
8990Sstevel@tonic-gate	$(PORTSYS)		\
9000Sstevel@tonic-gate	$(PORTSYS64)		\
9012248Sraf	$(AIOOBJS)		\
9022248Sraf	$(RTOBJS)		\
9032248Sraf	$(TPOOLOBJS)		\
9040Sstevel@tonic-gate	$(THREADSOBJS)		\
9050Sstevel@tonic-gate	$(THREADSMACHOBJS)	\
9060Sstevel@tonic-gate	$(THREADSASMOBJS)	\
9075049Sis	$(UNICODEOBJS)		\
9080Sstevel@tonic-gate	$(UNWINDMACHOBJS)	\
9090Sstevel@tonic-gate	$(UNWINDASMOBJS)	\
9100Sstevel@tonic-gate	$(COMSYSOBJS)		\
9110Sstevel@tonic-gate	$(SYSOBJS)		\
9120Sstevel@tonic-gate	$(COMSYSOBJS64)		\
9132037Scraigm	$(SYSOBJS64)		\
9142037Scraigm	$(VALUES)
9150Sstevel@tonic-gate
9160Sstevel@tonic-gateTRACEOBJS=			\
9170Sstevel@tonic-gate	plockstat.o
9180Sstevel@tonic-gate
9190Sstevel@tonic-gate# NOTE:	libc.so.1 must be linked with the minimal crti.o and crtn.o
9200Sstevel@tonic-gate# modules whose source is provided in the $(SRC)/lib/common directory.
9210Sstevel@tonic-gate# This must be done because otherwise the Sun C compiler would insert
9220Sstevel@tonic-gate# its own versions of these modules and those versions contain code
9230Sstevel@tonic-gate# to call out to C++ initialization functions.  Such C++ initialization
9240Sstevel@tonic-gate# functions can call back into libc before thread initialization is
9250Sstevel@tonic-gate# complete and this leads to segmentation violations and other problems.
9260Sstevel@tonic-gate# Since libc contains no C++ code, linking with the minimal crti.o and
9270Sstevel@tonic-gate# crtn.o modules is safe and avoids the problems described above.
9280Sstevel@tonic-gateOBJECTS= $(CRTI) $(MOSTOBJS) $(CRTN)
9290Sstevel@tonic-gateCRTSRCS= ../../common/i386
9300Sstevel@tonic-gate
9310Sstevel@tonic-gateLDPASS_OFF=	$(POUND_SIGN)
9320Sstevel@tonic-gate
9330Sstevel@tonic-gate# include common library definitions
9340Sstevel@tonic-gateinclude ../../Makefile.lib
9350Sstevel@tonic-gate
9360Sstevel@tonic-gate# NOTE: libc_i18n.a will be part of libc.so.1.  Therefore, the compilation
9370Sstevel@tonic-gate# conditions such as the settings of CFLAGS and CPPFLAGS for the libc_i18n stuff
9380Sstevel@tonic-gate# need to be compatible with the ones for the libc stuff.  Whenever the changes
9390Sstevel@tonic-gate# that affect the compilation conditions of libc happened, those for libc_i18n
9400Sstevel@tonic-gate# also need to be updated.
9410Sstevel@tonic-gate
9420Sstevel@tonic-gate# we need to override the default SONAME here because we might
9430Sstevel@tonic-gate# be building a variant object (still libc.so.1, but different filename)
9440Sstevel@tonic-gateSONAME = libc.so.1
9450Sstevel@tonic-gate
9460Sstevel@tonic-gateCFLAGS += $(CCVERBOSE) $(CTF_FLAGS)
9470Sstevel@tonic-gate
9480Sstevel@tonic-gate# This is necessary to avoid problems with calling _ex_unwind().
9490Sstevel@tonic-gate# We probably don't want any inlining anyway.
9500Sstevel@tonic-gateXINLINE = -xinline=
9510Sstevel@tonic-gateCFLAGS += $(XINLINE)
9520Sstevel@tonic-gate
9530Sstevel@tonic-gate# Setting THREAD_DEBUG = -DTHREAD_DEBUG (make THREAD_DEBUG=-DTHREAD_DEBUG ...)
9540Sstevel@tonic-gate# enables ASSERT() checking in the threads portion of the library.
9550Sstevel@tonic-gate# This is automatically enabled for DEBUG builds, not for non-debug builds.
9560Sstevel@tonic-gateTHREAD_DEBUG =
9570Sstevel@tonic-gate$(NOT_RELEASE_BUILD)THREAD_DEBUG = -DTHREAD_DEBUG
9580Sstevel@tonic-gate
9598380SRoger.Faulkner@Sun.COM# Make string literals read-only to save memory.
9608380SRoger.Faulkner@Sun.COMCFLAGS += $(XSTRCONST)
9618380SRoger.Faulkner@Sun.COM
9620Sstevel@tonic-gateALTPICS= $(TRACEOBJS:%=pics/%)
9630Sstevel@tonic-gate
9640Sstevel@tonic-gate$(DYNLIB) := PICS += $(ROOTFS_LIBDIR)/libc_i18n.a
96512719SRod.Evans@Sun.COM$(DYNLIB) := BUILD.SO = $(LD) -o $@ -G $(DYNFLAGS) $(PICS) $(ALTPICS) \
96612719SRod.Evans@Sun.COM		$(EXTPICS) $(LDLIBS)
9670Sstevel@tonic-gate
96812719SRod.Evans@Sun.COMMAPFILES =	$(LIBCDIR)/port/mapfile-vers
9690Sstevel@tonic-gate
9700Sstevel@tonic-gate#
9710Sstevel@tonic-gate# EXTN_CPPFLAGS and EXTN_CFLAGS set in enclosing Makefile
9720Sstevel@tonic-gate#
9730Sstevel@tonic-gateCFLAGS +=	$(EXTN_CFLAGS)
9746247SrafCPPFLAGS=	-D_REENTRANT -Di386 $(EXTN_CPPFLAGS) $(THREAD_DEBUG) \
97512719SRod.Evans@Sun.COM		-I$(LIBCBASE)/inc -I$(LIBCDIR)/inc $(CPPFLAGS.master)
9762037ScraigmASFLAGS=	$(AS_PICFLAGS) -P -D__STDC__ -D_ASM $(CPPFLAGS) $(i386_AS_XARCH)
9770Sstevel@tonic-gate
97811798SRoger.Faulkner@Sun.COM# As a favor to the dtrace syscall provider, libc still calls the
97911798SRoger.Faulkner@Sun.COM# old syscall traps that have been obsoleted by the *at() interfaces.
98011798SRoger.Faulkner@Sun.COM# Delete this to compile libc using only the new *at() system call traps
98111798SRoger.Faulkner@Sun.COMCPPFLAGS += -D_RETAIN_OLD_SYSCALLS
98211798SRoger.Faulkner@Sun.COM
9830Sstevel@tonic-gate# Inform the run-time linker about libc specialized initialization
9840Sstevel@tonic-gateRTLDINFO =	-z rtldinfo=tls_rtldinfo
9852522SrafDYNFLAGS +=	$(RTLDINFO)
9860Sstevel@tonic-gate
98710270SRoger.Faulkner@Sun.COM# Force libc's internal references to be resolved immediately upon loading
98810270SRoger.Faulkner@Sun.COM# in order to avoid critical region problems.  Since almost all libc symbols
98910270SRoger.Faulkner@Sun.COM# are marked 'protected' in the mapfiles, this is a minimal set (15 to 20).
99010270SRoger.Faulkner@Sun.COMDYNFLAGS +=	-znow
99110270SRoger.Faulkner@Sun.COM
9922522SrafDYNFLAGS +=	-e __rtboot
9930Sstevel@tonic-gateDYNFLAGS +=	$(EXTN_DYNFLAGS)
9940Sstevel@tonic-gate
9953746Sraf# Inform the kernel about the initial DTrace area (in case
9963746Sraf# libc is being used as the interpreter / runtime linker).
9973746SrafDTRACE_DATA =	-zdtrace=dtrace_data
9983746SrafDYNFLAGS +=	$(DTRACE_DATA)
9993746Sraf
10003746Sraf# DTrace needs an executable data segment.
10014271SrieMAPFILE.NED=
10023746Sraf
10030Sstevel@tonic-gateBUILD.s=	$(AS) $(ASFLAGS) $< -o $@
10040Sstevel@tonic-gate
10050Sstevel@tonic-gate# Override this top level flag so the compiler builds in its native
10060Sstevel@tonic-gate# C99 mode.  This has been enabled to support the complex arithmetic
10070Sstevel@tonic-gate# added to libc.
10080Sstevel@tonic-gateC99MODE=	$(C99_ENABLE)
10090Sstevel@tonic-gate
10100Sstevel@tonic-gate# libc method of building an archive
1011*13093SRoger.Faulkner@Oracle.COM# The "$(GREP) -v ' L '" part is necessary only until
1012*13093SRoger.Faulkner@Oracle.COM# lorder is fixed to ignore thread-local variables.
10130Sstevel@tonic-gateBUILD.AR= $(RM) $@ ; \
1014*13093SRoger.Faulkner@Oracle.COM	$(AR) q $@ `$(LORDER) $(MOSTOBJS:%=$(DIR)/%) | $(GREP) -v ' L ' | $(TSORT)`
10150Sstevel@tonic-gate
10160Sstevel@tonic-gate# extra files for the clean target
10170Sstevel@tonic-gateCLEANFILES=			\
101812719SRod.Evans@Sun.COM	$(LIBCDIR)/port/gen/errlst.c	\
101912719SRod.Evans@Sun.COM	$(LIBCDIR)/port/gen/new_list.c	\
10200Sstevel@tonic-gate	assym.h			\
10210Sstevel@tonic-gate	genassym		\
10220Sstevel@tonic-gate	crt/_rtld.s		\
10230Sstevel@tonic-gate	crt/_rtbootld.s		\
10240Sstevel@tonic-gate	pics/_rtbootld.o	\
10250Sstevel@tonic-gate	pics/crti.o		\
10260Sstevel@tonic-gate	pics/crtn.o		\
10270Sstevel@tonic-gate	$(ALTPICS)
10280Sstevel@tonic-gate
10292522SrafCLOBBERFILES +=	$(LIB_PIC)
10300Sstevel@tonic-gate
10310Sstevel@tonic-gate# list of C source for lint
10320Sstevel@tonic-gateSRCS=							\
10330Sstevel@tonic-gate	$(ATOMICOBJS:%.o=$(SRC)/common/atomic/%.c)	\
10345331Samw	$(XATTROBJS:%.o=$(SRC)/common/xattr/%.c)	\
10350Sstevel@tonic-gate	$(COMOBJS:%.o=$(SRC)/common/util/%.c)		\
10363746Sraf	$(DTRACEOBJS:%.o=$(SRC)/common/dtrace/%.c)	\
103712719SRod.Evans@Sun.COM	$(PORTFP:%.o=$(LIBCDIR)/port/fp/%.c)			\
103812719SRod.Evans@Sun.COM	$(PORTGEN:%.o=$(LIBCDIR)/port/gen/%.c)			\
103912719SRod.Evans@Sun.COM	$(PORTI18N:%.o=$(LIBCDIR)/port/i18n/%.c)		\
104012719SRod.Evans@Sun.COM	$(PORTPRINT:%.o=$(LIBCDIR)/port/print/%.c)		\
104112719SRod.Evans@Sun.COM	$(PORTREGEX:%.o=$(LIBCDIR)/port/regex/%.c)		\
104212719SRod.Evans@Sun.COM	$(PORTSTDIO:%.o=$(LIBCDIR)/port/stdio/%.c)		\
104312719SRod.Evans@Sun.COM	$(PORTSYS:%.o=$(LIBCDIR)/port/sys/%.c)			\
104412719SRod.Evans@Sun.COM	$(AIOOBJS:%.o=$(LIBCDIR)/port/aio/%.c)			\
104512719SRod.Evans@Sun.COM	$(RTOBJS:%.o=$(LIBCDIR)/port/rt/%.c)			\
104612719SRod.Evans@Sun.COM	$(TPOOLOBJS:%.o=$(LIBCDIR)/port/tpool/%.c)		\
104712719SRod.Evans@Sun.COM	$(THREADSOBJS:%.o=$(LIBCDIR)/port/threads/%.c)		\
104812719SRod.Evans@Sun.COM	$(THREADSMACHOBJS:%.o=$(LIBCDIR)/$(MACH)/threads/%.c)	\
10495049Sis	$(UNICODEOBJS:%.o=$(SRC)/common/unicode/%.c)	\
105012719SRod.Evans@Sun.COM	$(UNWINDMACHOBJS:%.o=$(LIBCDIR)/port/unwind/%.c)	\
105112719SRod.Evans@Sun.COM	$(FPOBJS:%.o=$(LIBCDIR)/$(MACH)/fp/%.c)			\
10520Sstevel@tonic-gate	$(LIBCBASE)/gen/ecvt.c				\
10530Sstevel@tonic-gate	$(LIBCBASE)/gen/makectxt.c			\
10540Sstevel@tonic-gate	$(LIBCBASE)/gen/siginfolst.c			\
10550Sstevel@tonic-gate	$(LIBCBASE)/gen/siglongjmp.c			\
10560Sstevel@tonic-gate	$(LIBCBASE)/gen/strcmp.c			\
10570Sstevel@tonic-gate	$(LIBCBASE)/gen/sync_instruction_memory.c	\
10580Sstevel@tonic-gate	$(LIBCBASE)/sys/ptrace.c			\
10590Sstevel@tonic-gate	$(LIBCBASE)/sys/uadmin.c
10600Sstevel@tonic-gate
10610Sstevel@tonic-gate# conditional assignments
10622037Scraigm$(DYNLIB) := CRTI = crti.o
10630Sstevel@tonic-gate$(DYNLIB) := CRTN = crtn.o
10640Sstevel@tonic-gate
10650Sstevel@tonic-gate# Files which need the threads .il inline template
10660Sstevel@tonic-gateTIL=				\
10672248Sraf	aio.o			\
10680Sstevel@tonic-gate	alloc.o			\
10690Sstevel@tonic-gate	assfail.o		\
10700Sstevel@tonic-gate	atexit.o		\
10710Sstevel@tonic-gate	atfork.o		\
10720Sstevel@tonic-gate	cancel.o		\
10730Sstevel@tonic-gate	door_calls.o		\
1074*13093SRoger.Faulkner@Oracle.COM	err.o			\
10750Sstevel@tonic-gate	errno.o			\
10760Sstevel@tonic-gate	lwp.o			\
10772248Sraf	ma.o			\
10780Sstevel@tonic-gate	machdep.o		\
10792248Sraf	posix_aio.o		\
10800Sstevel@tonic-gate	pthr_attr.o		\
10810Sstevel@tonic-gate	pthr_barrier.o		\
10820Sstevel@tonic-gate	pthr_cond.o		\
10830Sstevel@tonic-gate	pthr_mutex.o		\
10840Sstevel@tonic-gate	pthr_rwlock.o		\
10850Sstevel@tonic-gate	pthread.o		\
10860Sstevel@tonic-gate	rand.o			\
10870Sstevel@tonic-gate	rwlock.o		\
10880Sstevel@tonic-gate	scalls.o		\
10896247Sraf	sched.o			\
10900Sstevel@tonic-gate	sema.o			\
10910Sstevel@tonic-gate	sigaction.o		\
10922248Sraf	sigev_thread.o		\
10930Sstevel@tonic-gate	spawn.o			\
10940Sstevel@tonic-gate	stack.o			\
10950Sstevel@tonic-gate	synch.o			\
10960Sstevel@tonic-gate	tdb_agent.o		\
10970Sstevel@tonic-gate	thr.o			\
10980Sstevel@tonic-gate	thread_interface.o	\
10992248Sraf	thread_pool.o		\
11000Sstevel@tonic-gate	tls.o			\
11010Sstevel@tonic-gate	tsd.o			\
11020Sstevel@tonic-gate	unwind.o
11030Sstevel@tonic-gate
11040Sstevel@tonic-gateTHREADS_INLINES = $(LIBCBASE)/threads/i386.il
11050Sstevel@tonic-gate$(TIL:%=pics/%) := CFLAGS += $(THREADS_INLINES)
11060Sstevel@tonic-gate
11070Sstevel@tonic-gate# pics/mul64.o := CFLAGS += $(LIBCBASE)/crt/mul64.il
11080Sstevel@tonic-gate
11090Sstevel@tonic-gate# large-file-aware components that should be built large
11100Sstevel@tonic-gate
11110Sstevel@tonic-gate$(COMSYSOBJS64:%=pics/%) := \
11120Sstevel@tonic-gate	CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
11130Sstevel@tonic-gate
11140Sstevel@tonic-gate$(SYSOBJS64:%=pics/%) := \
11150Sstevel@tonic-gate	CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
11160Sstevel@tonic-gate
11170Sstevel@tonic-gate$(PORTGEN64:%=pics/%) := \
11180Sstevel@tonic-gate	CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
11190Sstevel@tonic-gate
11200Sstevel@tonic-gate$(PORTSTDIO64:%=pics/%) := \
11210Sstevel@tonic-gate	CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
11220Sstevel@tonic-gate
11230Sstevel@tonic-gate$(PORTSYS64:%=pics/%) := \
11240Sstevel@tonic-gate	CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
11250Sstevel@tonic-gate
11260Sstevel@tonic-gate$(PORTSTDIO_W:%=pics/%) := \
11270Sstevel@tonic-gate	CPPFLAGS += -D_WIDE
11280Sstevel@tonic-gate
11290Sstevel@tonic-gate$(PORTPRINT_W:%=pics/%) := \
11300Sstevel@tonic-gate	CPPFLAGS += -D_WIDE
11310Sstevel@tonic-gate
11320Sstevel@tonic-gate$(PORTPRINT_C89:%=pics/%) := \
11330Sstevel@tonic-gate	CPPFLAGS += -D_C89_INTMAX32
11340Sstevel@tonic-gate
11350Sstevel@tonic-gate$(PORTSTDIO_C89:%=pics/%) := \
11360Sstevel@tonic-gate	CPPFLAGS += -D_C89_INTMAX32
11370Sstevel@tonic-gate
11380Sstevel@tonic-gate$(PORTI18N_COND:%=pics/%) := \
11390Sstevel@tonic-gate	CPPFLAGS += -D_WCS_LONGLONG
11400Sstevel@tonic-gate
11410Sstevel@tonic-gate.KEEP_STATE:
11420Sstevel@tonic-gate
11432037Scraigmall: $(LIBS) $(LIB_PIC)
11440Sstevel@tonic-gate
114512719SRod.Evans@Sun.COMlint	:=	CPPFLAGS += -I$(LIBCDIR)/$(MACH)/fp
11460Sstevel@tonic-gatelint	:=	CPPFLAGS += -D_MSE_INT_H -D_LCONV_C99
11470Sstevel@tonic-gatelint	:=	LINTFLAGS += -mn -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
11480Sstevel@tonic-gate
11490Sstevel@tonic-gatelint:
11500Sstevel@tonic-gate	@echo $(LINT.c) ...
11510Sstevel@tonic-gate	@$(LINT.c) $(SRCS) $(LDLIBS)
11520Sstevel@tonic-gate
115312719SRod.Evans@Sun.COM$(LINTLIB):= SRCS=$(LIBCDIR)/port/llib-lc
11540Sstevel@tonic-gate$(LINTLIB):= CPPFLAGS += -D_MSE_INT_H
11550Sstevel@tonic-gate$(LINTLIB):= LINTFLAGS=-nvx
11560Sstevel@tonic-gate
11570Sstevel@tonic-gate# object files that depend on inline template
11580Sstevel@tonic-gate$(TIL:%=pics/%): $(LIBCBASE)/threads/i386.il
11590Sstevel@tonic-gate# pics/mul64.o: $(LIBCBASE)/crt/mul64.il
11600Sstevel@tonic-gate
11610Sstevel@tonic-gate# include common libc targets
116212719SRod.Evans@Sun.COMinclude $(LIBCDIR)/Makefile.targ
11630Sstevel@tonic-gate
11640Sstevel@tonic-gate# We need to strip out all CTF and DOF data from the static library
11650Sstevel@tonic-gate$(LIB_PIC) := DIR = pics
11660Sstevel@tonic-gate$(LIB_PIC): pics $$(PICS)
11670Sstevel@tonic-gate	$(BUILD.AR)
11680Sstevel@tonic-gate	$(MCS) -d -n .SUNW_ctf $@ > /dev/null 2>&1
11690Sstevel@tonic-gate	$(MCS) -d -n .SUNW_dof $@ > /dev/null 2>&1
11700Sstevel@tonic-gate	$(AR) -ts $@ > /dev/null
11710Sstevel@tonic-gate	$(POST_PROCESS_A)
11720Sstevel@tonic-gate
11730Sstevel@tonic-gate$(LIBCBASE)/crt/_rtbootld.s: $(LIBCBASE)/crt/_rtboot.s $(LIBCBASE)/crt/_rtld.c
11740Sstevel@tonic-gate	$(CC) $(CPPFLAGS) $(CTF_FLAGS) -O -S $(C_PICFLAGS) \
11750Sstevel@tonic-gate	    $(LIBCBASE)/crt/_rtld.c -o $(LIBCBASE)/crt/_rtld.s
11760Sstevel@tonic-gate	$(CAT) $(LIBCBASE)/crt/_rtboot.s $(LIBCBASE)/crt/_rtld.s > $@
11770Sstevel@tonic-gate	$(RM) $(LIBCBASE)/crt/_rtld.s
11780Sstevel@tonic-gate
11790Sstevel@tonic-gate# partially built from C source
11800Sstevel@tonic-gatepics/_rtbootld.o: $(LIBCBASE)/crt/_rtbootld.s
11810Sstevel@tonic-gate	$(AS) $(ASFLAGS) $(LIBCBASE)/crt/_rtbootld.s -o $@
11820Sstevel@tonic-gate	$(CTFCONVERT_O)
11830Sstevel@tonic-gate
11840Sstevel@tonic-gateASSYMDEP_OBJS=			\
11850Sstevel@tonic-gate	_lwp_mutex_unlock.o	\
11860Sstevel@tonic-gate	_stack_grow.o		\
11870Sstevel@tonic-gate	getcontext.o		\
118811426SRoger.Faulkner@Sun.COM	setjmp.o		\
11890Sstevel@tonic-gate	tls_get_addr.o		\
11903235Sraf	vforkx.o
11910Sstevel@tonic-gate
11920Sstevel@tonic-gate$(ASSYMDEP_OBJS:%=pics/%)	:=	CPPFLAGS += -I.
11930Sstevel@tonic-gate
11940Sstevel@tonic-gate$(ASSYMDEP_OBJS:%=pics/%): assym.h
11950Sstevel@tonic-gate
11960Sstevel@tonic-gate# assym.h build rules
11970Sstevel@tonic-gate
119812719SRod.Evans@Sun.COMGENASSYM_C = $(LIBCDIR)/$(MACH)/genassym.c
11990Sstevel@tonic-gate
12000Sstevel@tonic-gate# XXX	A hack.  Perhaps this should be 'CPPFLAGS.native' and
12010Sstevel@tonic-gate#	live in Makefile.master
12020Sstevel@tonic-gate
12030Sstevel@tonic-gateCPPFLAGS.genassym = \
12040Sstevel@tonic-gate	$(ENVCPPFLAGS1) $(ENVCPPFLAGS2) $(ENVCPPFLAGS3) $(ENVCPPFLAGS4)
12050Sstevel@tonic-gate
12060Sstevel@tonic-gategenassym: $(GENASSYM_C)
120712719SRod.Evans@Sun.COM	$(NATIVECC) -I$(LIBCBASE)/inc -I$(LIBCDIR)/inc	\
12080Sstevel@tonic-gate		-D__EXTENSIONS__ $(CPPFLAGS.genassym) -o $@ $(GENASSYM_C)
12090Sstevel@tonic-gate
121012719SRod.Evans@Sun.COMOFFSETS = $(LIBCDIR)/$(MACH)/offsets.in
12110Sstevel@tonic-gate
12120Sstevel@tonic-gateassym.h: $(OFFSETS) genassym
12130Sstevel@tonic-gate	$(OFFSETS_CREATE) <$(OFFSETS) >$@
12140Sstevel@tonic-gate	./genassym >>$@
12150Sstevel@tonic-gate
12160Sstevel@tonic-gate# derived C source and related explicit dependencies
121712719SRod.Evans@Sun.COM$(LIBCDIR)/port/gen/errlst.c + \
121812719SRod.Evans@Sun.COM$(LIBCDIR)/port/gen/new_list.c: $(LIBCDIR)/port/gen/errlist $(LIBCDIR)/port/gen/errlist.awk
121912719SRod.Evans@Sun.COM	cd $(LIBCDIR)/port/gen; pwd; $(AWK) -f errlist.awk < errlist
12200Sstevel@tonic-gate
122112719SRod.Evans@Sun.COMpics/errlst.o: $(LIBCDIR)/port/gen/errlst.c
12220Sstevel@tonic-gate
122312719SRod.Evans@Sun.COMpics/new_list.o: $(LIBCDIR)/port/gen/new_list.c
1224