(nscd_run): Check early for invalid request types.
[glibc.git] / sysdeps / gnu / Makefile
blobdee0c67bcf3dbbda54f3c8f86b9e77d41f7231eb
1 # Copyright (C) 1996,1997,1998,1999,2001,2002,2003
2 # Free Software Foundation, Inc.
3 # This file is part of the GNU C Library.
5 # The GNU C Library is free software; you can redistribute it and/or
6 # modify it under the terms of the GNU Lesser General Public
7 # License as published by the Free Software Foundation; either
8 # version 2.1 of the License, or (at your option) any later version.
10 # The GNU C Library is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 # Lesser General Public License for more details.
15 # You should have received a copy of the GNU Lesser General Public
16 # License along with the GNU C Library; if not, write to the Free
17 # Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
18 # 02111-1307 USA.
20 # Generate the list of strings for errno codes from the section of the
21 # manual which documents the codes.
23 $(..)sysdeps/gnu/errlist.c: $(..)sysdeps/gnu/errlist.awk \
24 $(..)manual/errno.texi
25 $(AWK) -f $^ > $@-tmp
26 # Make it unwritable so noone will edit it by mistake.
27 -chmod a-w $@-tmp
28 mv -f $@-tmp $@
29 ifeq ($(with-cvs),yes)
30 test ! -d CVS || cvs commit -m'Regenerated from $^' $@
31 endif
33 ifeq ($(subdir),stdio-common)
35 vpath errlist.c $(full_config_sysdirs)
36 ifeq ($(versioning),yes)
37 $(objpfx)errlist-compat.c: errlist.c $(..)sysdeps/gnu/errlist-compat.awk \
38 $(common-objpfx)Versions.v.i $(before-compile)
39 else
40 $(objpfx)errlist-compat.c: errlist.c $(..)sysdeps/gnu/errlist-compat.awk \
41 $(before-compile)
42 endif
43 $(AWK) -v maxerr=`\
44 $(CC) -S $(CPPFLAGS) $(CFLAGS) -DNOT_IN_libc -DEMIT_ERR_MAX $< -o - \
45 | sed -n 's/^.*@@@[^0-9]*\([0-9]*\)[^0-9]*@@@.*$$/\1/p'` \
46 -f $(..)sysdeps/gnu/errlist-compat.awk \
47 $(wildcard $(patsubst %,$(..)%/Versions,\
48 $(config-sysdirs) $(add-ons))) > $@T
49 # Make it unwritable so noone will edit it by mistake.
50 -chmod a-w $@T
51 mv -f $@T $@
52 generated += errlist-compat.c
54 # This will force the generation above to happy if need be.
55 $(foreach o,.d $(object-suffixes),$(objpfx)errlist$o):$(objpfx)errlist-compat.c
56 endif
58 ifeq ($(subdir),login)
59 sysdep_routines += setutxent getutxent endutxent getutxid getutxline \
60 pututxline utmpxname updwtmpx getutmpx getutmp
62 sysdep_headers += utmpx.h bits/utmpx.h
63 endif
66 ifeq ($(subdir),inet)
67 sysdep_headers += netinet/udp.h netinet/ip_icmp.h
68 endif
71 ifeq ($(subdir),misc)
72 sysdep_headers += sys/mtio.h
73 endif