Home | History | Annotate | Line # | Download | only in gen
Makefile.inc revision 1.218
      1  1.218  christos #	$NetBSD: Makefile.inc,v 1.218 2024/07/08 22:14:31 christos Exp $
      2   1.86     perry #	from: @(#)Makefile.inc	8.6 (Berkeley) 5/4/95
      3    1.1       cgd 
      4    1.1       cgd # gen sources
      5   1.97  drochner .PATH: ${ARCHDIR}/gen ${.CURDIR}/gen
      6    1.1       cgd 
      7  1.190     pooka .if ${RUMPRUN} != "yes"
      8  1.192     pooka SRCS+=	_errno.c daemon.c
      9  1.190     pooka .endif
     10  1.190     pooka 
     11  1.190     pooka SRCS+=	alarm.c alphasort.c arc4random.c assert.c asysctl.c \
     12  1.188     joerg 	basename.c clock.c closedir.c closefrom.c \
     13  1.192     pooka 	confstr.c ctermid.c ctype_.c \
     14  1.159  christos 	dehumanize_number.c devname.c dirname.c disklabel.c err.c errx.c \
     15  1.186  christos 	errc.c errlist.c errno.c execl.c execle.c execlp.c execv.c execvp.c \
     16  1.198     kamil 	exect.c extattr.c fmtcheck.c fmtmsg.c fnmatch.c fstab.c ftok.c \
     17  1.148       agc 	fts.c ftw.c getbsize.c getcap.c getcwd.c \
     18  1.216  riastrad 	getdevmajor.c getdomainname.c getentropy.c getgrent.c \
     19  1.139     lukem 	getgrouplist.c getgroupmembership.c gethostname.c \
     20  1.145  christos 	getloadavg.c getlogin.c getmntinfo.c \
     21  1.129  christos 	getnetgrent.c getpagesize.c \
     22  1.130    kleink 	getpass.c getprogname.c getpwent.c getttyent.c \
     23  1.172      yamt 	getusershell.c glob.c humanize_number.c initdir.c initgroups.c \
     24  1.148       agc 	isascii.c isatty.c isctype.c lockf.c nftw.c \
     25  1.182    martin 	nice.c nlist.c nlist_aout.c nlist_coff.c nlist_ecoff.c nlist_elf32.c \
     26  1.182    martin 	nlist_elf64.c opendir.c pause.c popen.c posix_spawn_sched.c \
     27  1.182    martin 	posix_spawn_fileactions.c posix_spawnp.c psignal.c pthread_atfork.c \
     28  1.182    martin 	ptree.c pwcache.c pw_scan.c raise.c randomid.c rb.c readdir.c \
     29  1.182    martin 	rewinddir.c scandir.c seekdir.c setdomainname.c \
     30  1.106       cgd 	sethostname.c setjmperr.c setmode.c setproctitle.c setprogname.c \
     31  1.116    kleink 	shquote.c shquotev.c sighold.c sigignore.c siginterrupt.c \
     32  1.199       kre 	siglist.c signal.c signalname.c signalnext.c signalnumber.c \
     33  1.199       kre 	signame.c sigrelse.c sigset.c sigsetops.c sleep.c \
     34  1.128    atatat 	stringlist.c sysconf.c sysctl.c sysctlbyname.c sysctlgetmibinfo.c \
     35  1.197  christos 	sysctlnametomib.c syslog.c syslog_ss.c telldir.c time.c timespec_get.c \
     36  1.185  christos 	times.c toascii.c tolower_.c ttyname.c ttyslot.c toupper_.c ualarm.c \
     37  1.185  christos 	ulimit.c uname.c unvis.c usleep.c utime.c utimens.c utmp.c \
     38  1.194  christos 	utmpx.c valloc.c vis.c wait.c wait3.c waitid.c waitpid.c warn.c \
     39  1.197  christos 	warnx.c warnc.c wordexp.c xsyslog.c \
     40  1.197  christos 	vwarn.c vwarnx.c vwarnc.c verr.c verrx.c verrc.c
     41  1.136     lukem 
     42  1.155  christos # uses alloca
     43  1.155  christos COPTS.execvp.c = -Wno-stack-protector
     44  1.156  christos COPTS.execl.c = -Wno-stack-protector
     45  1.156  christos COPTS.execle.c = -Wno-stack-protector
     46  1.156  christos COPTS.execlp.c = -Wno-stack-protector
     47  1.180     joerg COPTS.syslog.c = -Wno-format-nonliteral
     48  1.155  christos 
     49   1.64       cgd # machine-dependent gen sources
     50   1.64       cgd # m-d Makefile.inc must include sources for:
     51  1.150  drochner #	_setjmp() bswap16() bswap32() bswap64() fabs() infinity
     52  1.150  drochner #	isinf() setjmp() sigsetjmp()
     53   1.64       cgd 
     54   1.97  drochner .include "${ARCHDIR}/gen/Makefile.inc"
     55   1.64       cgd 
     56  1.195  christos MAN+=	alarm.3 arc4random.3 basename.3 bsd_signal.3 bswap.3 \
     57  1.195  christos 	clock.3 closefrom.3 confstr.3 \
     58  1.160     rmind 	cpuset.3 ctermid.3 ctype.3 daemon.3 devname.3 directory.3 dirname.3 \
     59  1.209       rin 	endutent.3 endutxent.3 err.3 exec.3 extattr_copy_file.3 \
     60  1.209       rin 	extattr_namespace_to_string.3 \
     61  1.151  drochner 	fmtcheck.3 fmtmsg.3 fnmatch.3 fpclassify.3 fpgetmask.3 \
     62  1.148       agc 	ftok.3 fts.3 ftw.3 \
     63  1.143  drochner 	getbsize.3 cgetcap.3 getcwd.3 getdevmajor.3 \
     64  1.216  riastrad 	getdomainname.3 getdiskbyname.3 getentropy.3 getfsent.3 \
     65  1.122       wiz 	getgrent.3 getgrouplist.3 gethostname.3 getlastlogx.3 getloadavg.3 \
     66   1.88     perry 	getmntinfo.3 getnetgrent.3 getpagesize.3 getpass.3 \
     67  1.106       cgd 	getprogname.3 getpwent.3 getttyent.3 getusershell.3 glob.3 \
     68  1.126    kleink 	humanize_number.3 \
     69  1.126    kleink 	initgroups.3 isalnum.3 isalpha.3 isascii.3 isblank.3 iscntrl.3 \
     70  1.158  drochner 	isdigit.3 isfinite.3 isgraph.3 isgreater.3 isinf.3 islower.3 isnan.3 \
     71  1.158  drochner 	isnormal.3 isprint.3 ispunct.3 isspace.3 isupper.3 isxdigit.3 \
     72  1.158  drochner 	lockf.3 _lwp_makecontext.3 makecontext.3 \
     73  1.151  drochner 	nice.3 nlist.3 \
     74  1.182    martin 	pause.3 popen.3 \
     75  1.182    martin 	posix_spawn.3 posix_spawn_file_actions_addopen.3 \
     76  1.215  christos 	posix_spawn_file_actions_addchdir.3 \
     77  1.182    martin 	posix_spawn_file_actions_init.3 posix_spawnattr_getflags.3 \
     78  1.182    martin 	posix_spawnattr_getpgroup.3 posix_spawnattr_getschedparam.3 \
     79  1.182    martin 	posix_spawnattr_getschedpolicy.3 posix_spawnattr_init.3 \
     80  1.182    martin 	posix_spawnattr_getsigdefault.3 posix_spawnattr_getsigmask.3 \
     81  1.182    martin 	psignal.3 pwcache.3 pthread_atfork.3 \
     82  1.124    itojun 	raise.3 randomid.3 realpath.3 scandir.3 setjmp.3 setmode.3 \
     83  1.116    kleink 	setproctitle.3 shquote.3 sighold.3 sigignore.3 siginterrupt.3 \
     84  1.199       kre 	signal.3 signalname.3 signbit.3 sigrelse.3 sigset.3 sigsetops.3 \
     85  1.199       kre 	sleep.3 stringlist.3 sysconf.3 sysctl.3 syslog.3 \
     86  1.196     kamil 	time.3 timespec_get.3 times.3 timezone.3 toascii.3 tolower.3 \
     87  1.196     kamil 	toupper.3 ttyname.3 \
     88  1.134       seb 	ualarm.3 ulimit.3 uname.3 unvis.3 usleep.3 utime.3 valloc.3 vis.3 \
     89  1.134       seb 	wordexp.3
     90    1.1       cgd 
     91  1.214    simonb MLINKS+=arc4random.3 arc4random_addrandom.3 arc4random.3 arc4random_buf.3 \
     92  1.214    simonb 	arc4random.3 arc4random_stir.3 arc4random.3 arc4random_uniform.3
     93  1.115       wiz MLINKS+=bswap.3 bswap16.3 bswap.3 bswap32.3 bswap.3 bswap64.3
     94  1.161        he MLINKS+=cpuset.3 cpuset_create.3 cpuset.3 cpuset_destroy.3 \
     95  1.161        he 	cpuset.3 cpuset_zero.3 cpuset.3 cpuset_set.3 cpuset.3 cpuset_clr.3 \
     96  1.161        he 	cpuset.3 cpuset_isset.3 cpuset.3 cpuset_size.3
     97  1.200     kamil MLINKS+=devname.3 devname_r.3
     98    1.1       cgd MLINKS+=directory.3 closedir.3 directory.3 dirfd.3 directory.3 opendir.3 \
     99  1.121  christos 	directory.3 readdir.3 directory.3 readdir_r.3 directory.3 \
    100  1.165        ad 	rewinddir.3 directory.3 seekdir.3 directory.3 telldir.3 \
    101  1.165        ad 	directory.3 fdopendir.3
    102  1.115       wiz MLINKS+=endutxent.3 getutxent.3 endutxent.3 getutxid.3 \
    103  1.115       wiz 	endutxent.3 getutxline.3 endutxent.3 pututxline.3 \
    104  1.205  christos 	endutxent.3 setutxent.3
    105  1.207  christos MLINKS+=endutent.3 getutent.3 endutent.3 getutline.3 endutent.3 pututline.3 \
    106  1.207  christos 	endutent.3 setutent.3
    107    1.3     glass MLINKS+=err.3 verr.3 err.3 errx.3 err.3 verrx.3 err.3 warn.3 err.3 vwarn.3 \
    108  1.213    simonb 	err.3 warnx.3 err.3 vwarnx.3 err.3 errc.3 err.3 verrc.3 err.3 warnc.3 \
    109  1.186  christos 	err.3 vwarnc.3
    110  1.189  christos MLINKS+=exec.3 execl.3 exec.3 execle.3 exec.3 execlp.3 exec.3 execlpe.3 \
    111  1.189  christos 	exec.3 execv.3 exec.3 execvp.3 exec.3 execvpe.3 exec.3 exect.3
    112  1.181       wiz MLINKS+=extattr_namespace_to_string.3 extattr_string_to_namespace.3 \
    113  1.181       wiz 	extattr_copy_file.3 extattr_copy_fd.3 \
    114  1.181       wiz 	extattr_copy_file.3 extattr_copy_link.3 \
    115  1.181       wiz 	extattr_copy_file.3 cpxattr.3 \
    116  1.181       wiz 	extattr_copy_file.3 fcpxattr.3 \
    117  1.181       wiz 	extattr_copy_file.3 lcpxattr.3
    118  1.115       wiz MLINKS+=fpgetmask.3 fpgetround.3 fpgetmask.3 fpgetsticky.3 \
    119  1.213    simonb 	fpgetmask.3 fpsetmask.3 fpgetmask.3 fpsetround.3 \
    120  1.178  christos 	fpgetmask.3 fpsetsticky.3 fpgetmask.3 fpgetprec.3 \
    121  1.178  christos 	fpgetmask.3 fpsetprec.3
    122   1.15       jtc MLINKS+=fts.3 fts_open.3 fts.3 fts_read.3 fts.3 fts_children.3 \
    123  1.136     lukem 	fts.3 fts_set.3 fts.3 fts_close.3
    124  1.148       agc MLINKS+=ftw.3 nftw.3
    125  1.143  drochner MLINKS+=cgetcap.3 cgetclose.3 cgetcap.3 cgetent.3 \
    126  1.143  drochner 	cgetcap.3 cgetfirst.3 cgetcap.3 cgetmatch.3 cgetcap.3 cgetnext.3 \
    127  1.143  drochner 	cgetcap.3 cgetnum.3 cgetcap.3 cgetset.3 cgetcap.3 cgetstr.3 \
    128  1.143  drochner 	cgetcap.3 cgetustr.3
    129    1.1       cgd MLINKS+=getcwd.3 getwd.3
    130  1.183  christos MLINKS+=getpass.3 getpass_r.3
    131  1.184  christos MLINKS+=getpass.3 getpassfd.3
    132   1.96       abs MLINKS+=getdiskbyname.3 setdisktab.3
    133   1.40       cgd MLINKS+=getdomainname.3 setdomainname.3
    134    1.1       cgd MLINKS+=getfsent.3 endfsent.3 getfsent.3 getfsfile.3 getfsent.3 getfsspec.3 \
    135  1.147       wiz 	getfsent.3 setfsent.3
    136    1.1       cgd MLINKS+=getgrent.3 endgrent.3 getgrent.3 setgroupent.3 getgrent.3 getgrgid.3 \
    137   1.84       mrg 	getgrent.3 getgrnam.3 getgrent.3 setgrent.3
    138  1.142    kleink MLINKS+=getgrent.3 getgrgid_r.3 getgrent.3 getgrnam_r.3 getgrent.3 getgrent_r.3
    139  1.140     lukem MLINKS+=getgrouplist.3 getgroupmembership.3
    140   1.40       cgd MLINKS+=gethostname.3 sethostname.3
    141  1.122       wiz MLINKS+=getlastlogx.3 getutmp.3 getlastlogx.3 getutmpx.3
    142  1.122       wiz MLINKS+=getlastlogx.3 updlastlogx.3 getlastlogx.3 updwtmpx.3
    143  1.122       wiz MLINKS+=getlastlogx.3 utmpxname.3
    144   1.64       cgd MLINKS+=getnetgrent.3 endnetgrent.3 getnetgrent.3 innetgr.3 \
    145   1.64       cgd 	getnetgrent.3 setnetgrent.3
    146  1.106       cgd MLINKS+=getprogname.3 setprogname.3
    147    1.1       cgd MLINKS+=getpwent.3 endpwent.3 getpwent.3 setpassent.3 getpwent.3 getpwnam.3 \
    148   1.90      fair 	getpwent.3 getpwuid.3 getpwent.3 setpwent.3
    149  1.141  christos MLINKS+=getpwent.3 getpwnam_r.3 getpwent.3 getpwuid_r.3 getpwent.3 getpwent_r.3
    150   1.90      fair # getpwent.3 setpwfile.3 - deprecated
    151  1.149      salo MLINKS+=getttyent.3 endttyent.3 getttyent.3 getttynam.3 \
    152  1.208  christos 	getttyent.3 setttyent.3 getttyent.3 setttyentpath.3
    153    1.1       cgd MLINKS+=getusershell.3 endusershell.3 getusershell.3 setusershell.3
    154    1.1       cgd MLINKS+=glob.3 globfree.3
    155  1.168       wiz MLINKS+=glob.3 glob_pattern_p.3
    156  1.159  christos MLINKS+=humanize_number.3 dehumanize_number.3
    157  1.118       wiz MLINKS+=makecontext.3 swapcontext.3
    158    1.1       cgd MLINKS+=popen.3 pclose.3
    159  1.191  christos MLINKS+=popen.3 popenve.3
    160  1.182    martin MLINKS+=posix_spawn.3 posix_spawnp.3 \
    161  1.182    martin 	posix_spawn_file_actions_addopen.3 posix_spawn_file_actions_addclose.3 \
    162  1.182    martin 	posix_spawn_file_actions_addopen.3 posix_spawn_file_actions_adddup2.3 \
    163  1.215  christos 	posix_spawn_file_actions_addchdir.3 posix_spawn_file_actions_addfchdir.3 \
    164  1.182    martin 	posix_spawn_file_actions_init.3 posix_spawn_file_actions_destroy.3 \
    165  1.182    martin 	posix_spawnattr_getflags.3 posix_spawnattr_setflags.3 \
    166  1.182    martin 	posix_spawnattr_getpgroup.3 posix_spawnattr_setpgroup.3 \
    167  1.182    martin 	posix_spawnattr_getschedparam.3 posix_spawnattr_setschedparam.3 \
    168  1.182    martin 	posix_spawnattr_getschedpolicy.3 posix_spawnattr_setschedpolicy.3 \
    169  1.182    martin 	posix_spawnattr_getsigdefault.3 posix_spawnattr_setsigdefault.3 \
    170  1.182    martin 	posix_spawnattr_getsigmask.3 posix_spawnattr_setsigmask.3 \
    171  1.182    martin 	posix_spawnattr_init.3 posix_spawnattr_destroy.3
    172  1.171  christos MLINKS+=psignal.3 sys_siglist.3 psignal.3 sys_signame.3 psignal.3 psiginfo.3
    173   1.33       cgd MLINKS+=pwcache.3 user_from_uid.3 pwcache.3 group_from_gid.3
    174   1.92   mycroft MLINKS+=pwcache.3 uid_from_user.3 pwcache.3 gid_from_group.3
    175  1.109     lukem MLINKS+=pwcache.3 pwcache_userdb.3 pwcache.3 pwcache_groupdb.3
    176  1.124    itojun MLINKS+=randomid.3 randomid_new.3 randomid.3 randomid_delete.3
    177    1.1       cgd MLINKS+=scandir.3 alphasort.3
    178    1.1       cgd MLINKS+=setjmp.3 _longjmp.3 setjmp.3 _setjmp.3 setjmp.3 longjmp.3 \
    179   1.64       cgd 	setjmp.3 longjmperror.3 setjmp.3 sigsetjmp.3 setjmp.3 siglongjmp.3
    180    1.1       cgd MLINKS+=setmode.3 getmode.3
    181  1.107       cgd MLINKS+=shquote.3 shquotev.3
    182  1.199       kre MLINKS+=signalname.3 signalnext.3 signalname.3 signalnumber.3
    183    1.1       cgd MLINKS+=sigsetops.3 sigemptyset.3 sigsetops.3 sigfillset.3 \
    184    1.1       cgd 	sigsetops.3 sigaddset.3 sigsetops.3 sigdelset.3 \
    185    1.1       cgd 	sigsetops.3 sigismember.3
    186   1.77     lukem MLINKS+=stringlist.3 sl_init.3 stringlist.3 sl_free.3 stringlist.3 sl_add.3 \
    187   1.77     lukem 	stringlist.3 sl_find.3
    188  1.210    simonb MLINKS+=sysctl.3 sysctlbyname.3 \
    189  1.210    simonb 	sysctl.3 sysctlgetmibinfo.3 sysctl.3 sysctlnametomib.3 \
    190  1.210    simonb 	sysctl.3 asysctl.3 sysctl.3 asysctlbyname.3
    191    1.1       cgd MLINKS+=syslog.3 closelog.3 syslog.3 openlog.3 syslog.3 setlogmask.3 \
    192    1.1       cgd 	syslog.3 vsyslog.3
    193  1.152  christos MLINKS+=syslog.3 closelog_r.3 syslog.3 openlog_r.3 syslog.3 setlogmask_r.3 \
    194  1.218  christos 	syslog.3 syslog_r.3 syslog.3 vsyslog_r.3 \
    195  1.218  christos 	syslog.3 syslog_ss.3 syslog.3 vsyslog_ss.3
    196  1.169    jruoho MLINKS+=syslog.3 syslogp.3 syslog.3 syslogp_r.3 \
    197  1.218  christos 	syslog.3 vsyslogp.3 syslog.3 vsyslogp_r.3 \
    198  1.218  christos 	syslog.3 syslogp_ss.3 syslog.3 vsyslogp_ss.3
    199  1.146  christos MLINKS+=ttyname.3 isatty.3 ttyname.3 ttyslot.3 ttyname.3 ttyname_r.3
    200  1.163     lukem MLINKS+=unvis.3 strunvis.3 unvis.3 strunvisx.3
    201  1.174  christos MLINKS+=unvis.3 strnunvis.3 unvis.3 strnunvisx.3
    202  1.104  wennmach MLINKS+=vis.3 svis.3 vis.3 strvis.3 vis.3 strvisx.3 vis.3 strsvis.3 \
    203  1.174  christos 	vis.3 strsvisx.3 vis.3 nvis.3
    204  1.174  christos MLINKS+=vis.3 snvis.3 vis.3 strnvis.3 vis.3 strnvisx.3 vis.3 strsnvis.3 \
    205  1.193  christos 	vis.3 strsnvisx.3 vis.3 stravis.3
    206  1.166   tnozaki 
    207  1.170   tnozaki CPPFLAGS.ctype_.c+=	-I${LIBCDIR}/locale
    208  1.166   tnozaki CPPFLAGS.isctype.c+=	-I${LIBCDIR}/locale
    209  1.170   tnozaki CPPFLAGS.tolower_.c+=	-I${LIBCDIR}/locale
    210  1.170   tnozaki CPPFLAGS.toupper_.c+=	-I${LIBCDIR}/locale
    211  1.173  christos 
    212  1.173  christos errlist.c: errlist.awk ${NETBSDSRCDIR}/sys/sys/errno.h
    213  1.173  christos 	${TOOL_AWK} -f ${.ALLSRC} > ${.TARGET}
    214  1.173  christos 
    215  1.217  christos LINTFLAGS.rb.c += -X 231	# XXX: marked as unused already why?
    216  1.217  christos LINTFLAGS.siglist.c += -X 351	# XXX: renames
    217  1.217  christos LINTFLAGS.signame.c += -X 351	# XXX: renames
    218  1.217  christos 
    219  1.173  christos CLEANFILES+= errlist.c
    220