* time/tzfile.h, time/private.h, time/zdump.c, time/zic.c,
[glibc.git] / sysdeps / unix / sysv / linux / Makefile
blobec5119e40841818ed4828aead903ba141296383d
1 ifeq ($(subdir), math)
2 sysdep_routines += setfpucw
3 extra-objs += ieee-fpucw.o
4 sysdep_headers += fpu_control.h
5 install-lib += libieee.a
6 non-lib.a += libieee.a
8 $(objpfx)libieee.a: $(objpfx)ieee-fpucw.o
9 rm -f $@
10 ln $< $@
11 endif
13 ifeq ($(subdir), io)
14 sysdep_routines += fxstat lxstat xstat
15 endif
17 ifeq ($(subdir), misc)
18 sysdep_routines += mount umount xmknod s_ptrace s_sysctl sysctl llseek \
19 setfsgid setfsuid sysinfo uselib s_reboot
21 sysdep_headers += sys/mount.h sys/sysinfo.h sys/acct.h sys/sysctl.h sys/module.h \
22 sys/io.h sys/klog.h sys/kdaemon.h
24 install-others += $(includedir)/sys/syscall.h
26 $(includedir)/sys/syscall.h::
27 @rm -f $(objpfx)syscall.h $(objpfx)syscall.sed
28 @(os=`uname -sr`; \
29 echo -e '1i\\\n#ifndef _SYS_SYSCALL_H\\'; \
30 echo -e '#define _SYS_SYSCALL_H\t1\\\n\\'; \
31 echo -e -n '/* This file is automatically generated as part of '; \
32 echo -e 'GNU libc-$(version)\\'; \
33 echo -e " on a system running $$os. */\\"; echo; \
34 echo -e -n 's/#define __NR_\\([A-Za-z0-9_]*\\)[ \t]*__NR_\\(.*\\)/';\
35 echo -e '#define SYS_\\1 SYS_\\2/p'; \
36 echo -e -n 's/#define __NR_\\([A-Za-z0-9_]*\\)[ \t]*\\(.*\\)/';\
37 echo -e '#define SYS_\\1 \\2/p'; \
38 echo -e '$$i\\\n\\\n#endif\t/* sys/syscall.h */\nd') \
39 > $(objpfx)syscall.sed
40 set -- `echo '#include <asm/unistd.h>'|$(CC) -M -E -`; \
41 sed -f $(objpfx)syscall.sed $$2 > $(objpfx)syscall.h
42 $(INSTALL_DATA) $(objpfx)syscall.h $@
43 rm -f $(objpfx)syscall.h $(objpfx)syscall.sed
44 endif
46 ifeq ($(subdir), time)
47 sysdep_routines += adjtimex
48 sysdep_headers += sys/timex.h
49 endif
51 ifeq ($(subdir), socket)
52 sysdep_headers += sys/socketcall.h net/if.h
53 endif
55 ifeq ($(subdir), sunrpc)
56 sysdep_headers += nfs/nfs.h
57 endif
59 ifeq ($(subdir), termios)
60 sysdep_headers += termio.h
61 endif
63 rtld-installed-name = ld-gnu.so.1
65 # Don't compile the ctype glue code, since there is no old non-GNU C library.
66 inhibit-glue = yes