]> git.ipfire.org Git - thirdparty/glibc.git/blame - sysdeps/unix/sysv/linux/Makefile
update from main archive
[thirdparty/glibc.git] / sysdeps / unix / sysv / linux / Makefile
CommitLineData
39778c6c
UD
1ifeq ($(subdir), csu)
2CFLAGS-init-first.c = -fkeep-inline-functions
3endif
4
d2f5be2a 5ifeq ($(subdir), misc)
a5113b14 6sysdep_routines += sysctl clone
84724245 7
845dcb57 8sysdep_headers += sys/mount.h sys/acct.h sys/sysctl.h \
f127cd28 9 sys/module.h sys/io.h sys/klog.h sys/kdaemon.h \
c4029823
UD
10 sys/user.h syscall-list.h sys/sysmacros.h sys/procfs.h \
11 sys/debugreg.h sys/kd.h sys/soundcard.h sys/vt.h
f127cd28
RM
12
13# Generate the list of SYS_* macros for the system calls (__NR_* macros).
14$(objpfx)syscall-%.h $(objpfx)syscall-%.d: ../sysdeps/unix/sysv/linux/syscall.h
15 rm -f $(@:.h=.d)
16 echo > $(@:.d=.h).new \
17 '/* Generated at libc build time from kernel syscall list. */'
18 SUNPRO_DEPENDENCIES='$(@:.h=.d) $(patsubst $(objpfx)%,$$(objpfx)%,\
19 $(@:.h=.d))' \
20 $(CC) -E -x c $< -D_LIBC -dM | \
21 sed -n >> $(@:.d=.h).new \
22 's@^#define __NR_\([^ ]*\) .*$$@#define SYS_\1 __NR_\1@p'
23 mv -f $(@:.d=.h).new $(@:.d=.h)
24# Get the generated list of dependencies (probably /usr/include/asm/unistd.h).
25-include $(objpfx)syscall-list.d
26generated += syscall-list.h syscall-list.d
d2f5be2a
UD
27endif
28
d2f5be2a 29ifeq ($(subdir), time)
dfe1754a 30sysdep_headers += sys/timex.h
d2f5be2a
UD
31endif
32
57aefafe 33ifeq ($(subdir), socket)
dfe1754a 34sysdep_headers += sys/socketcall.h net/if.h
8f5ca04b
RM
35endif
36
37ifeq ($(subdir), sunrpc)
dfe1754a 38sysdep_headers += nfs/nfs.h
57aefafe
RM
39endif
40
80791291 41ifeq ($(subdir), termios)
dfe1754a 42sysdep_headers += termio.h
80791291
RM
43endif
44
93995795
RM
45# Don't compile the ctype glue code, since there is no old non-GNU C library.
46inhibit-glue = yes