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