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