initial commit
[glibc.git] / sysdeps / unix / bsd / bsd4.4 / kfreebsd / Makefile
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.
4 SHELL = bash
5
6 # Additional header files to be installed in $prefix/include:
7
8 ifeq ($(subdir),misc)
9 sysdep_headers += \
10 kenv.h \
11 bits/os-unistd.h \
12 sys/mount.h \
13 sys/kd.h \
14 sys/rfork.h
15 endif
16
17 ifeq ($(subdir),stdlib)
18 sysdep_headers += \
19 bits/mcontext.h
20 endif
21
22 # Additional functions, and particular system calls:
23
24 ifeq ($(subdir),csu)
25 # For <errno.h>.
26 sysdep_routines += errno-loc
27 endif
28
29 ifeq ($(subdir),assert)
30 CFLAGS-assert.c += -DFATAL_PREPARE_INCLUDE='<fatal-prepare.h>'
31 CFLAGS-assert-perr.c += -DFATAL_PREPARE_INCLUDE='<fatal-prepare.h>'
32 endif
33
34 ifeq ($(subdir),io)
35 # For <unistd.h>.
36 sysdep_routines += sys_access sys_faccessat sys_getcwd
37 # For <fcntl.h>.
38 sysdep_routines += sys_open sys_openat open_2
39 # For <sys/stat.h>.
40 sysdep_routines += sys_fstat sys_fstatat sys_lstat sys_mkfifoat sys_mknod sys_mknodat sys_nfstat sys_nlstat sys_nstat sys_stat lchflags
41 # For <sys/statfs.h>.
42 sysdep_routines += fstatfs64 statfs64 sys_fstatfs sys_statfs
43 # For <sys/times.h>.
44 sysdep_routines += sys_futimesat
45 # Other.
46 sysdep_routines += lchmod
47 endif
48
49 ifeq ($(subdir),dirent)
50 # For <dirent.h>.
51 sysdep_routines += sys_getdents sys_getdirentries getdirentries getdirentries64
52 endif
53
54 ifeq ($(subdir),misc)
55 # For <kenv.h>.
56 sysdep_routines += kenv
57 # For <sched.h>.
58 sysdep_routines += clone start_thread
59 # For <unistd.h>.
60 sysdep_routines += getosreldate
61 # For <sys/acl.h>.
62 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
63 # For <sys/extattr.h>.
64 sysdep_routines += extattrctl extattr_delete_file extattr_get_file extattr_set_file
65 # For <sys/jail.h>.
66 sysdep_routines += jail jail_attach jail_remove jail_get jail_set
67 # For <sys/ktrace.h>.
68 sysdep_routines += ktrace utrace
69 # For <sys/linker.h>.
70 sysdep_routines += kldfind kldfirstmod kldload kldnext kldstat kldsym kldunload kldunloadf
71 # For <sys/mman.h>.
72 sysdep_routines += minherit sys_mmap sys_munmap
73 # For <sys/mount.h>.
74 sysdep_routines += fhopen sys_fhstat sys_fhstatfs fhstat fhstat64 fhstatfs fhstatfs64 getfh getfsstat getfsstat64 sys_getfsstat getmntinfo getmntinfo64 mount nmount unmount
75 # For <sys/rfork.h>.
76 sysdep_routines += rfork
77 # For <sys/rtprio.h>.
78 sysdep_routines += rtprio
79 # For <sys/socket.h>.
80 sysdep_routines += bsd_sendfile
81 # For <sys/stat.h>.
82 sysdep_routines += devname
83 # For <sys/sysctl.h>.
84 sysdep_routines += sysctl sysctlbyname sysctlnametomib
85 # For <sys/uio.h>.
86 sysdep_routines += sys_readv sys_writev
87 # Other.
88 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
89 # for INLINE_SYSCALL
90 sysdep_routines += sys_fork sys_sigaction sys_close sys_fcntl
91 sysdep_routines += sys_clock_getres sys_clock_gettime sys_clock_settime
92 sysdep_routines += sys_ktimer_create sys_ktimer_gettime sys_ktimer_settime sys_ktimer_getoverrun sys_ktimer_delete
93 sysdep_routines += sys_semctl sys_shmctl sys_msgctl
94 endif
95
96 ifeq ($(subdir),posix)
97 # For <unistd.h>.
98 sysdep_routines += sys_getlogin sys_setlogin sys_read sys_write
99 # for <sched.h>
100 sysdep_routines += sys_cpuset_getaffinity sys_cpuset_setaffinity
101 endif
102
103 ifeq ($(subdir),inet)
104 sysdep_headers += net/ethernet.h net/if_ether.h
105 endif
106
107 ifeq ($(subdir),time)
108 # For <sys/timex.h>.
109 sysdep_routines += ntp_adjtime ntp_gettime
110 endif
111
112 ifeq ($(subdir),socket)
113 sysdep_routines += sa_len sys_bind sys_connect sys_sendto
114 endif
115
116 # Linuxthreads dependencies.
117
118 ifeq ($(subdir),posix)
119 sysdep_headers += bits/initspin.h
120 endif
121
122 # Don't compile the ctype glue code, since we have a much better <ctype.h>
123 # than the old non-GNU C library.
124 inhibit-glue = yes
125
126 # Special ELF hacks.
127 ifeq ($(subdir),elf)
128 sysdep-rtld-routines += dl-brk dl-sbrk dl-getcwd dl-openat64
129 sysdep_routines += sys_umtx
130 endif
131
132 ifeq ($(subdir),sunrpc)
133 sysdep_headers += nfs/nfs.h
134 endif
135
136 ifeq ($(subdir),rt)
137 librt-routines += sys_shm_open
138 endif