xref: /freebsd/lib/libc/gen/Makefile.inc (revision 6044931335ca0fe7ecf61d2dcebc520c7a557ce6)
1#	@(#)Makefile.inc	8.6 (Berkeley) 5/4/95
2# $FreeBSD$
3
4# machine-independent gen sources
5.PATH: ${LIBC_SRCTOP}/${LIBC_ARCH}/gen ${LIBC_SRCTOP}/gen
6
7CONFS=	shells
8
9SRCS+=	__getosreldate.c \
10	__pthread_mutex_init_calloc_cb_stub.c \
11	__xuname.c \
12	_once_stub.c \
13	_pthread_stubs.c \
14	_rand48.c \
15	_spinlock_stub.c \
16	_thread_init.c \
17	alarm.c \
18	arc4random.c \
19	assert.c \
20	auxv.c \
21	basename.c \
22	basename_compat.c \
23	cap_sandboxed.c \
24	check_utility_compat.c \
25	clock.c \
26	clock_getcpuclockid.c \
27	closedir.c \
28	confstr.c \
29	crypt.c \
30	ctermid.c \
31	daemon.c \
32	devname.c \
33	dirfd.c \
34	dirname.c \
35	dirname_compat.c \
36	disklabel.c \
37	dlfcn.c \
38	drand48.c \
39	dup3.c \
40	elf_utils.c \
41	erand48.c \
42	err.c \
43	errlst.c \
44	errno.c \
45	exec.c \
46	exect.c \
47	fdevname.c \
48	feature_present.c \
49	fmtcheck.c \
50	fmtmsg.c \
51	fnmatch.c \
52	fpclassify.c \
53	frexp.c \
54	fstab.c \
55	ftok.c \
56	fts.c \
57	ftw.c \
58	getbootfile.c \
59	getbsize.c \
60	getcap.c \
61	getcwd.c \
62	getdomainname.c \
63	getentropy.c \
64	getgrent.c \
65	getgrouplist.c \
66	gethostname.c \
67	getloadavg.c \
68	getlogin.c \
69	getmntinfo.c \
70	getnetgrent.c \
71	getosreldate.c \
72	getpagesize.c \
73	getpagesizes.c \
74	getpeereid.c \
75	getprogname.c \
76	getpwent.c \
77	getttyent.c \
78	getusershell.c \
79	getutxent.c \
80	getvfsbyname.c \
81	glob.c \
82	initgroups.c \
83	isatty.c \
84	isinf.c \
85	isnan.c \
86	jrand48.c \
87	lcong48.c \
88	libc_dlopen.c \
89	lockf.c \
90	lrand48.c \
91	mrand48.c \
92	nftw.c \
93	nice.c \
94	nlist.c \
95	nrand48.c \
96	opendir.c \
97	pause.c \
98	pmadvise.c \
99	popen.c \
100	posix_spawn.c \
101	psignal.c \
102	pututxline.c \
103	pw_scan.c \
104	raise.c \
105	readdir.c \
106	readpassphrase.c \
107	recvmmsg.c \
108	rewinddir.c \
109	scandir.c \
110	seed48.c \
111	seekdir.c \
112	semctl.c \
113	sendmmsg.c \
114	setdomainname.c \
115	sethostname.c \
116	setjmperr.c \
117	setmode.c \
118	setproctitle.c \
119	setprogname.c \
120	siginterrupt.c \
121	siglist.c \
122	signal.c \
123	sigsetops.c \
124	sleep.c \
125	srand48.c \
126	statvfs.c \
127	stringlist.c \
128	strtofflags.c \
129	sysconf.c \
130	sysctl.c \
131	sysctlbyname.c \
132	sysctlnametomib.c \
133	syslog.c \
134	telldir.c \
135	termios.c \
136	time.c \
137	times.c \
138	timespec_get.c \
139	timezone.c \
140	tls.c \
141	ttyname.c \
142	ttyslot.c \
143	ualarm.c \
144	ulimit.c \
145	uname.c \
146	usleep.c \
147	utime.c \
148	utxdb.c \
149	valloc.c \
150	wait.c \
151	wait3.c \
152	waitpid.c \
153	waitid.c \
154	wordexp.c
155.if ${MK_SYMVER} == yes
156SRCS+=	devname-compat11.c \
157	fts-compat.c \
158	fts-compat11.c \
159	ftw-compat11.c \
160	getmntinfo-compat11.c \
161	glob-compat11.c \
162	nftw-compat11.c \
163	readdir-compat11.c \
164	scandir-compat11.c \
165	unvis-compat.c
166.endif
167
168.PATH: ${SRCTOP}/contrib/libc-pwcache
169SRCS+=	pwcache.c pwcache.h
170
171.PATH: ${SRCTOP}/contrib/libc-vis
172CFLAGS+=	-I${SRCTOP}/contrib/libc-vis
173SRCS+=	unvis.c vis.c
174
175MISRCS+=modf.c
176
177CANCELPOINTS_SRCS=sem.c sem_new.c
178.for src in ${CANCELPOINTS_SRCS}
179SRCS+=cancelpoints_${src}
180CLEANFILES+=cancelpoints_${src}
181cancelpoints_${src}: ${LIBC_SRCTOP}/gen/${src} .NOMETA
182	ln -sf ${.ALLSRC} ${.TARGET}
183.endfor
184
185SYM_MAPS+=${LIBC_SRCTOP}/gen/Symbol.map
186
187# machine-dependent gen sources
188.sinclude "${LIBC_SRCTOP}/${LIBC_ARCH}/gen/Makefile.inc"
189
190MAN+=	alarm.3 \
191	arc4random.3 \
192	basename.3 \
193	cap_rights_get.3 \
194	cap_sandboxed.3 \
195	check_utility_compat.3 \
196	clock.3 \
197	clock_getcpuclockid.3 \
198	confstr.3 \
199	ctermid.3 \
200	daemon.3 \
201	devname.3 \
202	directory.3 \
203	dirname.3 \
204	dl_iterate_phdr.3 \
205	dladdr.3 \
206	dlinfo.3 \
207	dllockinit.3 \
208	dlopen.3 \
209	dup3.3 \
210	err.3 \
211	exec.3 \
212	feature_present.3 \
213	fmtcheck.3 \
214	fmtmsg.3 \
215	fnmatch.3 \
216	fpclassify.3 \
217	frexp.3 \
218	ftok.3 \
219	fts.3 \
220	ftw.3 \
221	getbootfile.3 \
222	getbsize.3 \
223	getcap.3 \
224	getcontext.3 \
225	getcwd.3 \
226	getdiskbyname.3 \
227	getdomainname.3 \
228	getentropy.3 \
229	getfsent.3 \
230	getgrent.3 \
231	getgrouplist.3 \
232	gethostname.3 \
233	getloadavg.3 \
234	getmntinfo.3 \
235	getnetgrent.3 \
236	getosreldate.3 \
237	getpagesize.3 \
238	getpagesizes.3 \
239	getpass.3 \
240	getpeereid.3 \
241	getprogname.3 \
242	getpwent.3 \
243	getttyent.3 \
244	getusershell.3 \
245	getutxent.3 \
246	getvfsbyname.3 \
247	glob.3 \
248	initgroups.3 \
249	isgreater.3 \
250	ldexp.3 \
251	lockf.3 \
252	makecontext.3 \
253	modf.3 \
254	nice.3 \
255	nlist.3 \
256	pause.3 \
257	popen.3 \
258	posix_spawn.3 \
259	posix_spawn_file_actions_addopen.3 \
260	posix_spawn_file_actions_init.3 \
261	posix_spawnattr_getflags.3 \
262	posix_spawnattr_getpgroup.3 \
263	posix_spawnattr_getschedparam.3 \
264	posix_spawnattr_getschedpolicy.3 \
265	posix_spawnattr_init.3 \
266	posix_spawnattr_getsigdefault.3 \
267	posix_spawnattr_getsigmask.3 \
268	psignal.3 \
269	pwcache.3 \
270	raise.3 \
271	rand48.3 \
272	readpassphrase.3 \
273	rfork_thread.3 \
274	scandir.3 \
275	sem_destroy.3 \
276	sem_getvalue.3 \
277	sem_init.3 \
278	sem_open.3 \
279	sem_post.3 \
280	sem_timedwait.3 \
281	sem_wait.3 \
282	setjmp.3 \
283	setmode.3 \
284	setproctitle.3 \
285	siginterrupt.3 \
286	signal.3 \
287	sigsetops.3 \
288	sleep.3 \
289	statvfs.3 \
290	stringlist.3 \
291	strtofflags.3 \
292	sysconf.3 \
293	sysctl.3 \
294	syslog.3 \
295	tcgetpgrp.3 \
296	tcgetsid.3 \
297	tcsendbreak.3 \
298	tcsetattr.3 \
299	tcsetpgrp.3 \
300	tcsetsid.3 \
301	time.3 \
302	times.3 \
303	timespec_get.3 \
304	timezone.3 \
305	ttyname.3 \
306	tzset.3 \
307	ualarm.3 \
308	ucontext.3 \
309	ulimit.3 \
310	uname.3 \
311	unvis.3 \
312	usleep.3 \
313	utime.3 \
314	valloc.3 \
315	vis.3 \
316	wordexp.3
317
318MLINKS+=arc4random.3 arc4random_addrandom.3 \
319	arc4random.3 arc4random_stir.3 \
320	arc4random.3 arc4random_buf.3 \
321	arc4random.3 arc4random_uniform.3
322MLINKS+=ctermid.3 ctermid_r.3
323MLINKS+=devname.3 devname_r.3
324MLINKS+=devname.3 fdevname.3
325MLINKS+=devname.3 fdevname_r.3
326MLINKS+=directory.3 closedir.3 \
327	directory.3 dirfd.3 \
328	directory.3 fdclosedir.3 \
329	directory.3 fdopendir.3 \
330	directory.3 opendir.3 \
331	directory.3 readdir.3 \
332	directory.3 readdir_r.3 \
333	directory.3 rewinddir.3 \
334	directory.3 seekdir.3 \
335	directory.3 telldir.3
336MLINKS+=dlopen.3 fdlopen.3 \
337	dlopen.3 dlclose.3 \
338	dlopen.3 dlerror.3 \
339	dlopen.3 dlfunc.3 \
340	dlopen.3 dlsym.3
341MLINKS+=err.3 err_set_exit.3 \
342	err.3 err_set_file.3 \
343	err.3 errc.3 \
344	err.3 errx.3 \
345	err.3 verr.3 \
346	err.3 verrc.3 \
347	err.3 verrx.3 \
348	err.3 vwarn.3 \
349	err.3 vwarnc.3 \
350	err.3 vwarnx.3 \
351	err.3 warnc.3 \
352	err.3 warn.3 \
353	err.3 warnx.3
354MLINKS+=exec.3 execl.3 \
355	exec.3 execle.3 \
356	exec.3 execlp.3 \
357	exec.3 exect.3 \
358	exec.3 execv.3 \
359	exec.3 execvP.3 \
360	exec.3 execvp.3
361MLINKS+=fpclassify.3 finite.3 \
362	fpclassify.3 finitef.3 \
363	fpclassify.3 isfinite.3 \
364	fpclassify.3 isinf.3 \
365	fpclassify.3 isnan.3 \
366	fpclassify.3 isnormal.3
367MLINKS+=frexp.3 frexpf.3 \
368	frexp.3 frexpl.3
369MLINKS+=fts.3 fts_children.3 \
370	fts.3 fts_close.3 \
371	fts.3 fts_open.3 \
372	fts.3 fts_read.3 \
373	fts.3 fts_set.3 \
374	fts.3 fts_set_clientptr.3 \
375	fts.3 fts_get_clientptr.3 \
376	fts.3 fts_get_stream.3
377MLINKS+=ftw.3 nftw.3
378MLINKS+=getcap.3 cgetcap.3 \
379	getcap.3 cgetclose.3 \
380	getcap.3 cgetent.3 \
381	getcap.3 cgetfirst.3 \
382	getcap.3 cgetmatch.3 \
383	getcap.3 cgetnext.3 \
384	getcap.3 cgetnum.3 \
385	getcap.3 cgetset.3 \
386	getcap.3 cgetstr.3 \
387	getcap.3 cgetustr.3
388MLINKS+=getcwd.3 getwd.3
389MLINKS+=getcontext.3 getcontextx.3
390MLINKS+=getcontext.3 setcontext.3
391MLINKS+=getdomainname.3 setdomainname.3
392MLINKS+=getfsent.3 endfsent.3 \
393	getfsent.3 getfsfile.3 \
394	getfsent.3 getfsspec.3 \
395	getfsent.3 getfstype.3 \
396	getfsent.3 setfsent.3 \
397	getfsent.3 setfstab.3 \
398	getfsent.3 getfstab.3
399MLINKS+=getgrent.3 endgrent.3 \
400	getgrent.3 getgrgid.3 \
401	getgrent.3 getgrnam.3 \
402	getgrent.3 setgrent.3 \
403	getgrent.3 setgroupent.3 \
404	getgrent.3 getgrent_r.3 \
405	getgrent.3 getgrnam_r.3 \
406	getgrent.3 getgrgid_r.3
407MLINKS+=gethostname.3 sethostname.3
408MLINKS+=getnetgrent.3 endnetgrent.3 \
409	getnetgrent.3 getnetgrent_r.3 \
410	getnetgrent.3 innetgr.3 \
411	getnetgrent.3 setnetgrent.3
412MLINKS+=getprogname.3 setprogname.3
413MLINKS+=getpwent.3 endpwent.3 \
414	getpwent.3 getpwnam.3 \
415	getpwent.3 getpwuid.3 \
416	getpwent.3 setpassent.3 \
417	getpwent.3 setpwent.3 \
418	getpwent.3 setpwfile.3 \
419	getpwent.3 getpwent_r.3 \
420	getpwent.3 getpwnam_r.3 \
421	getpwent.3 getpwuid_r.3
422MLINKS+=getttyent.3 endttyent.3 \
423	getttyent.3 getttynam.3 \
424	getttyent.3 isdialuptty.3 \
425	getttyent.3 isnettty.3 \
426	getttyent.3 setttyent.3
427MLINKS+=getusershell.3 endusershell.3 \
428	getusershell.3 setusershell.3
429MLINKS+=getutxent.3 endutxent.3 \
430	getutxent.3 getutxid.3 \
431	getutxent.3 getutxline.3 \
432	getutxent.3 getutxuser.3 \
433	getutxent.3 pututxline.3 \
434	getutxent.3 setutxdb.3 \
435	getutxent.3 setutxent.3 \
436	getutxent.3 utmpx.3
437MLINKS+=glob.3 globfree.3
438MLINKS+=isgreater.3 isgreaterequal.3 \
439	isgreater.3 isless.3 \
440	isgreater.3 islessequal.3 \
441	isgreater.3 islessgreater.3 \
442	isgreater.3 isunordered.3
443MLINKS+=ldexp.3 ldexpf.3 \
444	ldexp.3 ldexpl.3
445MLINKS+=makecontext.3 swapcontext.3
446MLINKS+=modf.3 modff.3 \
447	modf.3 modfl.3
448MLINKS+=popen.3 pclose.3
449MLINKS+=posix_spawn.3 posix_spawnp.3 \
450	posix_spawn_file_actions_addopen.3 posix_spawn_file_actions_addclose.3 \
451	posix_spawn_file_actions_addopen.3 posix_spawn_file_actions_adddup2.3 \
452	posix_spawn_file_actions_init.3 posix_spawn_file_actions_destroy.3 \
453	posix_spawnattr_getflags.3 posix_spawnattr_setflags.3 \
454	posix_spawnattr_getpgroup.3 posix_spawnattr_setpgroup.3 \
455	posix_spawnattr_getschedparam.3 posix_spawnattr_setschedparam.3 \
456	posix_spawnattr_getschedpolicy.3 posix_spawnattr_setschedpolicy.3 \
457	posix_spawnattr_getsigdefault.3 posix_spawnattr_setsigdefault.3 \
458	posix_spawnattr_getsigmask.3 posix_spawnattr_setsigmask.3 \
459	posix_spawnattr_init.3 posix_spawnattr_destroy.3
460MLINKS+=psignal.3 strsignal.3 \
461	psignal.3 sys_siglist.3 \
462	psignal.3 sys_signame.3
463MLINKS+=pwcache.3 group_from_gid.3 \
464	pwcache.3 user_from_uid.3
465MLINKS+=rand48.3 _rand48.3 \
466	rand48.3 drand48.3 \
467	rand48.3 erand48.3 \
468	rand48.3 jrand48.3 \
469	rand48.3 lcong48.3 \
470	rand48.3 lrand48.3 \
471	rand48.3 mrand48.3 \
472	rand48.3 nrand48.3 \
473	rand48.3 seed48.3 \
474	rand48.3 srand48.3
475MLINKS+=recv.2 recvmmsg.2
476MLINKS+=scandir.3 alphasort.3
477MLINKS+=sem_open.3 sem_close.3 \
478	sem_open.3 sem_unlink.3
479MLINKS+=sem_wait.3 sem_trywait.3
480MLINKS+=sem_timedwait.3 sem_clockwait_np.3
481MLINKS+=send.2 sendmmsg.2
482MLINKS+=setjmp.3 _longjmp.3 \
483	setjmp.3 _setjmp.3 \
484	setjmp.3 longjmp.3 \
485	setjmp.3 longjmperr.3 \
486	setjmp.3 longjmperror.3 \
487	setjmp.3 siglongjmp.3 \
488	setjmp.3 sigsetjmp.3
489MLINKS+=setmode.3 getmode.3
490MLINKS+=sigsetops.3 sigaddset.3 \
491	sigsetops.3 sigdelset.3 \
492	sigsetops.3 sigemptyset.3 \
493	sigsetops.3 sigfillset.3 \
494	sigsetops.3 sigismember.3
495MLINKS+=statvfs.3 fstatvfs.3
496MLINKS+=stringlist.3 sl_add.3 \
497	stringlist.3 sl_find.3 \
498	stringlist.3 sl_free.3 \
499	stringlist.3 sl_init.3
500MLINKS+=strtofflags.3 fflagstostr.3
501MLINKS+=sysctl.3 sysctlbyname.3 \
502	sysctl.3 sysctlnametomib.3
503MLINKS+=syslog.3 closelog.3 \
504	syslog.3 openlog.3 \
505	syslog.3 setlogmask.3 \
506	syslog.3 vsyslog.3
507MLINKS+=tcsendbreak.3 tcdrain.3 \
508	tcsendbreak.3 tcflow.3 \
509	tcsendbreak.3 tcflush.3
510MLINKS+=tcsetattr.3 cfgetispeed.3 \
511	tcsetattr.3 cfgetospeed.3 \
512	tcsetattr.3 cfmakeraw.3 \
513	tcsetattr.3 cfmakesane.3 \
514	tcsetattr.3 cfsetispeed.3 \
515	tcsetattr.3 cfsetospeed.3 \
516	tcsetattr.3 cfsetspeed.3 \
517	tcsetattr.3 tcgetattr.3
518MLINKS+=ttyname.3 isatty.3 \
519	ttyname.3 ttyname_r.3
520MLINKS+=tzset.3 tzsetwall.3
521MLINKS+=unvis.3 strunvis.3 \
522	unvis.3 strunvisx.3
523MLINKS+=vis.3 nvis.3 \
524	vis.3 snvis.3 \
525	vis.3 strenvisx.3 \
526	vis.3 strnunvis.3 \
527	vis.3 strnunvisx.3 \
528	vis.3 strnvis.3 \
529	vis.3 strnvisx.3 \
530	vis.3 strsenvisx.3 \
531	vis.3 strsnvis.3 \
532	vis.3 strsnvisx.3 \
533	vis.3 strsvis.3 \
534	vis.3 strsvisx.3 \
535	vis.3 strvis.3 \
536	vis.3 strvisx.3 \
537	vis.3 svis.3
538
539MLINKS+=wordexp.3 wordfree.3
540