2 sysdep_routines
+= sysctl clone
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
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
11 echo
> $(@
:.d
=.h
).new \
12 '/* Generated at libc build time from kernel syscall list. */'
13 SUNPRO_DEPENDENCIES
='$(@:.h=.d) $(patsubst $(objpfx)%,$$(objpfx)%,\
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
24 ifeq ($(subdir
), time
)
25 sysdep_headers
+= sys
/timex.h
28 ifeq ($(subdir
), socket
)
29 sysdep_headers
+= sys
/socketcall.h net
/if.h
32 ifeq ($(subdir
), sunrpc
)
33 sysdep_headers
+= nfs
/nfs.h
36 ifeq ($(subdir
), termios
)
37 sysdep_headers
+= termio.h
40 # Don't compile the ctype glue code, since there is no old non-GNU C library.