]>
Commit | Line | Data |
---|---|---|
8d57beea | 1 | ifeq ($(subdir),csu) |
39778c6c | 2 | CFLAGS-init-first.c = -fkeep-inline-functions |
c6645251 UD |
3 | |
4 | sysdep_routines += errno-loc | |
39778c6c UD |
5 | endif |
6 | ||
92f1da4d UD |
7 | ifeq ($(subdir),db2) |
8 | CPPFLAGS += -DHAVE_LLSEEK=1 | |
9 | endif | |
10 | ||
8d57beea | 11 | ifeq ($(subdir),misc) |
5148d49f | 12 | sysdep_routines += sysctl clone llseek getresuid getresgid umount umount2 |
84724245 | 13 | |
84384f5b | 14 | sysdep_headers += sys/mount.h sys/acct.h sys/sysctl.h sys/mtio.h \ |
04be94a8 | 15 | sys/io.h sys/klog.h sys/kdaemon.h \ |
cc3fa755 | 16 | sys/user.h sys/sysmacros.h sys/procfs.h sys/prctl.h \ |
39382b8b | 17 | sys/kd.h sys/soundcard.h sys/vt.h \ |
a5a0310d | 18 | sys/quota.h sys/fsuid.h bits/mman.h \ |
d762684b UD |
19 | scsi/sg.h scsi/scsi.h sys/pci.h sys/ultrasound.h \ |
20 | sys/sendfile.h | |
f127cd28 | 21 | |
cd6ede75 UD |
22 | install-others += $(inst_includedir)/bits/syscall.h |
23 | ||
f127cd28 | 24 | # Generate the list of SYS_* macros for the system calls (__NR_* macros). |
df4ef2ab | 25 | $(objpfx)syscall-%.h $(objpfx)syscall-%.d: ../sysdeps/unix/sysv/linux/sys/syscall.h |
f127cd28 | 26 | rm -f $(@:.h=.d) |
9afc8a59 UD |
27 | { \ |
28 | echo '/* Generated at libc build time from kernel syscall list. */';\ | |
29 | echo ''; \ | |
30 | echo '#ifndef _SYSCALL_H'; \ | |
31 | echo '# error "Never use <bits/syscall.h> directly; include <sys/syscall.h> instead."'; \ | |
32 | echo '#endif'; \ | |
33 | echo ''; \ | |
34 | SUNPRO_DEPENDENCIES='$(@:.h=.d) $(patsubst $(objpfx)%,$$(objpfx)%,\ | |
35 | $(@:.d=.h) $(@:.h=.d))' \ | |
36 | $(CC) -E -x c $< -D_LIBC -dM | \ | |
37 | sed -n 's@^#define __NR_\([^ ]*\) .*$$@#define SYS_\1 __NR_\1@p'; \ | |
38 | } > $(@:.d=.h).new | |
f127cd28 | 39 | mv -f $(@:.d=.h).new $(@:.d=.h) |
cd6ede75 | 40 | |
73237de3 | 41 | $(inst_includedir)/bits/syscall.h: $(objpfx)syscall-list.h $(+force) |
cd6ede75 UD |
42 | $(make-target-directory) |
43 | if test -r $@ && cmp -s $< $@; \ | |
44 | then echo 'bits/syscall.h unchanged'; \ | |
45 | else $(INSTALL_DATA) $< $@; fi | |
46 | ||
d705269e | 47 | ifndef no_deps |
f127cd28 RM |
48 | # Get the generated list of dependencies (probably /usr/include/asm/unistd.h). |
49 | -include $(objpfx)syscall-list.d | |
d705269e | 50 | endif |
f127cd28 | 51 | generated += syscall-list.h syscall-list.d |
d2f5be2a UD |
52 | endif |
53 | ||
8d57beea | 54 | ifeq ($(subdir),time) |
dfe1754a | 55 | sysdep_headers += sys/timex.h |
d2f5be2a UD |
56 | endif |
57 | ||
8d57beea | 58 | ifeq ($(subdir),socket) |
5107cf1d | 59 | sysdep_headers += net/if.h net/if_ppp.h net/ppp-comp.h \ |
d705269e | 60 | net/ppp_defs.h net/if_arp.h net/route.h net/ethernet.h \ |
6973fc01 | 61 | net/if_slip.h net/if_packet.h |
7ce241a0 | 62 | sysdep_routines += cmsg_nxthdr sa_len |
8f5ca04b RM |
63 | endif |
64 | ||
8d57beea | 65 | ifeq ($(subdir),sunrpc) |
dfe1754a | 66 | sysdep_headers += nfs/nfs.h |
57aefafe RM |
67 | endif |
68 | ||
8d57beea | 69 | ifeq ($(subdir),termios) |
5107cf1d | 70 | sysdep_headers += termio.h |
80791291 RM |
71 | endif |
72 | ||
8d57beea | 73 | ifeq ($(subdir),stdio-common) |
46ec036d UD |
74 | # Just disable the auto generation in sysdeps/generic |
75 | inhibit-siglist := yes | |
76 | endif | |
77 | ||
d64fae6a | 78 | ifeq ($(subdir),posix) |
ba9234d9 | 79 | sysdep_headers += bits/pthreadtypes.h |
d64fae6a UD |
80 | endif |
81 | ||
8d57beea | 82 | ifeq ($(subdir),inet) |
59cacc81 | 83 | sysdep_headers += sys/socketvar.h netinet/in_systm.h netinet/ip_fw.h \ |
1fb05e3d | 84 | netinet/if_fddi.h netinet/if_tr.h netinet/igmp.h \ |
59cacc81 | 85 | netipx/ipx.h netash/ash.h netax25/ax25.h netatalk/at.h \ |
310b3460 | 86 | netrom/netrom.h netpacket/packet.h netrose/rose.h |
a401eea9 UD |
87 | endif |
88 | ||
93995795 RM |
89 | # Don't compile the ctype glue code, since there is no old non-GNU C library. |
90 | inhibit-glue = yes | |
d705269e | 91 | |
cbdee279 UD |
92 | ifeq ($(subdir),signal) |
93 | sysdep_routines += rt_sigsuspend rt_sigprocmask rt_sigtimedwait \ | |
bd355af0 | 94 | rt_sigqueueinfo rt_sigaction rt_sigpending |
cbdee279 UD |
95 | endif |
96 | ||
9756dfe1 UD |
97 | ifeq ($(subdir),dirent) |
98 | sysdep_routines += getdents64 | |
99 | endif | |
100 | ||
9931ba24 UD |
101 | ifeq ($(subdir),nis) |
102 | CFLAGS-ypclnt.c = -DUSE_BINDINGDIR=1 | |
103 | endif | |
104 |