1
# Use bash, not /bin/sh, for executing scripts, because the native
2
# FreeBSD /bin/sh does not interpret the IFS="<tab>" read ... command
3
# in localedata/tst-fmon.sh correctly.
6
# Additional header files to be installed in $prefix/include:
16
ifeq ($(subdir),stdlib)
21
# Additional functions, and particular system calls:
25
sysdep_routines += errno-loc
28
ifeq ($(subdir),assert)
29
CFLAGS-assert.c += -DFATAL_PREPARE_INCLUDE='<fatal-prepare.h>'
30
CFLAGS-assert-perr.c += -DFATAL_PREPARE_INCLUDE='<fatal-prepare.h>'
35
sysdep_routines += sys_access sys_faccessat sys_fchownat sys_fexecve sys_getcwd sys_linkat sys_lseek sys_freebsd6_lseek sys_readlinkat sys_symlinkat sys_unlinkat
37
sysdep_routines += sys_open sys_openat open_2
39
sysdep_routines += sys_fchmodat sys_fstat sys_fstatat sys_lstat sys_mkdirat sys_mkfifoat sys_mknod sys_mknodat sys_nfstat sys_nlstat sys_nstat sys_stat lchflags
41
sysdep_routines += fstatfs64 statfs64 sys_fstatfs sys_statfs
43
sysdep_routines += sys_renameat
45
sysdep_routines += sys_futimesat
47
sysdep_routines += lchmod
50
ifeq ($(subdir),dirent)
52
sysdep_routines += sys_getdents sys_getdirentries getdirentries getdirentries64
57
sysdep_routines += kenv
59
sysdep_routines += clone start_thread
61
sysdep_routines += sys_ftruncate sys_freebsd6_ftruncate sys_truncate sys_freebsd6_truncate getosreldate
63
sysdep_routines += acl_aclcheck_fd acl_aclcheck_file acl_delete_fd acl_delete_file acl_get_fd acl_get_file acl_set_fd acl_set_file
64
# For <sys/extattr.h>.
65
sysdep_routines += extattrctl extattr_delete_file extattr_get_file extattr_set_file
67
sysdep_routines += jail jail_attach jail_remove jail_get jail_set
69
sysdep_routines += ktrace utrace
71
sysdep_routines += kldfind kldfirstmod kldload kldnext kldstat kldsym kldunload kldunloadf
73
sysdep_routines += minherit sys_mmap sys_freebsd6_mmap sys_munmap
75
sysdep_routines += fhopen sys_fhstat sys_fhstatfs fhstat fhstat64 fhstatfs fhstatfs64 getfh getfsstat getfsstat64 sys_getfsstat getmntinfo getmntinfo64 mount nmount unmount
77
sysdep_routines += rfork
79
sysdep_routines += rtprio
81
sysdep_routines += bsd_sendfile
83
sysdep_routines += devname
85
sysdep_routines += sysctl sysctlbyname sysctlnametomib
87
sysdep_routines += sys_readv sys_writev
89
sysdep_routines += swapon swapoff sys_aio_cancel sys_aio_error sys_aio_read sys_aio_return sys_aio_suspend sys_aio_waitcomplete sys_aio_write sys_lio_listio issetugid modfind modfnext modnext modstat obreak quotactl rfork sysarch undelete yield
91
sysdep_routines += sys_fork sys_execve sys_sigaction sys_close sys_fcntl
92
sysdep_routines += sys_clock_getres sys_clock_gettime sys_clock_settime
93
sysdep_routines += sys_ktimer_create sys_ktimer_gettime sys_ktimer_settime sys_ktimer_getoverrun sys_ktimer_delete
94
sysdep_routines += sys_shm_open sys_shm_unlink sys_pselect sys_semctl
97
ifeq ($(subdir),posix)
99
sysdep_routines += sys_getlogin sys_pread sys_freebsd6_pread sys_pwrite sys_freebsd6_pwrite sys_setlogin sys_read sys_write
101
sysdep_routines += sys_cpuset_getaffinity sys_cpuset_setaffinity
104
ifeq ($(subdir),inet)
105
sysdep_headers += net/ethernet.h net/if_ether.h
108
ifeq ($(subdir),time)
110
sysdep_routines += ntp_adjtime ntp_gettime
113
ifeq ($(subdir),socket)
114
sysdep_routines += sa_len sys_bind sys_connect sys_sendto
117
# Linuxthreads dependencies.
119
ifeq ($(subdir),posix)
120
sysdep_headers += bits/initspin.h
123
# Don't compile the ctype glue code, since we have a much better <ctype.h>
124
# than the old non-GNU C library.
129
sysdep-rtld-routines += dl-brk dl-sbrk
130
sysdep_routines += sys_umtx
133
ifeq ($(subdir),sunrpc)
134
sysdep_headers += nfs/nfs.h