]> git.ipfire.org Git - thirdparty/glibc.git/blob - sysdeps/unix/sysv/linux/Makefile
Update.
[thirdparty/glibc.git] / sysdeps / unix / sysv / linux / Makefile
1 ifeq ($(subdir), misc)
2 sysdep_routines += sysctl clone
3
4 sysdep_headers += sys/mount.h sys/sysinfo.h sys/acct.h sys/sysctl.h \
5 sys/module.h sys/io.h sys/klog.h sys/kdaemon.h \
6 sys/user.h syscall-list.h sys/sysmacros.h
7
8 # Generate the list of SYS_* macros for the system calls (__NR_* macros).
9 $(objpfx)syscall-%.h $(objpfx)syscall-%.d: ../sysdeps/unix/sysv/linux/syscall.h
10 rm -f $(@:.h=.d)
11 echo > $(@:.d=.h).new \
12 '/* Generated at libc build time from kernel syscall list. */'
13 SUNPRO_DEPENDENCIES='$(@:.h=.d) $(patsubst $(objpfx)%,$$(objpfx)%,\
14 $(@:.h=.d))' \
15 $(CC) -E -x c $< -D_LIBC -dM | \
16 sed -n >> $(@:.d=.h).new \
17 's@^#define __NR_\([^ ]*\) .*$$@#define SYS_\1 __NR_\1@p'
18 mv -f $(@:.d=.h).new $(@:.d=.h)
19 # Get the generated list of dependencies (probably /usr/include/asm/unistd.h).
20 -include $(objpfx)syscall-list.d
21 generated += syscall-list.h syscall-list.d
22 endif
23
24 ifeq ($(subdir), time)
25 sysdep_headers += sys/timex.h
26 endif
27
28 ifeq ($(subdir), socket)
29 sysdep_headers += sys/socketcall.h net/if.h
30 endif
31
32 ifeq ($(subdir), sunrpc)
33 sysdep_headers += nfs/nfs.h
34 endif
35
36 ifeq ($(subdir), termios)
37 sysdep_headers += termio.h
38 endif
39
40 # Don't compile the ctype glue code, since there is no old non-GNU C library.
41 inhibit-glue = yes