xref: /titanic_52/usr/src/lib/libc/sparcv9/Makefile.com (revision 163bd69b3c164dda2a59c7f08ca788e7d6ba9bea)
1b1593d50SJason Beloro#
2b1593d50SJason Beloro# CDDL HEADER START
3b1593d50SJason Beloro#
4b1593d50SJason Beloro# The contents of this file are subject to the terms of the
5b1593d50SJason Beloro# Common Development and Distribution License (the "License").
6b1593d50SJason Beloro# You may not use this file except in compliance with the License.
7b1593d50SJason Beloro#
8b1593d50SJason Beloro# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9b1593d50SJason Beloro# or http://www.opensolaris.org/os/licensing.
10b1593d50SJason Beloro# See the License for the specific language governing permissions
11b1593d50SJason Beloro# and limitations under the License.
12b1593d50SJason Beloro#
13b1593d50SJason Beloro# When distributing Covered Code, include this CDDL HEADER in each
14b1593d50SJason Beloro# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15b1593d50SJason Beloro# If applicable, add the following below this CDDL HEADER, with the
16b1593d50SJason Beloro# fields enclosed by brackets "[]" replaced with your own identifying
17b1593d50SJason Beloro# information: Portions Copyright [yyyy] [name of copyright owner]
18b1593d50SJason Beloro#
19b1593d50SJason Beloro# CDDL HEADER END
20b1593d50SJason Beloro#
21b1593d50SJason Beloro
22b1593d50SJason Beloro#
23cd3e9333SAli Bahrami# Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
24b1593d50SJason Beloro#
254297a3b0SGarrett D'Amore# Copyright 2010 Nexenta Systems, Inc.  All rights reserved.
264297a3b0SGarrett D'Amore# Use is subject to license terms.
274297a3b0SGarrett D'Amore#
28b1593d50SJason Beloro
29b1593d50SJason BeloroLIBCDIR=	$(SRC)/lib/libc
30b1593d50SJason BeloroLIB_PIC=	libc_pic.a
31b1593d50SJason BeloroVERS=		.1
32b1593d50SJason BeloroCPP=		/usr/lib/cpp
33b1593d50SJason BeloroTARGET_ARCH=	sparc
34b1593d50SJason Beloro
35b1593d50SJason Beloro# objects are grouped by source directory
36b1593d50SJason Beloro
371e49577aSRod Evans# Symbol capabilities objects.
381e49577aSRod EvansEXTPICS=			\
391e49577aSRod Evans        $(LIBCDIR)/capabilities/sun4u/sparcv9/pics/symcap.o \
401e49577aSRod Evans        $(LIBCDIR)/capabilities/sun4u-opl/sparcv9/pics/symcap.o \
411e49577aSRod Evans        $(LIBCDIR)/capabilities/sun4u-us3-hwcap1/sparcv9/pics/symcap.o \
421e49577aSRod Evans        $(LIBCDIR)/capabilities/sun4u-us3-hwcap2/sparcv9/pics/symcap.o \
431e49577aSRod Evans        $(LIBCDIR)/capabilities/sun4v-hwcap1/sparcv9/pics/symcap.o \
441e49577aSRod Evans        $(LIBCDIR)/capabilities/sun4v-hwcap2/sparcv9/pics/symcap.o
451e49577aSRod Evans
46b1593d50SJason Beloro# local objects
47b1593d50SJason BeloroSTRETS=
48b1593d50SJason Beloro
49b1593d50SJason BeloroCRTOBJS=			\
50b1593d50SJason Beloro	__align_cpy_2.o		\
51b1593d50SJason Beloro	__align_cpy_4.o		\
52b1593d50SJason Beloro	__align_cpy_8.o		\
53b1593d50SJason Beloro	_ftou.o			\
54b1593d50SJason Beloro	cerror.o
55b1593d50SJason Beloro
56b1593d50SJason BeloroDYNOBJS=
57b1593d50SJason Beloro
58b1593d50SJason BeloroFPOBJS=				\
59b1593d50SJason Beloro	_D_cplx_div.o		\
60b1593d50SJason Beloro	_D_cplx_div_ix.o	\
61b1593d50SJason Beloro	_D_cplx_div_rx.o	\
62b1593d50SJason Beloro	_D_cplx_mul.o		\
63b1593d50SJason Beloro	_F_cplx_div.o		\
64b1593d50SJason Beloro	_F_cplx_div_ix.o	\
65b1593d50SJason Beloro	_F_cplx_div_rx.o	\
66b1593d50SJason Beloro	_F_cplx_mul.o		\
67b1593d50SJason Beloro	_Q_add.o		\
68b1593d50SJason Beloro	_Q_cmp.o		\
69b1593d50SJason Beloro	_Q_cmpe.o		\
70b1593d50SJason Beloro	_Q_cplx_div.o		\
71b1593d50SJason Beloro	_Q_cplx_div_ix.o	\
72b1593d50SJason Beloro	_Q_cplx_div_rx.o	\
73b1593d50SJason Beloro	_Q_cplx_lr_div.o	\
74b1593d50SJason Beloro	_Q_cplx_lr_div_ix.o	\
75b1593d50SJason Beloro	_Q_cplx_lr_div_rx.o	\
76b1593d50SJason Beloro	_Q_cplx_lr_mul.o	\
77b1593d50SJason Beloro	_Q_cplx_mul.o		\
78b1593d50SJason Beloro	_Q_div.o		\
79b1593d50SJason Beloro	_Q_dtoq.o		\
80b1593d50SJason Beloro	_Q_fcc.o		\
81b1593d50SJason Beloro	_Q_itoq.o		\
82b1593d50SJason Beloro	_Q_mul.o		\
83b1593d50SJason Beloro	_Q_neg.o		\
84b1593d50SJason Beloro	_Q_qtod.o		\
85b1593d50SJason Beloro	_Q_qtoi.o		\
86b1593d50SJason Beloro	_Q_qtos.o		\
87b1593d50SJason Beloro	_Q_qtou.o		\
88b1593d50SJason Beloro	_Q_scl.o		\
89b1593d50SJason Beloro	_Q_sqrt.o		\
90b1593d50SJason Beloro	_Q_stoq.o		\
91b1593d50SJason Beloro	_Q_sub.o		\
92b1593d50SJason Beloro	_Q_utoq.o
93b1593d50SJason Beloro
94b1593d50SJason BeloroFPOBJS64=			\
95b1593d50SJason Beloro	_Qp_qtox.o		\
96b1593d50SJason Beloro	_Qp_qtoux.o		\
97b1593d50SJason Beloro	_Qp_xtoq.o		\
98b1593d50SJason Beloro	_Qp_uxtoq.o		\
99b1593d50SJason Beloro	__dtoul.o		\
100b1593d50SJason Beloro	__ftoul.o
101b1593d50SJason Beloro
102b1593d50SJason BeloroFPASMOBJS=			\
103b1593d50SJason Beloro	_Q_get_rp_rd.o		\
104b1593d50SJason Beloro	__quad_mag64.o		\
105b1593d50SJason Beloro	fpgetmask.o		\
106b1593d50SJason Beloro	fpgetrnd.o		\
107b1593d50SJason Beloro	fpgetsticky.o		\
108b1593d50SJason Beloro	fpsetmask.o		\
109b1593d50SJason Beloro	fpsetrnd.o		\
110b1593d50SJason Beloro	fpsetsticky.o
111b1593d50SJason Beloro
112b1593d50SJason Beloro$(__GNUC)FPASMOBJS +=		\
113b1593d50SJason Beloro	__quad.o
114b1593d50SJason Beloro
115b1593d50SJason BeloroATOMICOBJS=			\
116b1593d50SJason Beloro	atomic.o
117b1593d50SJason Beloro
118b1593d50SJason BeloroXATTROBJS=			\
119b1593d50SJason Beloro	xattr_common.o
120b1593d50SJason Beloro
121b1593d50SJason BeloroCOMOBJS=			\
122b1593d50SJason Beloro	bcmp.o			\
123b1593d50SJason Beloro	bcopy.o			\
124b1593d50SJason Beloro	bsearch.o		\
125b1593d50SJason Beloro	bzero.o			\
126b1593d50SJason Beloro	ffs.o			\
127b1593d50SJason Beloro	memccpy.o		\
128b1593d50SJason Beloro	qsort.o			\
129b1593d50SJason Beloro	strtol.o		\
130b1593d50SJason Beloro	strtoul.o		\
131b1593d50SJason Beloro	strtoll.o		\
132b1593d50SJason Beloro	strtoull.o
133b1593d50SJason Beloro
134b1593d50SJason BeloroGENOBJS=			\
135b1593d50SJason Beloro	_getsp.o		\
136b1593d50SJason Beloro	_xregs_clrptr.o		\
137b1593d50SJason Beloro	abs.o			\
138b1593d50SJason Beloro	alloca.o		\
139b1593d50SJason Beloro	byteorder.o		\
140b1593d50SJason Beloro	cuexit.o		\
141b1593d50SJason Beloro	ecvt.o			\
142b1593d50SJason Beloro	getctxt.o		\
143b1593d50SJason Beloro	lock.o			\
144b1593d50SJason Beloro	makectxt.o		\
145b1593d50SJason Beloro	memchr.o		\
146b1593d50SJason Beloro	memcmp.o		\
147b1593d50SJason Beloro	new_list.o		\
148b1593d50SJason Beloro	setjmp.o		\
149b1593d50SJason Beloro	siginfolst.o		\
150b1593d50SJason Beloro	siglongjmp.o		\
151b1593d50SJason Beloro	sparc_data.o		\
152b1593d50SJason Beloro	strcasecmp.o		\
153b1593d50SJason Beloro	strchr.o		\
154b1593d50SJason Beloro	strcmp.o		\
155b1593d50SJason Beloro	strlcpy.o		\
156b1593d50SJason Beloro	strncmp.o		\
157b1593d50SJason Beloro	strncpy.o		\
158b1593d50SJason Beloro	strnlen.o		\
159b1593d50SJason Beloro	swapctxt.o		\
160b1593d50SJason Beloro	sync_instruction_memory.o
161b1593d50SJason Beloro
162b1593d50SJason Beloro# Preserved solely to ease maintenance of 32-bit and 64-bit library builds
163b1593d50SJason Beloro# This macro should ALWAYS be empty; native APIs are already 'large file'.
164b1593d50SJason BeloroCOMSYSOBJS64=
165b1593d50SJason Beloro
166b1593d50SJason BeloroSYSOBJS64=
167b1593d50SJason Beloro
168b1593d50SJason BeloroCOMSYSOBJS=			\
169b1593d50SJason Beloro	__clock_timer.o		\
170b1593d50SJason Beloro	__getloadavg.o		\
171b1593d50SJason Beloro	__rusagesys.o		\
172b1593d50SJason Beloro	__signotify.o		\
173b1593d50SJason Beloro	__sigrt.o		\
174b1593d50SJason Beloro	__time.o		\
175b1593d50SJason Beloro	_lgrp_home_fast.o	\
176b1593d50SJason Beloro	_lgrpsys.o		\
177b1593d50SJason Beloro	_nfssys.o		\
178b1593d50SJason Beloro	_portfs.o		\
179b1593d50SJason Beloro	_pset.o			\
180b1593d50SJason Beloro	_rpcsys.o		\
181b1593d50SJason Beloro	_sigaction.o		\
182b1593d50SJason Beloro	_so_accept.o		\
183b1593d50SJason Beloro	_so_bind.o		\
184b1593d50SJason Beloro	_so_connect.o		\
185b1593d50SJason Beloro	_so_getpeername.o	\
186b1593d50SJason Beloro	_so_getsockname.o	\
187b1593d50SJason Beloro	_so_getsockopt.o	\
188b1593d50SJason Beloro	_so_listen.o		\
189b1593d50SJason Beloro	_so_recv.o		\
190b1593d50SJason Beloro	_so_recvfrom.o		\
191b1593d50SJason Beloro	_so_recvmsg.o		\
192b1593d50SJason Beloro	_so_send.o		\
193b1593d50SJason Beloro	_so_sendmsg.o		\
194b1593d50SJason Beloro	_so_sendto.o		\
195b1593d50SJason Beloro	_so_setsockopt.o	\
196b1593d50SJason Beloro	_so_shutdown.o		\
197b1593d50SJason Beloro	_so_socket.o		\
198b1593d50SJason Beloro	_so_socketpair.o	\
199b1593d50SJason Beloro	_sockconfig.o		\
200b1593d50SJason Beloro	acct.o			\
201b1593d50SJason Beloro	acl.o			\
202b1593d50SJason Beloro	adjtime.o		\
203b1593d50SJason Beloro	alarm.o			\
204b1593d50SJason Beloro	brk.o			\
205b1593d50SJason Beloro	chdir.o			\
206b1593d50SJason Beloro	chmod.o			\
207b1593d50SJason Beloro	chroot.o		\
208b1593d50SJason Beloro	cladm.o			\
209b1593d50SJason Beloro	close.o			\
210b1593d50SJason Beloro	execve.o		\
211b1593d50SJason Beloro	exit.o			\
212b1593d50SJason Beloro	facl.o			\
213b1593d50SJason Beloro	fchdir.o		\
214b1593d50SJason Beloro	fchmod.o		\
215b1593d50SJason Beloro	fchroot.o		\
216b1593d50SJason Beloro	fdsync.o		\
217b1593d50SJason Beloro	fpathconf.o		\
218b1593d50SJason Beloro	fstatfs.o		\
219b1593d50SJason Beloro	fstatvfs.o		\
220b1593d50SJason Beloro	getcpuid.o		\
221b1593d50SJason Beloro	getdents.o		\
222b1593d50SJason Beloro	getegid.o		\
223b1593d50SJason Beloro	geteuid.o		\
224b1593d50SJason Beloro	getgid.o		\
225b1593d50SJason Beloro	getgroups.o		\
226b1593d50SJason Beloro	gethrtime.o		\
227b1593d50SJason Beloro	getitimer.o		\
228b1593d50SJason Beloro	getmsg.o		\
229b1593d50SJason Beloro	getpid.o		\
230b1593d50SJason Beloro	getpmsg.o		\
231b1593d50SJason Beloro	getppid.o		\
232b1593d50SJason Beloro	getrlimit.o		\
233b1593d50SJason Beloro	getuid.o		\
234b1593d50SJason Beloro	gtty.o			\
235b1593d50SJason Beloro	install_utrap.o		\
236b1593d50SJason Beloro	ioctl.o			\
237b1593d50SJason Beloro	kaio.o			\
238b1593d50SJason Beloro	kill.o			\
239b1593d50SJason Beloro	link.o			\
240b1593d50SJason Beloro	llseek.o		\
241b1593d50SJason Beloro	lseek.o			\
242b1593d50SJason Beloro	memcntl.o		\
243b1593d50SJason Beloro	mincore.o		\
244b1593d50SJason Beloro	mkdir.o			\
245b1593d50SJason Beloro	mknod.o			\
246c242ec1bSRoger A. Faulkner	mmap.o			\
247b1593d50SJason Beloro	mmapobjsys.o		\
248b1593d50SJason Beloro	modctl.o		\
249b1593d50SJason Beloro	mount.o			\
250b1593d50SJason Beloro	mprotect.o		\
251c242ec1bSRoger A. Faulkner	munmap.o		\
252b1593d50SJason Beloro	nice.o			\
253b1593d50SJason Beloro	ntp_adjtime.o		\
254b1593d50SJason Beloro	ntp_gettime.o		\
255b1593d50SJason Beloro	p_online.o		\
256b1593d50SJason Beloro	pathconf.o		\
257b1593d50SJason Beloro	pause.o			\
258b1593d50SJason Beloro	pcsample.o		\
259b1593d50SJason Beloro	pollsys.o		\
260b1593d50SJason Beloro	pread.o			\
261b1593d50SJason Beloro	priocntlset.o		\
262b1593d50SJason Beloro	processor_bind.o	\
263b1593d50SJason Beloro	processor_info.o	\
264b1593d50SJason Beloro	profil.o		\
265b1593d50SJason Beloro	putmsg.o		\
266b1593d50SJason Beloro	putpmsg.o		\
267b1593d50SJason Beloro	pwrite.o		\
268b1593d50SJason Beloro	read.o			\
269b1593d50SJason Beloro	readlink.o		\
270b1593d50SJason Beloro	readv.o			\
271b1593d50SJason Beloro	resolvepath.o		\
272b1593d50SJason Beloro	seteguid.o		\
273b1593d50SJason Beloro	setgid.o		\
274b1593d50SJason Beloro	setgroups.o		\
275b1593d50SJason Beloro	setitimer.o		\
276b1593d50SJason Beloro	setreid.o		\
277b1593d50SJason Beloro	setrlimit.o		\
278b1593d50SJason Beloro	setuid.o		\
279b1593d50SJason Beloro	sigaltstk.o		\
280b1593d50SJason Beloro	sigprocmsk.o		\
281b1593d50SJason Beloro	sigsendset.o		\
282b1593d50SJason Beloro	sigsuspend.o		\
283b1593d50SJason Beloro	statfs.o		\
284b1593d50SJason Beloro	statvfs.o		\
285b1593d50SJason Beloro	stty.o			\
286b1593d50SJason Beloro	symlink.o		\
287b1593d50SJason Beloro	sync.o			\
288b1593d50SJason Beloro	sysconfig.o		\
289b1593d50SJason Beloro	sysfs.o			\
290b1593d50SJason Beloro	sysinfo.o		\
291b1593d50SJason Beloro	syslwp.o		\
292b1593d50SJason Beloro	times.o			\
293b1593d50SJason Beloro	ulimit.o		\
294b1593d50SJason Beloro	umask.o			\
295b1593d50SJason Beloro	umount2.o		\
296b1593d50SJason Beloro	utssys.o		\
297b1593d50SJason Beloro	uucopy.o		\
298b1593d50SJason Beloro	vhangup.o		\
299b1593d50SJason Beloro	waitid.o		\
300b1593d50SJason Beloro	write.o			\
301b1593d50SJason Beloro	writev.o		\
302b1593d50SJason Beloro	yield.o
303b1593d50SJason Beloro
304b1593d50SJason BeloroSYSOBJS=			\
305b1593d50SJason Beloro	__clock_gettime.o	\
306b1593d50SJason Beloro	__getcontext.o		\
307050c4bfeSGangadhar Mylapuram	__uadmin.o		\
308b1593d50SJason Beloro	_lwp_mutex_unlock.o	\
309b1593d50SJason Beloro	_stack_grow.o		\
310b1593d50SJason Beloro	door.o			\
311b1593d50SJason Beloro	forkx.o			\
312b1593d50SJason Beloro	forkallx.o		\
313b1593d50SJason Beloro	gettimeofday.o		\
314b1593d50SJason Beloro	pipe.o			\
315b1593d50SJason Beloro	sparc_utrap_install.o	\
316b1593d50SJason Beloro	syscall.o		\
317b1593d50SJason Beloro	tls_get_addr.o		\
318b1593d50SJason Beloro	uadmin.o		\
319b1593d50SJason Beloro	umount.o		\
320b1593d50SJason Beloro	uname.o			\
321b1593d50SJason Beloro	vforkx.o
322b1593d50SJason Beloro
323b1593d50SJason Beloro# Preserved solely to ease maintenance of 32-bit and 64-bit library builds
324b1593d50SJason Beloro# This macro should ALWAYS be empty; native APIs are already 'large file'.
325b1593d50SJason BeloroPORTGEN64=
326b1593d50SJason Beloro
327b1593d50SJason Beloro# objects from source under $(LIBCDIR)/port
328b1593d50SJason BeloroPORTFP=				\
329b1593d50SJason Beloro	__flt_decim.o		\
330b1593d50SJason Beloro	__flt_rounds.o		\
331b1593d50SJason Beloro	__tbl_10_b.o		\
332b1593d50SJason Beloro	__tbl_10_h.o		\
333b1593d50SJason Beloro	__tbl_10_s.o		\
334b1593d50SJason Beloro	__tbl_2_b.o		\
335b1593d50SJason Beloro	__tbl_2_h.o		\
336b1593d50SJason Beloro	__tbl_2_s.o		\
337b1593d50SJason Beloro	__tbl_fdq.o		\
338b1593d50SJason Beloro	__tbl_tens.o		\
339b1593d50SJason Beloro	__x_power.o		\
340b1593d50SJason Beloro	_base_sup.o		\
341b1593d50SJason Beloro	aconvert.o		\
342b1593d50SJason Beloro	decimal_bin.o		\
343b1593d50SJason Beloro	double_decim.o		\
344b1593d50SJason Beloro	econvert.o		\
345b1593d50SJason Beloro	fconvert.o		\
346b1593d50SJason Beloro	file_decim.o		\
347b1593d50SJason Beloro	finite.o		\
348b1593d50SJason Beloro	fp_data.o		\
349b1593d50SJason Beloro	func_decim.o		\
350b1593d50SJason Beloro	gconvert.o		\
351b1593d50SJason Beloro	hex_bin.o		\
352b1593d50SJason Beloro	ieee_globals.o		\
353b1593d50SJason Beloro	pack_float.o		\
354b1593d50SJason Beloro	sigfpe.o		\
355b1593d50SJason Beloro	string_decim.o
356b1593d50SJason Beloro
357b1593d50SJason BeloroPORTGEN=			\
358b1593d50SJason Beloro	_env_data.o		\
359b1593d50SJason Beloro	_xftw.o			\
360b1593d50SJason Beloro	a64l.o			\
361b1593d50SJason Beloro	abort.o			\
362b1593d50SJason Beloro	addsev.o		\
363b1593d50SJason Beloro	assert.o		\
364b1593d50SJason Beloro	attrat.o		\
365b1593d50SJason Beloro	atof.o			\
366b1593d50SJason Beloro	atoi.o			\
367b1593d50SJason Beloro	atol.o			\
368b1593d50SJason Beloro	atoll.o			\
369b1593d50SJason Beloro	attropen.o		\
370b1593d50SJason Beloro	atexit.o		\
371b1593d50SJason Beloro	atfork.o		\
372b1593d50SJason Beloro	basename.o		\
373b1593d50SJason Beloro	calloc.o		\
374b1593d50SJason Beloro	catgets.o		\
375b1593d50SJason Beloro	catopen.o		\
376b1593d50SJason Beloro	cfgetispeed.o		\
377b1593d50SJason Beloro	cfgetospeed.o		\
378b1593d50SJason Beloro	cfree.o			\
379b1593d50SJason Beloro	cfsetispeed.o		\
380b1593d50SJason Beloro	cfsetospeed.o		\
381b1593d50SJason Beloro	cftime.o		\
382b1593d50SJason Beloro	clock.o			\
383b1593d50SJason Beloro	closedir.o		\
384b1593d50SJason Beloro	closefrom.o		\
385b1593d50SJason Beloro	confstr.o		\
386b1593d50SJason Beloro	crypt.o			\
387b1593d50SJason Beloro	csetlen.o		\
388b1593d50SJason Beloro	ctime.o			\
389b1593d50SJason Beloro	ctime_r.o		\
39044991a1cSVladimir Kotal	daemon.o		\
391b1593d50SJason Beloro	deflt.o			\
392b1593d50SJason Beloro	directio.o		\
393b1593d50SJason Beloro	dirname.o		\
394b1593d50SJason Beloro	div.o			\
395b1593d50SJason Beloro	drand48.o		\
3968fd04b83SRoger A. Faulkner	dup.o			\
397b1593d50SJason Beloro	env_data.o		\
398b1593d50SJason Beloro	err.o			\
399b1593d50SJason Beloro	errno.o			\
400b1593d50SJason Beloro	euclen.o		\
401b1593d50SJason Beloro	event_port.o		\
402b1593d50SJason Beloro	execvp.o		\
403b1593d50SJason Beloro	fattach.o		\
404b1593d50SJason Beloro	fdetach.o		\
405b1593d50SJason Beloro	fdopendir.o		\
406b1593d50SJason Beloro	fmtmsg.o		\
407b1593d50SJason Beloro	ftime.o			\
408b1593d50SJason Beloro	ftok.o			\
409b1593d50SJason Beloro	ftw.o			\
410b1593d50SJason Beloro	gcvt.o			\
411b1593d50SJason Beloro	getauxv.o		\
412b1593d50SJason Beloro	getcwd.o		\
413b1593d50SJason Beloro	getdate_err.o		\
414b1593d50SJason Beloro	getdtblsize.o		\
415b1593d50SJason Beloro	getenv.o		\
416b1593d50SJason Beloro	getexecname.o		\
417b1593d50SJason Beloro	getgrnam.o		\
418b1593d50SJason Beloro	getgrnam_r.o		\
419b1593d50SJason Beloro	gethostid.o		\
420b1593d50SJason Beloro	gethostname.o		\
421b1593d50SJason Beloro	gethz.o			\
422b1593d50SJason Beloro	getisax.o		\
423b1593d50SJason Beloro	getloadavg.o		\
424b1593d50SJason Beloro	getlogin.o		\
425b1593d50SJason Beloro	getmntent.o		\
426b1593d50SJason Beloro	getnetgrent.o		\
427b1593d50SJason Beloro	getopt.o		\
428b1593d50SJason Beloro	getopt_long.o		\
429b1593d50SJason Beloro	getpagesize.o		\
430b1593d50SJason Beloro	getpw.o			\
431b1593d50SJason Beloro	getpwnam.o		\
432b1593d50SJason Beloro	getpwnam_r.o		\
433b1593d50SJason Beloro	getrusage.o		\
434b1593d50SJason Beloro	getspent.o		\
435b1593d50SJason Beloro	getspent_r.o		\
436b1593d50SJason Beloro	getsubopt.o		\
437b1593d50SJason Beloro	gettxt.o		\
438b1593d50SJason Beloro	getusershell.o		\
439b1593d50SJason Beloro	getut.o			\
440b1593d50SJason Beloro	getutx.o		\
441b1593d50SJason Beloro	getvfsent.o		\
442b1593d50SJason Beloro	getwd.o			\
443b1593d50SJason Beloro	getwidth.o		\
444b1593d50SJason Beloro	getxby_door.o		\
445b1593d50SJason Beloro	gtxt.o			\
446b1593d50SJason Beloro	hsearch.o		\
447b1593d50SJason Beloro	iconv.o			\
448b1593d50SJason Beloro	imaxabs.o		\
449b1593d50SJason Beloro	imaxdiv.o		\
450b1593d50SJason Beloro	index.o			\
451b1593d50SJason Beloro	initgroups.o		\
452b1593d50SJason Beloro	insque.o		\
453b1593d50SJason Beloro	isaexec.o		\
454b1593d50SJason Beloro	isastream.o		\
455b1593d50SJason Beloro	isatty.o		\
456b1593d50SJason Beloro	killpg.o		\
457b1593d50SJason Beloro	klpdlib.o		\
458b1593d50SJason Beloro	l64a.o			\
459b1593d50SJason Beloro	lckpwdf.o		\
460b1593d50SJason Beloro	lconstants.o		\
461b1593d50SJason Beloro	ldivide.o		\
462b1593d50SJason Beloro	lexp10.o		\
463b1593d50SJason Beloro	lfind.o			\
464b1593d50SJason Beloro	lfmt.o			\
465b1593d50SJason Beloro	lfmt_log.o		\
466b1593d50SJason Beloro	lldiv.o			\
467b1593d50SJason Beloro	llog10.o		\
468b1593d50SJason Beloro	lltostr.o		\
469b1593d50SJason Beloro	lmath.o			\
470b1593d50SJason Beloro	localtime.o		\
471b1593d50SJason Beloro	lsearch.o		\
472b1593d50SJason Beloro	madvise.o		\
473b1593d50SJason Beloro	malloc.o		\
474b1593d50SJason Beloro	memalign.o		\
475b1593d50SJason Beloro	mkdev.o			\
476b1593d50SJason Beloro	mkdtemp.o		\
477b1593d50SJason Beloro	mkfifo.o		\
478b1593d50SJason Beloro	mkstemp.o		\
479b1593d50SJason Beloro	mktemp.o		\
480b1593d50SJason Beloro	mlock.o			\
481b1593d50SJason Beloro	mlockall.o		\
482b1593d50SJason Beloro	mon.o			\
483b1593d50SJason Beloro	msync.o			\
484b1593d50SJason Beloro	munlock.o		\
485b1593d50SJason Beloro	munlockall.o		\
486b1593d50SJason Beloro	ndbm.o			\
487b1593d50SJason Beloro	nftw.o			\
488b1593d50SJason Beloro	nlspath_checks.o	\
489b1593d50SJason Beloro	nsparse.o		\
490b1593d50SJason Beloro	nss_common.o		\
491b1593d50SJason Beloro	nss_dbdefs.o		\
492b1593d50SJason Beloro	nss_deffinder.o		\
493b1593d50SJason Beloro	opendir.o		\
494b1593d50SJason Beloro	opt_data.o		\
495b1593d50SJason Beloro	perror.o		\
496b1593d50SJason Beloro	pfmt.o			\
497b1593d50SJason Beloro	pfmt_data.o		\
498b1593d50SJason Beloro	pfmt_print.o		\
499b1593d50SJason Beloro	plock.o			\
500b1593d50SJason Beloro	poll.o			\
501b1593d50SJason Beloro	posix_fadvise.o		\
502b1593d50SJason Beloro	posix_fallocate.o	\
503b1593d50SJason Beloro	posix_madvise.o		\
504b1593d50SJason Beloro	posix_memalign.o	\
505b1593d50SJason Beloro	priocntl.o		\
506b1593d50SJason Beloro	privlib.o		\
507b1593d50SJason Beloro	priv_str_xlate.o	\
508b1593d50SJason Beloro	psiginfo.o		\
509b1593d50SJason Beloro	psignal.o		\
510b1593d50SJason Beloro	pt.o			\
511b1593d50SJason Beloro	putpwent.o		\
512b1593d50SJason Beloro	putspent.o		\
513b1593d50SJason Beloro	raise.o			\
514b1593d50SJason Beloro	rand.o			\
515b1593d50SJason Beloro	random.o		\
516b1593d50SJason Beloro	rctlops.o		\
517b1593d50SJason Beloro	readdir.o		\
518b1593d50SJason Beloro	readdir_r.o		\
519b1593d50SJason Beloro	realpath.o		\
520b1593d50SJason Beloro	reboot.o		\
521b1593d50SJason Beloro	regexpr.o		\
522b1593d50SJason Beloro	remove.o		\
523b1593d50SJason Beloro	rewinddir.o		\
524b1593d50SJason Beloro	rindex.o		\
525b1593d50SJason Beloro	scandir.o		\
526b1593d50SJason Beloro	seekdir.o		\
527b1593d50SJason Beloro	select.o		\
528b1593d50SJason Beloro	setlabel.o		\
529b1593d50SJason Beloro	setpriority.o		\
530b1593d50SJason Beloro	settimeofday.o		\
531b1593d50SJason Beloro	sh_locks.o		\
532b1593d50SJason Beloro	sigflag.o		\
533b1593d50SJason Beloro	siglist.o		\
534b1593d50SJason Beloro	sigsend.o		\
535b1593d50SJason Beloro	sigsetops.o		\
536b1593d50SJason Beloro	ssignal.o		\
537b1593d50SJason Beloro	stack.o			\
538b1593d50SJason Beloro	str2sig.o		\
539b1593d50SJason Beloro	strcase_charmap.o	\
540b1593d50SJason Beloro	strcat.o		\
541b1593d50SJason Beloro	strcspn.o		\
542b1593d50SJason Beloro	strdup.o		\
543b1593d50SJason Beloro	strerror.o		\
544b1593d50SJason Beloro	strncat.o		\
545b1593d50SJason Beloro	strlcat.o		\
546b1593d50SJason Beloro	strncasecmp.o		\
547b1593d50SJason Beloro	strpbrk.o		\
548b1593d50SJason Beloro	strrchr.o		\
549b1593d50SJason Beloro	strsep.o		\
550b1593d50SJason Beloro	strsignal.o		\
551b1593d50SJason Beloro	strspn.o		\
552b1593d50SJason Beloro	strstr.o		\
553b1593d50SJason Beloro	strtod.o		\
554b1593d50SJason Beloro	strtoimax.o		\
555b1593d50SJason Beloro	strtok.o		\
556b1593d50SJason Beloro	strtok_r.o		\
557b1593d50SJason Beloro	strtoumax.o		\
558b1593d50SJason Beloro	swab.o			\
559b1593d50SJason Beloro	swapctl.o		\
560b1593d50SJason Beloro	sysconf.o		\
561b1593d50SJason Beloro	syslog.o		\
562b1593d50SJason Beloro	tcdrain.o		\
563b1593d50SJason Beloro	tcflow.o		\
564b1593d50SJason Beloro	tcflush.o		\
565b1593d50SJason Beloro	tcgetattr.o		\
566b1593d50SJason Beloro	tcgetpgrp.o		\
567b1593d50SJason Beloro	tcgetsid.o		\
568b1593d50SJason Beloro	tcsendbreak.o		\
569b1593d50SJason Beloro	tcsetattr.o		\
570b1593d50SJason Beloro	tcsetpgrp.o		\
571b1593d50SJason Beloro	tell.o			\
572b1593d50SJason Beloro	telldir.o		\
573b1593d50SJason Beloro	tfind.o			\
574b1593d50SJason Beloro	time_data.o		\
575b1593d50SJason Beloro	time_gdata.o		\
576b1593d50SJason Beloro	truncate.o		\
577b1593d50SJason Beloro	tsdalloc.o		\
578b1593d50SJason Beloro	tsearch.o		\
579b1593d50SJason Beloro	ttyname.o		\
580b1593d50SJason Beloro	ttyslot.o		\
581b1593d50SJason Beloro	ualarm.o		\
582b1593d50SJason Beloro	ucred.o			\
583b1593d50SJason Beloro	valloc.o		\
584b1593d50SJason Beloro	vlfmt.o			\
585b1593d50SJason Beloro	vpfmt.o			\
586b1593d50SJason Beloro	waitpid.o		\
587b1593d50SJason Beloro	walkstack.o		\
588b1593d50SJason Beloro	wdata.o			\
589b1593d50SJason Beloro	xgetwidth.o		\
590b1593d50SJason Beloro	xpg4.o			\
591b1593d50SJason Beloro	xpg6.o
592b1593d50SJason Beloro
593b1593d50SJason BeloroPORTPRINT_W=			\
594b1593d50SJason Beloro	doprnt_w.o
595b1593d50SJason Beloro
596b1593d50SJason BeloroPORTPRINT=			\
597b1593d50SJason Beloro	asprintf.o		\
598b1593d50SJason Beloro	doprnt.o		\
599b1593d50SJason Beloro	fprintf.o		\
600b1593d50SJason Beloro	printf.o		\
601b1593d50SJason Beloro	snprintf.o		\
602b1593d50SJason Beloro	sprintf.o		\
603b1593d50SJason Beloro	vfprintf.o		\
604b1593d50SJason Beloro	vprintf.o		\
605b1593d50SJason Beloro	vsnprintf.o		\
606b1593d50SJason Beloro	vsprintf.o		\
607b1593d50SJason Beloro	vwprintf.o		\
608b1593d50SJason Beloro	wprintf.o
609b1593d50SJason Beloro
610b1593d50SJason Beloro# Preserved solely to ease maintenance of 32-bit and 64-bit library builds
611b1593d50SJason Beloro# This macro should ALWAYS be empty; native APIs are already 'large file'.
612b1593d50SJason BeloroPORTSTDIO64=
613b1593d50SJason Beloro
614b1593d50SJason BeloroPORTSTDIO_W=			\
615b1593d50SJason Beloro	doscan_w.o
616b1593d50SJason Beloro
617b1593d50SJason BeloroPORTSTDIO=			\
618b1593d50SJason Beloro	__extensions.o		\
619b1593d50SJason Beloro	_endopen.o		\
620b1593d50SJason Beloro	_filbuf.o		\
621b1593d50SJason Beloro	_findbuf.o		\
622b1593d50SJason Beloro	_flsbuf.o		\
623b1593d50SJason Beloro	_wrtchk.o		\
624b1593d50SJason Beloro	clearerr.o		\
625b1593d50SJason Beloro	ctermid.o		\
626b1593d50SJason Beloro	ctermid_r.o		\
627b1593d50SJason Beloro	cuserid.o		\
628b1593d50SJason Beloro	data.o			\
629b1593d50SJason Beloro	doscan.o		\
630b1593d50SJason Beloro	fdopen.o		\
631b1593d50SJason Beloro	feof.o			\
632b1593d50SJason Beloro	ferror.o		\
633b1593d50SJason Beloro	fgetc.o			\
634b1593d50SJason Beloro	fgets.o			\
635b1593d50SJason Beloro	fileno.o		\
636b1593d50SJason Beloro	flockf.o		\
637b1593d50SJason Beloro	flush.o			\
638b1593d50SJason Beloro	fopen.o			\
639b1593d50SJason Beloro	fpos.o			\
640b1593d50SJason Beloro	fputc.o			\
641b1593d50SJason Beloro	fputs.o			\
642b1593d50SJason Beloro	fread.o			\
643b1593d50SJason Beloro	fseek.o			\
644b1593d50SJason Beloro	fseeko.o		\
645b1593d50SJason Beloro	ftell.o			\
646b1593d50SJason Beloro	ftello.o		\
647b1593d50SJason Beloro	fwrite.o		\
648b1593d50SJason Beloro	getc.o			\
649b1593d50SJason Beloro	getchar.o		\
650b1593d50SJason Beloro	getpass.o		\
651b1593d50SJason Beloro	gets.o			\
652b1593d50SJason Beloro	getw.o			\
653b1593d50SJason Beloro	popen.o			\
654b1593d50SJason Beloro	putc.o			\
655b1593d50SJason Beloro	putchar.o		\
656b1593d50SJason Beloro	puts.o			\
657b1593d50SJason Beloro	putw.o			\
658b1593d50SJason Beloro	rewind.o		\
659b1593d50SJason Beloro	scanf.o			\
660b1593d50SJason Beloro	setbuf.o		\
661b1593d50SJason Beloro	setbuffer.o		\
662b1593d50SJason Beloro	setvbuf.o		\
663b1593d50SJason Beloro	system.o		\
664b1593d50SJason Beloro	tempnam.o		\
665b1593d50SJason Beloro	tmpfile.o		\
666b1593d50SJason Beloro	tmpnam_r.o		\
667b1593d50SJason Beloro	ungetc.o		\
668b1593d50SJason Beloro	mse.o			\
669b1593d50SJason Beloro	vscanf.o		\
670b1593d50SJason Beloro	vwscanf.o		\
671b1593d50SJason Beloro	wscanf.o
672b1593d50SJason Beloro
673b1593d50SJason BeloroPORTI18N=			\
674b1593d50SJason Beloro	getwchar.o		\
675b1593d50SJason Beloro	putwchar.o		\
676b1593d50SJason Beloro	putws.o			\
677b1593d50SJason Beloro	strtows.o		\
678b1593d50SJason Beloro	wcstoimax.o		\
679b1593d50SJason Beloro	wcstol.o		\
680b1593d50SJason Beloro	wcstoul.o		\
681b1593d50SJason Beloro	wcswcs.o		\
682b1593d50SJason Beloro	wscasecmp.o		\
683b1593d50SJason Beloro	wscat.o			\
684b1593d50SJason Beloro	wschr.o			\
685b1593d50SJason Beloro	wscmp.o			\
686b1593d50SJason Beloro	wscpy.o			\
687b1593d50SJason Beloro	wscspn.o		\
688b1593d50SJason Beloro	wsdup.o			\
689b1593d50SJason Beloro	wslen.o			\
690b1593d50SJason Beloro	wsncasecmp.o		\
691b1593d50SJason Beloro	wsncat.o		\
692b1593d50SJason Beloro	wsncmp.o		\
693b1593d50SJason Beloro	wsncpy.o		\
694b1593d50SJason Beloro	wspbrk.o		\
695b1593d50SJason Beloro	wsprintf.o		\
696b1593d50SJason Beloro	wsrchr.o		\
697b1593d50SJason Beloro	wsscanf.o		\
698b1593d50SJason Beloro	wsspn.o			\
699b1593d50SJason Beloro	wstod.o			\
700b1593d50SJason Beloro	wstok.o			\
701b1593d50SJason Beloro	wstol.o			\
702b1593d50SJason Beloro	wstoll.o		\
703b1593d50SJason Beloro	wsxfrm.o		\
704b1593d50SJason Beloro	wmemchr.o		\
705b1593d50SJason Beloro	wmemcmp.o		\
706b1593d50SJason Beloro	wmemcpy.o		\
707b1593d50SJason Beloro	wmemmove.o		\
708b1593d50SJason Beloro	wmemset.o		\
709b1593d50SJason Beloro	wcsstr.o		\
710b1593d50SJason Beloro	gettext.o		\
711b1593d50SJason Beloro	gettext_real.o		\
712b1593d50SJason Beloro	gettext_util.o		\
713b1593d50SJason Beloro	gettext_gnu.o		\
714b1593d50SJason Beloro	plural_parser.o		\
715b1593d50SJason Beloro	wdresolve.o		\
716b1593d50SJason Beloro	_ctype.o		\
717b1593d50SJason Beloro	isascii.o		\
7184297a3b0SGarrett D'Amore	isdigit.o		\
719b1593d50SJason Beloro	toascii.o
720b1593d50SJason Beloro
721b1593d50SJason BeloroPORTI18N_COND=			\
722b1593d50SJason Beloro	wcstol_longlong.o	\
723b1593d50SJason Beloro	wcstoul_longlong.o
724b1593d50SJason Beloro
7254297a3b0SGarrett D'AmorePORTLOCALE=			\
7264297a3b0SGarrett D'Amore	ascii.o			\
7274297a3b0SGarrett D'Amore	big5.o			\
7284297a3b0SGarrett D'Amore	btowc.o			\
7294297a3b0SGarrett D'Amore	collate.o		\
7304297a3b0SGarrett D'Amore	collcmp.o		\
7314297a3b0SGarrett D'Amore	euc.o			\
7324297a3b0SGarrett D'Amore	fnmatch.o		\
7334297a3b0SGarrett D'Amore	fgetwc.o		\
7344297a3b0SGarrett D'Amore	fgetws.o		\
7354297a3b0SGarrett D'Amore	fputwc.o		\
7364297a3b0SGarrett D'Amore	fputws.o		\
7374297a3b0SGarrett D'Amore	fwide.o			\
7384297a3b0SGarrett D'Amore	gb18030.o		\
7394297a3b0SGarrett D'Amore	gb2312.o		\
7404297a3b0SGarrett D'Amore	gbk.o			\
7414297a3b0SGarrett D'Amore	getdate.o		\
7424297a3b0SGarrett D'Amore	iswctype.o		\
7434297a3b0SGarrett D'Amore	ldpart.o		\
7444297a3b0SGarrett D'Amore	lmessages.o		\
7454297a3b0SGarrett D'Amore	lnumeric.o		\
7464297a3b0SGarrett D'Amore	lmonetary.o		\
7474297a3b0SGarrett D'Amore	localeconv.o		\
7484297a3b0SGarrett D'Amore	mbftowc.o		\
7494297a3b0SGarrett D'Amore	mblen.o			\
7504297a3b0SGarrett D'Amore	mbrlen.o		\
7514297a3b0SGarrett D'Amore	mbrtowc.o		\
7524297a3b0SGarrett D'Amore	mbsinit.o		\
7534297a3b0SGarrett D'Amore	mbsrtowcs.o		\
7544297a3b0SGarrett D'Amore	mbstowcs.o		\
7554297a3b0SGarrett D'Amore	mbtowc.o		\
7564297a3b0SGarrett D'Amore	mskanji.o		\
757*163bd69bSGarrett D'Amore	nextwctype.o		\
758*163bd69bSGarrett D'Amore	nl_langinfo.o		\
7594297a3b0SGarrett D'Amore	none.o			\
7604297a3b0SGarrett D'Amore	regcomp.o		\
7614297a3b0SGarrett D'Amore	regfree.o		\
7624297a3b0SGarrett D'Amore	regerror.o		\
7634297a3b0SGarrett D'Amore	regexec.o		\
7644297a3b0SGarrett D'Amore	rune.o			\
7654297a3b0SGarrett D'Amore	runetype.o		\
7664297a3b0SGarrett D'Amore	setlocale.o		\
7674297a3b0SGarrett D'Amore	setrunelocale.o		\
7684297a3b0SGarrett D'Amore	strcoll.o		\
7694297a3b0SGarrett D'Amore	strfmon.o		\
7704297a3b0SGarrett D'Amore	strftime.o		\
7714297a3b0SGarrett D'Amore	strptime.o		\
7724297a3b0SGarrett D'Amore	strxfrm.o		\
7734297a3b0SGarrett D'Amore	table.o			\
7744297a3b0SGarrett D'Amore	timelocal.o		\
7754297a3b0SGarrett D'Amore	tolower.o		\
7764297a3b0SGarrett D'Amore	towlower.o		\
7774297a3b0SGarrett D'Amore	ungetwc.o		\
7784297a3b0SGarrett D'Amore	utf8.o			\
7794297a3b0SGarrett D'Amore	wcrtomb.o		\
7804297a3b0SGarrett D'Amore	wcscoll.o		\
7814297a3b0SGarrett D'Amore	wcsftime.o		\
7824297a3b0SGarrett D'Amore	wcsrtombs.o		\
7834297a3b0SGarrett D'Amore	wcswidth.o		\
7844297a3b0SGarrett D'Amore	wcstombs.o		\
7854297a3b0SGarrett D'Amore	wcsxfrm.o		\
7864297a3b0SGarrett D'Amore	wctob.o			\
7874297a3b0SGarrett D'Amore	wctomb.o		\
7884297a3b0SGarrett D'Amore	wctrans.o		\
7894297a3b0SGarrett D'Amore	wctype.o		\
7904297a3b0SGarrett D'Amore	wcwidth.o		\
7914297a3b0SGarrett D'Amore	wscol.o
7924297a3b0SGarrett D'Amore
793b1593d50SJason BeloroAIOOBJS=			\
794b1593d50SJason Beloro	aio.o			\
795b1593d50SJason Beloro	aio_alloc.o		\
796b1593d50SJason Beloro	posix_aio.o
797b1593d50SJason Beloro
798b1593d50SJason BeloroRTOBJS=				\
799b1593d50SJason Beloro	clock_timer.o		\
800b1593d50SJason Beloro	mqueue.o		\
801b1593d50SJason Beloro	pos4obj.o		\
802b1593d50SJason Beloro	sched.o			\
803b1593d50SJason Beloro	sem.o			\
804b1593d50SJason Beloro	shm.o			\
805b1593d50SJason Beloro	sigev_thread.o
806b1593d50SJason Beloro
807b1593d50SJason BeloroTPOOLOBJS=			\
808b1593d50SJason Beloro	thread_pool.o
809b1593d50SJason Beloro
810b1593d50SJason BeloroTHREADSOBJS=			\
811b1593d50SJason Beloro	alloc.o			\
812b1593d50SJason Beloro	assfail.o		\
813b1593d50SJason Beloro	cancel.o		\
814b1593d50SJason Beloro	door_calls.o		\
815b1593d50SJason Beloro	pthr_attr.o		\
816b1593d50SJason Beloro	pthr_barrier.o		\
817b1593d50SJason Beloro	pthr_cond.o		\
818b1593d50SJason Beloro	pthr_mutex.o		\
819b1593d50SJason Beloro	pthr_rwlock.o		\
820b1593d50SJason Beloro	pthread.o		\
821b1593d50SJason Beloro	rwlock.o		\
822b1593d50SJason Beloro	scalls.o		\
823b1593d50SJason Beloro	sema.o			\
824b1593d50SJason Beloro	sigaction.o		\
825b1593d50SJason Beloro	spawn.o			\
826b1593d50SJason Beloro	synch.o			\
827b1593d50SJason Beloro	tdb_agent.o		\
828b1593d50SJason Beloro	thr.o			\
829b1593d50SJason Beloro	thread_interface.o	\
830b1593d50SJason Beloro	tls.o			\
831b1593d50SJason Beloro	tsd.o
832b1593d50SJason Beloro
833b1593d50SJason BeloroTHREADSMACHOBJS=		\
834b1593d50SJason Beloro	machdep.o
835b1593d50SJason Beloro
836b1593d50SJason BeloroTHREADSASMOBJS=			\
837b1593d50SJason Beloro	asm_subr.o
838b1593d50SJason Beloro
839b1593d50SJason BeloroUNICODEOBJS=			\
840b1593d50SJason Beloro	u8_textprep.o		\
841b1593d50SJason Beloro	uconv.o
842b1593d50SJason Beloro
843b1593d50SJason BeloroUNWINDMACHOBJS=			\
844b1593d50SJason Beloro	unwind.o
845b1593d50SJason Beloro
846b1593d50SJason BeloroUNWINDASMOBJS=			\
847b1593d50SJason Beloro	unwind_frame.o
848b1593d50SJason Beloro
849b1593d50SJason Beloro# Preserved solely to ease maintenance of 32-bit and 64-bit library builds
850b1593d50SJason Beloro# This macro should ALWAYS be empty; native APIs are already 'large file'.
851b1593d50SJason BeloroPORTSYS64=
852b1593d50SJason Beloro
853b1593d50SJason BeloroPORTSYS=			\
854b1593d50SJason Beloro	_autofssys.o		\
8558fd04b83SRoger A. Faulkner	access.o		\
856b1593d50SJason Beloro	acctctl.o		\
857b1593d50SJason Beloro	bsd_signal.o		\
8588fd04b83SRoger A. Faulkner	chown.o			\
859b1593d50SJason Beloro	corectl.o		\
860b1593d50SJason Beloro	exacctsys.o		\
861b1593d50SJason Beloro	execl.o			\
862b1593d50SJason Beloro	execle.o		\
863b1593d50SJason Beloro	execv.o			\
8648fd04b83SRoger A. Faulkner	fcntl.o			\
865b1593d50SJason Beloro	getpagesizes.o		\
866b1593d50SJason Beloro	getpeerucred.o		\
867b1593d50SJason Beloro	inst_sync.o		\
868b1593d50SJason Beloro	issetugid.o		\
869b1593d50SJason Beloro	label.o			\
870b1593d50SJason Beloro	libc_link.o		\
871b1593d50SJason Beloro	lockf.o			\
872b1593d50SJason Beloro	lwp.o			\
873b1593d50SJason Beloro	lwp_cond.o		\
874b1593d50SJason Beloro	lwp_rwlock.o		\
875b1593d50SJason Beloro	lwp_sigmask.o		\
876b1593d50SJason Beloro	meminfosys.o		\
877b1593d50SJason Beloro	msgsys.o		\
878b1593d50SJason Beloro	nfssys.o		\
8798fd04b83SRoger A. Faulkner	open.o			\
880b1593d50SJason Beloro	pgrpsys.o		\
881b1593d50SJason Beloro	posix_sigwait.o		\
882b1593d50SJason Beloro	ppriv.o			\
883b1593d50SJason Beloro	psetsys.o		\
884b1593d50SJason Beloro	rctlsys.o		\
8858fd04b83SRoger A. Faulkner	rename.o		\
886b1593d50SJason Beloro	sbrk.o			\
887b1593d50SJason Beloro	semsys.o		\
888b1593d50SJason Beloro	set_errno.o		\
889b1593d50SJason Beloro	sharefs.o		\
890b1593d50SJason Beloro	shmsys.o		\
891b1593d50SJason Beloro	sidsys.o		\
892b1593d50SJason Beloro	siginterrupt.o		\
893b1593d50SJason Beloro	signal.o		\
894b1593d50SJason Beloro	sigpending.o		\
895b1593d50SJason Beloro	sigstack.o		\
8968fd04b83SRoger A. Faulkner	stat.o			\
897b1593d50SJason Beloro	tasksys.o		\
898b1593d50SJason Beloro	time.o			\
899b1593d50SJason Beloro	time_util.o		\
900b1593d50SJason Beloro	ucontext.o		\
9018fd04b83SRoger A. Faulkner	unlink.o		\
902b1593d50SJason Beloro	ustat.o			\
9033b862e9aSRoger A. Faulkner	utimesys.o		\
904b1593d50SJason Beloro	zone.o
905b1593d50SJason Beloro
906b1593d50SJason BeloroPORTREGEX=			\
907b1593d50SJason Beloro	glob.o			\
908b1593d50SJason Beloro	regcmp.o		\
909b1593d50SJason Beloro	regex.o			\
910b1593d50SJason Beloro	wordexp.o
911b1593d50SJason Beloro
912b1593d50SJason BeloroVALUES=	values-Xa.o
913b1593d50SJason Beloro
914b1593d50SJason BeloroMOSTOBJS=			\
915b1593d50SJason Beloro	$(STRETS)		\
916b1593d50SJason Beloro	$(CRTOBJS)		\
917b1593d50SJason Beloro	$(DYNOBJS)		\
918b1593d50SJason Beloro	$(FPOBJS)		\
919b1593d50SJason Beloro	$(FPOBJS64)		\
920b1593d50SJason Beloro	$(FPASMOBJS)		\
921b1593d50SJason Beloro	$(ATOMICOBJS)		\
922b1593d50SJason Beloro	$(XATTROBJS)		\
923b1593d50SJason Beloro	$(COMOBJS)		\
924b1593d50SJason Beloro	$(GENOBJS)		\
925b1593d50SJason Beloro	$(PRFOBJS)		\
926b1593d50SJason Beloro	$(PORTFP)		\
927b1593d50SJason Beloro	$(PORTGEN)		\
928b1593d50SJason Beloro	$(PORTGEN64)		\
929b1593d50SJason Beloro	$(PORTI18N)		\
930b1593d50SJason Beloro	$(PORTI18N_COND)	\
9314297a3b0SGarrett D'Amore	$(PORTLOCALE)		\
932b1593d50SJason Beloro	$(PORTPRINT)		\
933b1593d50SJason Beloro	$(PORTPRINT_W)		\
934b1593d50SJason Beloro	$(PORTREGEX)		\
935b1593d50SJason Beloro	$(PORTSTDIO)		\
936b1593d50SJason Beloro	$(PORTSTDIO64)		\
937b1593d50SJason Beloro	$(PORTSTDIO_W)		\
938b1593d50SJason Beloro	$(PORTSYS)		\
939b1593d50SJason Beloro	$(PORTSYS64)		\
940b1593d50SJason Beloro	$(AIOOBJS)		\
941b1593d50SJason Beloro	$(RTOBJS)		\
942b1593d50SJason Beloro	$(TPOOLOBJS)		\
943b1593d50SJason Beloro	$(THREADSOBJS)		\
944b1593d50SJason Beloro	$(THREADSMACHOBJS)	\
945b1593d50SJason Beloro	$(THREADSASMOBJS)	\
946b1593d50SJason Beloro	$(UNICODEOBJS)		\
947b1593d50SJason Beloro	$(UNWINDMACHOBJS)	\
948b1593d50SJason Beloro	$(UNWINDASMOBJS)	\
949b1593d50SJason Beloro	$(COMSYSOBJS)		\
950b1593d50SJason Beloro	$(SYSOBJS)		\
951b1593d50SJason Beloro	$(COMSYSOBJS64)		\
952b1593d50SJason Beloro	$(SYSOBJS64)		\
953b1593d50SJason Beloro	$(VALUES)
954b1593d50SJason Beloro
955b1593d50SJason BeloroTRACEOBJS=			\
956b1593d50SJason Beloro	plockstat.o
957b1593d50SJason Beloro
958b1593d50SJason Beloro# NOTE:	libc.so.1 must be linked with the minimal crti.o and crtn.o
959b1593d50SJason Beloro# modules whose source is provided in the $(SRC)/lib/common directory.
960b1593d50SJason Beloro# This must be done because otherwise the Sun C compiler would insert
961b1593d50SJason Beloro# its own versions of these modules and those versions contain code
962b1593d50SJason Beloro# to call out to C++ initialization functions.  Such C++ initialization
963b1593d50SJason Beloro# functions can call back into libc before thread initialization is
964b1593d50SJason Beloro# complete and this leads to segmentation violations and other problems.
965b1593d50SJason Beloro# Since libc contains no C++ code, linking with the minimal crti.o and
966b1593d50SJason Beloro# crtn.o modules is safe and avoids the problems described above.
967b1593d50SJason BeloroOBJECTS= $(CRTI) $(MOSTOBJS) $(CRTN)
968b1593d50SJason BeloroCRTSRCS= ../../common/sparcv9
969b1593d50SJason Beloro
970b1593d50SJason Beloro# include common library definitions
971b1593d50SJason Beloroinclude $(SRC)/lib/Makefile.lib
972b1593d50SJason Beloroinclude $(SRC)/lib/Makefile.lib.64
973b1593d50SJason Beloro
974b1593d50SJason Beloro# NOTE: libc_i18n.a will be part of libc.so.1.  Therefore, the compilation
975b1593d50SJason Beloro# conditions such as the settings of CFLAGS and CPPFLAGS for the libc_i18n stuff
976b1593d50SJason Beloro# need to be compatible with the ones for the libc stuff.  Whenever the changes
977b1593d50SJason Beloro# that affect the compilation conditions of libc happened, those for libc_i18n
978b1593d50SJason Beloro# also need to be updated.
979b1593d50SJason Beloro
980b1593d50SJason Beloro# we need to override the default SONAME here because we might
981b1593d50SJason Beloro# be building a variant object (still libc.so.1, but different filename)
982b1593d50SJason BeloroSONAME = libc.so.1
983b1593d50SJason Beloro
984b1593d50SJason BeloroCFLAGS64 += $(CCVERBOSE)
985b1593d50SJason Beloro
986b1593d50SJason Beloro# This is necessary to avoid problems with calling _ex_unwind().
987b1593d50SJason Beloro# We probably don't want any inlining anyway.
988b1593d50SJason BeloroCFLAGS64 += -xinline=
989b1593d50SJason Beloro
990b1593d50SJason Beloro# Setting THREAD_DEBUG = -DTHREAD_DEBUG (make THREAD_DEBUG=-DTHREAD_DEBUG ...)
991b1593d50SJason Beloro# enables ASSERT() checking in the threads portion of the library.
992b1593d50SJason Beloro# This is automatically enabled for DEBUG builds, not for non-debug builds.
993b1593d50SJason BeloroTHREAD_DEBUG =
994b1593d50SJason Beloro$(NOT_RELEASE_BUILD)THREAD_DEBUG = -DTHREAD_DEBUG
995b1593d50SJason Beloro
996b1593d50SJason Beloro# Make string literals read-only to save memory.
997b1593d50SJason BeloroCFLAGS64 += $(XSTRCONST)
998b1593d50SJason Beloro
999b1593d50SJason BeloroALTPICS= $(TRACEOBJS:%=pics/%)
1000b1593d50SJason Beloro
1001b1593d50SJason Beloro$(DYNLIB) := PICS += $(ROOTFS_LIBDIR64)/libc_i18n.a
10021e49577aSRod Evans$(DYNLIB) := BUILD.SO = $(LD) -o $@ -G $(DYNFLAGS) $(PICS) $(ALTPICS) $(EXTPICS)
1003b1593d50SJason Beloro
10041e49577aSRod EvansMAPFILES =	$(LIBCDIR)/port/mapfile-vers
1005b1593d50SJason Beloro
1006b1593d50SJason Belorosparcv9_C_PICFLAGS= -K PIC
1007b1593d50SJason BeloroCFLAGS64 +=	$(EXTN_CFLAGS)
1008b1593d50SJason BeloroCPPFLAGS=	-D_REENTRANT -Dsparc $(EXTN_CPPFLAGS) $(THREAD_DEBUG) \
1009b1593d50SJason Beloro		-I$(LIBCBASE)/inc -I$(LIBCDIR)/inc $(CPPFLAGS.master)
1010b1593d50SJason BeloroASFLAGS=	$(EXTN_ASFLAGS) -K PIC -P -D__STDC__ -D_ASM -D__sparcv9 $(CPPFLAGS) \
1011b1593d50SJason Beloro		$(sparcv9_AS_XARCH)
1012b1593d50SJason Beloro
10138fd04b83SRoger A. Faulkner# As a favor to the dtrace syscall provider, libc still calls the
10148fd04b83SRoger A. Faulkner# old syscall traps that have been obsoleted by the *at() interfaces.
10158fd04b83SRoger A. Faulkner# Delete this to compile libc using only the new *at() system call traps
10168fd04b83SRoger A. FaulknerCPPFLAGS += -D_RETAIN_OLD_SYSCALLS
10178fd04b83SRoger A. Faulkner
1018b1593d50SJason Beloro# Inform the run-time linker about libc specialized initialization
1019b1593d50SJason BeloroRTLDINFO =	-z rtldinfo=tls_rtldinfo
1020b1593d50SJason BeloroDYNFLAGS +=	$(RTLDINFO)
1021b1593d50SJason Beloro
102232a69537SRoger A. Faulkner# Force libc's internal references to be resolved immediately upon loading
102332a69537SRoger A. Faulkner# in order to avoid critical region problems.  Since almost all libc symbols
102432a69537SRoger A. Faulkner# are marked 'protected' in the mapfiles, this is a minimal set (15 to 20).
102532a69537SRoger A. FaulknerDYNFLAGS +=	-znow
102632a69537SRoger A. Faulkner
1027b1593d50SJason BeloroDYNFLAGS +=	$(EXTN_DYNFLAGS)
1028b1593d50SJason Beloro
1029b1593d50SJason BeloroBUILD.s=	$(AS) $(ASFLAGS) $< -o $@
1030b1593d50SJason Beloro
1031b1593d50SJason Beloro# Override this top level flag so the compiler builds in its native
1032b1593d50SJason Beloro# C99 mode.  This has been enabled to support the complex arithmetic
1033b1593d50SJason Beloro# added to libc.
1034b1593d50SJason BeloroC99MODE=	$(C99_ENABLE)
1035b1593d50SJason Beloro
1036b1593d50SJason Beloro# libc method of building an archive
1037b1593d50SJason BeloroBUILD.AR= $(RM) $@ ; \
1038b1593d50SJason Beloro	$(AR) q $@ `$(LORDER) $(MOSTOBJS:%=$(DIR)/%)| $(TSORT)`
1039b1593d50SJason Beloro
1040b1593d50SJason Beloro# extra files for the clean target
1041b1593d50SJason BeloroCLEANFILES=			\
1042b1593d50SJason Beloro	$(LIBCDIR)/port/gen/errlst.c	\
1043b1593d50SJason Beloro	$(LIBCDIR)/port/gen/new_list.c	\
1044b1593d50SJason Beloro	assym.h			\
1045b1593d50SJason Beloro	genassym		\
1046b1593d50SJason Beloro	pics/crti.o		\
1047b1593d50SJason Beloro	pics/crtn.o		\
1048b1593d50SJason Beloro	$(ALTPICS)
1049b1593d50SJason Beloro
1050b1593d50SJason BeloroCLOBBERFILES +=	$(LIB_PIC)
1051b1593d50SJason Beloro
1052b1593d50SJason Beloro# list of C source for lint
1053b1593d50SJason BeloroSRCS=							\
1054b1593d50SJason Beloro	$(ATOMICOBJS:%.o=$(SRC)/common/atomic/%.c)	\
1055b1593d50SJason Beloro	$(XATTROBJS:%.o=$(SRC)/common/xattr/%.c)	\
1056b1593d50SJason Beloro	$(COMOBJS:%.o=$(SRC)/common/util/%.c)		\
1057b1593d50SJason Beloro	$(PORTFP:%.o=$(LIBCDIR)/port/fp/%.c)			\
1058b1593d50SJason Beloro	$(PORTGEN:%.o=$(LIBCDIR)/port/gen/%.c)			\
1059b1593d50SJason Beloro	$(PORTI18N:%.o=$(LIBCDIR)/port/i18n/%.c)		\
10604297a3b0SGarrett D'Amore	$(PORTLOCALE:%.o=$(LIBCDIR)/port/locale/%.c)		\
1061b1593d50SJason Beloro	$(PORTPRINT:%.o=$(LIBCDIR)/port/print/%.c)		\
1062b1593d50SJason Beloro	$(PORTREGEX:%.o=$(LIBCDIR)/port/regex/%.c)		\
1063b1593d50SJason Beloro	$(PORTSTDIO:%.o=$(LIBCDIR)/port/stdio/%.c)		\
1064b1593d50SJason Beloro	$(PORTSYS:%.o=$(LIBCDIR)/port/sys/%.c)			\
1065b1593d50SJason Beloro	$(AIOOBJS:%.o=$(LIBCDIR)/port/aio/%.c)			\
1066b1593d50SJason Beloro	$(RTOBJS:%.o=$(LIBCDIR)/port/rt/%.c)			\
1067b1593d50SJason Beloro	$(TPOOLOBJS:%.o=$(LIBCDIR)/port/tpool/%.c)		\
1068b1593d50SJason Beloro	$(THREADSOBJS:%.o=$(LIBCDIR)/port/threads/%.c)		\
1069b1593d50SJason Beloro	$(THREADSMACHOBJS:%.o=$(LIBCDIR)/$(MACH)/threads/%.c)	\
1070b1593d50SJason Beloro	$(UNICODEOBJS:%.o=$(SRC)/common/unicode/%.c)	\
1071b1593d50SJason Beloro	$(UNWINDMACHOBJS:%.o=$(LIBCDIR)/port/unwind/%.c)	\
1072b1593d50SJason Beloro	$(FPOBJS:%.o=$(LIBCDIR)/$(MACH)/fp/%.c)			\
1073b1593d50SJason Beloro	$(FPOBJS64:%.o=$(LIBCBASE)/fp/%.c)		\
1074b1593d50SJason Beloro	$(LIBCBASE)/crt/_ftou.c				\
1075b1593d50SJason Beloro	$(LIBCBASE)/gen/_xregs_clrptr.c			\
1076b1593d50SJason Beloro	$(LIBCBASE)/gen/byteorder.c			\
1077b1593d50SJason Beloro	$(LIBCBASE)/gen/ecvt.c				\
1078b1593d50SJason Beloro	$(LIBCBASE)/gen/getctxt.c			\
1079b1593d50SJason Beloro	$(LIBCBASE)/gen/makectxt.c			\
1080b1593d50SJason Beloro	$(LIBCBASE)/gen/siginfolst.c			\
1081b1593d50SJason Beloro	$(LIBCBASE)/gen/siglongjmp.c			\
1082b1593d50SJason Beloro	$(LIBCBASE)/gen/swapctxt.c
1083b1593d50SJason Beloro
1084b1593d50SJason Beloro# conditional assignments
1085b1593d50SJason Beloro$(DYNLIB) := CRTI = crti.o
1086b1593d50SJason Beloro$(DYNLIB) := CRTN = crtn.o
1087b1593d50SJason Beloro
1088b1593d50SJason Beloro# Files which need the threads .il inline template
1089b1593d50SJason BeloroTIL=				\
1090b1593d50SJason Beloro	aio.o			\
1091b1593d50SJason Beloro	alloc.o			\
1092b1593d50SJason Beloro	assfail.o		\
1093b1593d50SJason Beloro	atexit.o		\
1094b1593d50SJason Beloro	atfork.o		\
1095b1593d50SJason Beloro	cancel.o		\
1096b1593d50SJason Beloro	door_calls.o		\
1097b1593d50SJason Beloro	errno.o			\
1098b1593d50SJason Beloro	getctxt.o		\
1099b1593d50SJason Beloro	lwp.o			\
1100b1593d50SJason Beloro	ma.o			\
1101b1593d50SJason Beloro	machdep.o		\
1102b1593d50SJason Beloro	posix_aio.o		\
1103b1593d50SJason Beloro	pthr_attr.o		\
1104b1593d50SJason Beloro	pthr_barrier.o		\
1105b1593d50SJason Beloro	pthr_cond.o		\
1106b1593d50SJason Beloro	pthr_mutex.o		\
1107b1593d50SJason Beloro	pthr_rwlock.o		\
1108b1593d50SJason Beloro	pthread.o		\
1109b1593d50SJason Beloro	rand.o			\
1110b1593d50SJason Beloro	rwlock.o		\
1111b1593d50SJason Beloro	scalls.o		\
1112b1593d50SJason Beloro	sched.o			\
1113b1593d50SJason Beloro	sema.o			\
1114b1593d50SJason Beloro	sigaction.o		\
1115b1593d50SJason Beloro	sigev_thread.o		\
1116b1593d50SJason Beloro	spawn.o			\
1117b1593d50SJason Beloro	stack.o			\
1118b1593d50SJason Beloro	swapctxt.o		\
1119b1593d50SJason Beloro	synch.o			\
1120b1593d50SJason Beloro	tdb_agent.o		\
1121b1593d50SJason Beloro	thr.o			\
1122b1593d50SJason Beloro	thread_interface.o	\
1123b1593d50SJason Beloro	thread_pool.o		\
1124b1593d50SJason Beloro	tls.o			\
1125b1593d50SJason Beloro	tsd.o			\
1126b1593d50SJason Beloro	unwind.o
1127b1593d50SJason Beloro
1128b1593d50SJason Beloro$(TIL:%=pics/%) := CFLAGS64 += $(LIBCBASE)/threads/sparcv9.il
1129b1593d50SJason Beloro
1130b1593d50SJason Beloro# Files in fp, port/fp subdirectories that need base.il inline template
1131b1593d50SJason BeloroIL=				\
1132b1593d50SJason Beloro	__flt_decim.o		\
1133b1593d50SJason Beloro	decimal_bin.o
1134b1593d50SJason Beloro
1135b1593d50SJason Beloro$(IL:%=pics/%) := CFLAGS64 += $(LIBCBASE)/fp/base.il
1136b1593d50SJason Beloro
1137b1593d50SJason Beloro# Files in fp subdirectory which need __quad.il inline template
1138b1593d50SJason BeloroQIL=				\
1139b1593d50SJason Beloro	_Q_add.o		\
1140b1593d50SJason Beloro	_Q_cmp.o		\
1141b1593d50SJason Beloro	_Q_cmpe.o		\
1142b1593d50SJason Beloro	_Q_div.o		\
1143b1593d50SJason Beloro	_Q_dtoq.o		\
1144b1593d50SJason Beloro	_Q_fcc.o		\
1145b1593d50SJason Beloro	_Q_mul.o		\
1146b1593d50SJason Beloro	_Q_qtod.o		\
1147b1593d50SJason Beloro	_Q_qtoi.o		\
1148b1593d50SJason Beloro	_Q_qtos.o		\
1149b1593d50SJason Beloro	_Q_qtou.o		\
1150b1593d50SJason Beloro	_Q_sqrt.o		\
1151b1593d50SJason Beloro	_Q_stoq.o		\
1152b1593d50SJason Beloro	_Q_sub.o		\
1153b1593d50SJason Beloro	_Qp_qtox.o		\
1154b1593d50SJason Beloro	_Qp_qtoux.o
1155b1593d50SJason Beloro
1156b1593d50SJason Beloro$(QIL:%=pics/%) := CFLAGS64 += $(LIBCDIR)/$(MACH)/fp/__quad.il
1157b1593d50SJason Beloropics/_Qp%.o := CFLAGS64 += -I$(LIBCDIR)/$(MACH)/fp
1158b1593d50SJason Beloropics/_Q%.o := sparcv9_COPTFLAG = -xO4 -xchip=ultra
1159b1593d50SJason Beloro
1160b1593d50SJason Beloro# Files in crt subdirectory which need muldiv64.il inline template
1161b1593d50SJason Beloro#CIL=	mul64.o divrem64.o
1162b1593d50SJason Beloro#$(CIL:%=pics/%) := CFLAGS += $(LIBCBASE)/crt/mul64.il
1163b1593d50SJason Beloro
1164b1593d50SJason Beloro# large-file-aware components that should be built large
1165b1593d50SJason Beloro
1166b1593d50SJason Beloro#$(COMSYSOBJS64:%=pics/%) := \
1167b1593d50SJason Beloro#	CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
1168b1593d50SJason Beloro
1169b1593d50SJason Beloro#$(SYSOBJS64:%=pics/%) := \
1170b1593d50SJason Beloro#	CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
1171b1593d50SJason Beloro
1172b1593d50SJason Beloro#$(PORTGEN64:%=pics/%) := \
1173b1593d50SJason Beloro#	CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
1174b1593d50SJason Beloro
1175b1593d50SJason Beloro#$(PORTSTDIO64:%=pics/%) := \
1176b1593d50SJason Beloro#	CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
1177b1593d50SJason Beloro
1178b1593d50SJason Beloro#$(PORTSYS64:%=pics/%) := \
1179b1593d50SJason Beloro#	CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
1180b1593d50SJason Beloro
1181b1593d50SJason Beloro$(PORTSTDIO_W:%=pics/%) := \
1182b1593d50SJason Beloro	CPPFLAGS += -D_WIDE
1183b1593d50SJason Beloro
1184b1593d50SJason Beloro$(PORTPRINT_W:%=pics/%) := \
1185b1593d50SJason Beloro	CPPFLAGS += -D_WIDE
1186b1593d50SJason Beloro
1187b1593d50SJason Beloro$(PORTI18N_COND:%=pics/%) := \
1188b1593d50SJason Beloro	CPPFLAGS += -D_WCS_LONGLONG
1189b1593d50SJason Beloro
1190b1593d50SJason Beloro# Files which need extra optimization
1191b1593d50SJason Beloropics/getenv.o := sparcv9_COPTFLAG = -xO4
1192b1593d50SJason Beloro
1193b1593d50SJason Beloro.KEEP_STATE:
1194b1593d50SJason Beloro
1195b1593d50SJason Beloroall: $(LIBS) $(LIB_PIC)
1196b1593d50SJason Beloro
1197b1593d50SJason Belorolint	:=	CPPFLAGS += -I$(LIBCDIR)/$(MACH)/fp
1198b1593d50SJason Belorolint	:=	CPPFLAGS += -D_MSE_INT_H -D_LCONV_C99
1199b1593d50SJason Belorolint	:=	LINTFLAGS64 += -mn
1200b1593d50SJason Beloro
1201b1593d50SJason Belorolint:
1202b1593d50SJason Beloro	@echo $(LINT.c) ... $(LDLIBS)
1203b1593d50SJason Beloro	@$(LINT.c) $(SRCS) $(LDLIBS)
1204b1593d50SJason Beloro
1205b1593d50SJason Beloro$(LINTLIB):= SRCS=$(LIBCDIR)/port/llib-lc
1206b1593d50SJason Beloro$(LINTLIB):= CPPFLAGS += -D_MSE_INT_H
1207b1593d50SJason Beloro$(LINTLIB):= LINTFLAGS64=-nvx -m64
1208b1593d50SJason Beloro
1209b1593d50SJason Beloro# object files that depend on inline template
1210b1593d50SJason Beloro$(TIL:%=pics/%): $(LIBCBASE)/threads/sparcv9.il
1211b1593d50SJason Beloro$(IL:%=pics/%): $(LIBCBASE)/fp/base.il
1212b1593d50SJason Beloro$(QIL:%=pics/%): $(LIBCDIR)/$(MACH)/fp/__quad.il
1213b1593d50SJason Beloro#$(CIL:%=pics/%): $(LIBCBASE)/crt/muldiv64.il
1214b1593d50SJason Beloro
1215b1593d50SJason Beloro# include common libc targets
1216b1593d50SJason Beloroinclude $(LIBCDIR)/Makefile.targ
1217b1593d50SJason Beloro
1218b1593d50SJason Beloro# We need to strip out all CTF and DOF data from the static library
1219b1593d50SJason Beloro$(LIB_PIC) := DIR = pics
1220b1593d50SJason Beloro$(LIB_PIC): pics $$(PICS)
1221b1593d50SJason Beloro	$(BUILD.AR)
1222b1593d50SJason Beloro	$(MCS) -d -n .SUNW_ctf $@ > /dev/null 2>&1
1223b1593d50SJason Beloro	$(MCS) -d -n .SUNW_dof $@ > /dev/null 2>&1
1224b1593d50SJason Beloro	$(AR) -ts $@ > /dev/null
1225b1593d50SJason Beloro	$(POST_PROCESS_A)
1226b1593d50SJason Beloro
1227b1593d50SJason Beloro# special cases
1228b1593d50SJason Beloro#$(STRETS:%=pics/%): crt/stret.s
1229b1593d50SJason Beloro#	$(AS) $(ASFLAGS) -DSTRET$(@F:stret%.o=%) crt/stret.s -o $@
1230b1593d50SJason Beloro#	$(POST_PROCESS_O)
1231b1593d50SJason Beloro
1232b1593d50SJason Beloro#crt/_rtbootld.s:	crt/_rtboot.s crt/_rtld.c
1233b1593d50SJason Beloro#	$(CC) $(CPPFLAGS) -O -S -K pic crt/_rtld.c -o crt/_rtld.s
1234b1593d50SJason Beloro#	$(CAT) crt/_rtboot.s crt/_rtld.s > $@
1235b1593d50SJason Beloro#	$(RM) crt/_rtld.s
1236b1593d50SJason Beloro
1237b1593d50SJason BeloroASSYMDEP_OBJS=			\
1238b1593d50SJason Beloro	_lwp_mutex_unlock.o	\
1239b1593d50SJason Beloro	_stack_grow.o		\
1240b1593d50SJason Beloro	asm_subr.o		\
12413de0cfbbSRoger A. Faulkner	setjmp.o		\
1242b1593d50SJason Beloro	tls_get_addr.o		\
1243b1593d50SJason Beloro	unwind_frame.o		\
1244b1593d50SJason Beloro	vforkx.o
1245b1593d50SJason Beloro
1246b1593d50SJason Beloro$(ASSYMDEP_OBJS:%=pics/%)	:=	CPPFLAGS += -I.
1247b1593d50SJason Beloro
1248b1593d50SJason Beloro$(ASSYMDEP_OBJS:%=pics/%): assym.h
1249b1593d50SJason Beloro
1250b1593d50SJason Beloro# assym.h build rules
1251b1593d50SJason Beloro
1252b1593d50SJason BeloroGENASSYM_C = $(LIBCDIR)/$(MACH)/genassym.c
1253b1593d50SJason Beloro
1254b1593d50SJason Beloro# XXX	A hack.  Perhaps this should be 'CPPFLAGS.native' and
1255b1593d50SJason Beloro#	live in Makefile.master
1256b1593d50SJason Beloro
1257b1593d50SJason BeloroCPPFLAGS.genassym = \
1258b1593d50SJason Beloro	$(ENVCPPFLAGS1) $(ENVCPPFLAGS2) $(ENVCPPFLAGS3) $(ENVCPPFLAGS4)
1259b1593d50SJason Beloro
1260b1593d50SJason Belorogenassym: $(GENASSYM_C)
1261b1593d50SJason Beloro	$(NATIVECC) -I$(LIBCBASE)/inc -I$(LIBCDIR)/inc \
1262b1593d50SJason Beloro		$(CPPFLAGS.genassym) -o $@ $(GENASSYM_C)
1263b1593d50SJason Beloro
1264b1593d50SJason BeloroOFFSETS = $(LIBCDIR)/$(MACH)/offsets.in
1265b1593d50SJason Beloro
1266b1593d50SJason Beloroassym.h: $(OFFSETS) genassym
1267b1593d50SJason Beloro	$(OFFSETS_CREATE) <$(OFFSETS) >$@
1268b1593d50SJason Beloro	./genassym >>$@
1269b1593d50SJason Beloro
1270b1593d50SJason Beloro# derived C source and related explicit dependencies
1271b1593d50SJason Beloro$(LIBCDIR)/port/gen/new_list.c: $(LIBCDIR)/port/gen/errlist $(LIBCDIR)/port/gen/errlist.awk
1272b1593d50SJason Beloro	cd $(LIBCDIR)/port/gen; pwd; $(AWK) -f errlist.awk < errlist
1273b1593d50SJason Beloro
1274b1593d50SJason Beloropics/new_list.o: $(LIBCDIR)/port/gen/new_list.c
1275