2 sysdep_routines
+= fxstat lxstat xstat
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
16 echo
> $(@
:.d
=.h
).new \
17 '/* Generated at libc build time from kernel syscall list. */'
18 SUNPRO_DEPENDENCIES
='$(@:.h=.d) $(patsubst $(objpfx)%,$$(objpfx)%,\
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
29 ifeq ($(subdir
), time
)
30 sysdep_routines
+= adjtimex
31 sysdep_headers
+= sys
/timex.h
34 ifeq ($(subdir
), socket
)
35 sysdep_headers
+= sys
/socketcall.h net
/if.h
38 ifeq ($(subdir
), sunrpc
)
39 sysdep_headers
+= nfs
/nfs.h
42 ifeq ($(subdir
), termios
)
43 sysdep_headers
+= termio.h
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.