Fri Jul 5 12:22:51 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
[glibc/history.git] / sysdeps / unix / sysv / linux / Makefile
blob6eaf33852fcbf606ba66aebec23da94e00a98e2a
1 ifeq ($(subdir), io)
2 sysdep_routines += fxstat lxstat xstat
3 endif
5 ifeq ($(subdir), misc)
6 sysdep_routines += mount umount xmknod s_ptrace s_sysctl sysctl llseek \
7 setfsgid setfsuid sysinfo uselib s_reboot
9 sysdep_headers += sys/mount.h sys/sysinfo.h sys/acct.h sys/sysctl.h \
10 sys/module.h sys/io.h sys/klog.h sys/kdaemon.h \
11 sys/user.h syscall-list.h
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
26 generated += syscall-list.h syscall-list.d
27 endif
29 ifeq ($(subdir), time)
30 sysdep_routines += adjtimex
31 sysdep_headers += sys/timex.h
32 endif
34 ifeq ($(subdir), socket)
35 sysdep_headers += sys/socketcall.h net/if.h
36 endif
38 ifeq ($(subdir), sunrpc)
39 sysdep_headers += nfs/nfs.h
40 endif
42 ifeq ($(subdir), termios)
43 sysdep_headers += termio.h
44 endif
46 rtld-installed-name = ld-gnu.so.1
48 # Don't compile the ctype glue code, since there is no old non-GNU C library.
49 inhibit-glue = yes