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