Roland McGrath 807912915b * sysdeps/unix/sysv/linux/Makefile [$(subdir)=termios] (headers):
Append termio.h.

	* Makefile ($(includedir)/stubs.h): Print a msg if we do nothing.

	* misc/sgtty.h: Add forward decl of struct sgttyb in case it is never
	defined.

	* sysdeps/unix/sysv/linux/termio.h: New file.
	* sysdeps/unix/sysv/linux/Dist: Add it.

	* sysdeps/unix/sysv/linux/ioctl-types.h: New file, wrapper around
	kernel header <asm/termios.h>.

	* misc/Makefile (headers): Add ioctl-types.h.
	* sysdeps/generic/ioctl-types.h: New file.
	* misc/sys/ioctl.h: Include <ioctl-types.h>.
	(struct tchars, struct ltchars, struct sgttyb, struct winsize,
	struct ttysize): Types moved there.
1996-05-27 20:16:19 +00:00

65 lines
1.8 KiB
Makefile

ifeq ($(subdir), math)
sysdep_routines += setfpucw
extra-objs += ieee-fpucw.o
headers += fpu_control.h
install-lib += libieee.a
non-lib.a += libieee.a
$(objpfx)libieee.a: $(objpfx)ieee-fpucw.o
rm -f $@
ln $< $@
endif
ifeq ($(subdir), io)
sysdep_routines += fxstat lxstat xstat
endif
ifeq ($(subdir), misc)
sysdep_routines += mount umount xmknod s_ptrace s_sysctl sysctl llseek \
setfsgid setfsuid sysinfo uselib s_reboot
headers += sys/mount.h sys/sysinfo.h sys/acct.h sys/sysctl.h
install-others += $(includedir)/sys/syscall.h
$(includedir)/sys/syscall.h::
@rm -f $(objpfx)syscall.h $(objpfx)syscall.sed
@(os=`uname -sr`; \
echo -e '1i\\\n#ifndef _SYS_SYSCALL_H\\'; \
echo -e '#define _SYS_SYSCALL_H\t1\\\n\\'; \
echo -e -n '/* This file is automatically generated as part of '; \
echo -e 'GNU libc-$(version)\\'; \
echo -e " on a system running $$os. */\\"; echo; \
echo -e -n 's/#define __NR_\\([A-Za-z0-9_]*\\)[ \t]*__NR_\\(.*\\)/';\
echo -e '#define SYS_\\1 SYS_\\2/p'; \
echo -e -n 's/#define __NR_\\([A-Za-z0-9_]*\\)[ \t]*\\(.*\\)/';\
echo -e '#define SYS_\\1 \\2/p'; \
echo -e '$$i\\\n\\\n#endif\t/* sys/syscall.h */\nd') \
> $(objpfx)syscall.sed
set -- `echo '#include <asm/unistd.h>'|$(CC) -M -E -`; \
sed -f $(objpfx)syscall.sed $$2 > $(objpfx)syscall.h
$(INSTALL_DATA) $(objpfx)syscall.h $@
rm -f $(objpfx)syscall.h $(objpfx)syscall.sed
endif
ifeq ($(subdir), time)
sysdep_routines += adjtimex
headers += sys/timex.h
endif
ifeq ($(subdir), socket)
headers += sys/socketcall.h net/if.h
endif
ifeq ($(subdir), sunrpc)
headers += nfs/nfs.h
endif
ifeq ($(subdir), termios)
headers += termio.h
endif
rtld-installed-name = ld-gnu.so.1
# Don't compile the ctype glue code, since there is no old non-GNU C library.
inhibit-glue = yes