diff options
author | Roland McGrath <roland@gnu.org> | 2002-08-27 09:22:36 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2002-08-27 09:22:36 +0000 |
commit | 4022d8ed0374121e9f08aaaf657276de0e7642ed (patch) | |
tree | 076faaa602528376dd04e4cac67ca3edae4e8fb9 /sysdeps/gnu/Makefile | |
parent | b2ab1f5df8dac098eea5058f02f4d03c4143d5a2 (diff) | |
download | glibc-4022d8ed0374121e9f08aaaf657276de0e7642ed.tar.gz glibc-4022d8ed0374121e9f08aaaf657276de0e7642ed.tar.xz glibc-4022d8ed0374121e9f08aaaf657276de0e7642ed.zip |
2002-08-26 Roland McGrath <roland@redhat.com>
* sysdeps/gnu/Versions: New file. * sysdeps/unix/sysv/linux/Versions (libc: GLIBC_2.1): Remove _sys_errlist; sys_errlist; _sys_nerr; sys_nerr; from here. * sysdeps/gnu/Makefile ($(..)sysdeps/gnu/errlist-compat.c): New target. ($(objpfx)errlist.d): Depend on $(..)sysdeps/gnu/errlist-compat.c. * sysdeps/gnu/errlist.awk: Make output define _sys_errlist_internal and _sys_nerr_internal instead of anything else. Make it include "errlist-compat.c" if [!NOT_IN_libc && !ERRLIST_NO_COMPAT]. Make it emit some asm magic if [EMIT_ERR_MAX]. * sysdeps/gnu/errlist.c: Regenerated. * sysdeps/gnu/errlist-compat.awk: New file. * sysdeps/gnu/errlist-compat.c: New file (generated). * sysdeps/mach/hurd/errlist.c (ERRLIST_NO_COMPAT): New macro. (_sys_errlist_internal): Define this as a macro for _hurd_errlist. (_sys_nerr_internal): Define this is a macro for _hurd_nerr. (SYS_ERRLIST, SYS_NERR): Macros removed. (sys_nerr, _sys_nerr): Remove these weak aliases. * sysdeps/unix/sysv/linux/errlist.c: File removed. * sysdeps/unix/sysv/linux/errlist.h: File removed. * sysdeps/unix/sysv/linux/arm/errlist.c: File removed.
Diffstat (limited to 'sysdeps/gnu/Makefile')
-rw-r--r-- | sysdeps/gnu/Makefile | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/sysdeps/gnu/Makefile b/sysdeps/gnu/Makefile index ab0b15905d..65b9258507 100644 --- a/sysdeps/gnu/Makefile +++ b/sysdeps/gnu/Makefile @@ -1,4 +1,4 @@ -# Copyright (C) 1996, 97, 98, 99 Free Software Foundation, Inc. +# Copyright (C) 1996,97,98,99,2001,02 Free Software Foundation, Inc. # This file is part of the GNU C Library. # The GNU C Library is free software; you can redistribute it and/or @@ -29,6 +29,26 @@ ifeq ($(with-cvs),yes) test ! -d CVS || cvs commit -m'Regenerated from $^' $@ endif +vpath errlist.c $(full_config_sysdirs) +$(..)sysdeps/gnu/errlist-compat.c: errlist.c \ + $(..)sysdeps/gnu/errlist-compat.awk \ + $(..)sysdeps/gnu/Versions + $(AWK) -v maxerr=`\ + $(CC) -S $(CPPFLAGS) $(CFLAGS) -DNOT_IN_libc -DEMIT_ERR_MAX $< -o - \ + | sed -n 's/^.*@@@[^0-9]*\([0-9]*\)[^0-9]*@@@.*$$/\1/p'` \ + -f $(filter-out $<,$^) > $@T +# Make it unwritable so noone will edit it by mistake. + -chmod a-w $@T + mv -f $@T $@ +ifeq ($(with-cvs),yes) + test ! -d CVS || cvs commit -m'Regenerated from $^' $@ +endif + +ifeq ($(subdir),stdio-common) +# This will force the generation above to happy if need be. +$(objpfx)errlist.d: $(..)sysdeps/gnu/errlist-compat.c +endif + ifeq ($(subdir),login) sysdep_routines += setutxent getutxent endutxent getutxid getutxline \ pututxline utmpxname updwtmpx getutmpx getutmp |