Wed May 29 00:57:37 1996 David Mosberger-Tang <davidm@azstarnet.com>
[platform/upstream/glibc.git] / sysdeps / unix / sysv / linux / Makefile
1 ifeq ($(subdir), math)
2 sysdep_routines += setfpucw
3 extra-objs += ieee-fpucw.o
4 headers += fpu_control.h
5 install-lib += libieee.a
6 non-lib.a += libieee.a
7
8 $(objpfx)libieee.a: $(objpfx)ieee-fpucw.o
9         rm -f $@
10         ln $< $@
11 endif
12
13 ifeq ($(subdir), io)
14 sysdep_routines += fxstat lxstat xstat
15 endif
16
17 ifeq ($(subdir), misc)
18 sysdep_routines += mount umount xmknod s_ptrace s_sysctl sysctl llseek \
19 setfsgid setfsuid sysinfo uselib s_reboot
20
21 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
23
24 install-others += $(includedir)/sys/syscall.h
25
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
45
46 ifeq ($(subdir), time)
47 sysdep_routines += adjtimex
48 headers += sys/timex.h
49 endif
50
51 ifeq ($(subdir), socket)
52 headers += sys/socketcall.h net/if.h
53 endif
54
55 ifeq ($(subdir), sunrpc)
56 headers += nfs/nfs.h
57 endif
58
59 ifeq ($(subdir), termios)
60 headers += termio.h
61 endif
62
63 rtld-installed-name = ld-gnu.so.1
64
65 # Don't compile the ctype glue code, since there is no old non-GNU C library.
66 inhibit-glue = yes