]>
Commit | Line | Data |
---|---|---|
39778c6c UD |
1 | ifeq ($(subdir), csu) |
2 | CFLAGS-init-first.c = -fkeep-inline-functions | |
3 | endif | |
4 | ||
d2f5be2a | 5 | ifeq ($(subdir), misc) |
a5113b14 | 6 | sysdep_routines += sysctl clone |
84724245 | 7 | |
845dcb57 | 8 | sysdep_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 | |
26 | generated += syscall-list.h syscall-list.d | |
d2f5be2a UD |
27 | endif |
28 | ||
d2f5be2a | 29 | ifeq ($(subdir), time) |
dfe1754a | 30 | sysdep_headers += sys/timex.h |
d2f5be2a UD |
31 | endif |
32 | ||
57aefafe | 33 | ifeq ($(subdir), socket) |
dfe1754a | 34 | sysdep_headers += sys/socketcall.h net/if.h |
8f5ca04b RM |
35 | endif |
36 | ||
37 | ifeq ($(subdir), sunrpc) | |
dfe1754a | 38 | sysdep_headers += nfs/nfs.h |
57aefafe RM |
39 | endif |
40 | ||
80791291 | 41 | ifeq ($(subdir), termios) |
dfe1754a | 42 | sysdep_headers += termio.h |
80791291 RM |
43 | endif |
44 | ||
93995795 RM |
45 | # Don't compile the ctype glue code, since there is no old non-GNU C library. |
46 | inhibit-glue = yes |