]> git.ipfire.org Git - thirdparty/glibc.git/blame - sysdeps/unix/sysv/linux/Makefile
Update.
[thirdparty/glibc.git] / sysdeps / unix / sysv / linux / Makefile
CommitLineData
8d57beea 1ifeq ($(subdir),csu)
39778c6c 2CFLAGS-init-first.c = -fkeep-inline-functions
c6645251
UD
3
4sysdep_routines += errno-loc
39778c6c
UD
5endif
6
92f1da4d
UD
7ifeq ($(subdir),db2)
8CPPFLAGS += -DHAVE_LLSEEK=1
9endif
10
8d57beea 11ifeq ($(subdir),misc)
5148d49f 12sysdep_routines += sysctl clone llseek getresuid getresgid umount umount2
84724245 13
84384f5b 14sysdep_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
22install-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 47ifndef no_deps
f127cd28
RM
48# Get the generated list of dependencies (probably /usr/include/asm/unistd.h).
49-include $(objpfx)syscall-list.d
d705269e 50endif
f127cd28 51generated += syscall-list.h syscall-list.d
d2f5be2a
UD
52endif
53
8d57beea 54ifeq ($(subdir),time)
dfe1754a 55sysdep_headers += sys/timex.h
d2f5be2a
UD
56endif
57
8d57beea 58ifeq ($(subdir),socket)
5107cf1d 59sysdep_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 62sysdep_routines += cmsg_nxthdr sa_len
8f5ca04b
RM
63endif
64
8d57beea 65ifeq ($(subdir),sunrpc)
dfe1754a 66sysdep_headers += nfs/nfs.h
57aefafe
RM
67endif
68
8d57beea 69ifeq ($(subdir),termios)
5107cf1d 70sysdep_headers += termio.h
80791291
RM
71endif
72
8d57beea 73ifeq ($(subdir),stdio-common)
46ec036d
UD
74# Just disable the auto generation in sysdeps/generic
75inhibit-siglist := yes
76endif
77
d64fae6a 78ifeq ($(subdir),posix)
ba9234d9 79sysdep_headers += bits/pthreadtypes.h
d64fae6a
UD
80endif
81
8d57beea 82ifeq ($(subdir),inet)
59cacc81 83sysdep_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
87endif
88
93995795
RM
89# Don't compile the ctype glue code, since there is no old non-GNU C library.
90inhibit-glue = yes
d705269e 91
cbdee279
UD
92ifeq ($(subdir),signal)
93sysdep_routines += rt_sigsuspend rt_sigprocmask rt_sigtimedwait \
bd355af0 94 rt_sigqueueinfo rt_sigaction rt_sigpending
cbdee279
UD
95endif
96
9756dfe1
UD
97ifeq ($(subdir),dirent)
98sysdep_routines += getdents64
99endif
100
9931ba24
UD
101ifeq ($(subdir),nis)
102CFLAGS-ypclnt.c = -DUSE_BINDINGDIR=1
103endif
104