summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-10-14 08:03:18 +0000
committerRoland McGrath <roland@gnu.org>2002-10-14 08:03:18 +0000
commitd62507ddb703c5219bb320e0a4a87ddea17976e0 (patch)
treeb16fe246166d8b3ffd23ba155b1a528652be68a1 /Makefile
parent27af5372488283ad601bf1abf3b4433f994065c4 (diff)
downloadglibc-d62507ddb703c5219bb320e0a4a87ddea17976e0.tar.gz
glibc-d62507ddb703c5219bb320e0a4a87ddea17976e0.tar.xz
glibc-d62507ddb703c5219bb320e0a4a87ddea17976e0.zip
2002-10-05 Roland McGrath <roland@redhat.com>
	* include/stubs-prologue.h: New file.  Give #error under #ifdef _LIBC.
	* Makefile ($(inst_includedir)/gnu/stubs.h): Depend on it.
	Use that file's contents instead of literal echo's for the prologue.
	* include/features.h: Include <gnu/stubs.h> unconditionally.
	* include/gnu/stubs.h: New file.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 2 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 36ba5d60fe..942b28518b 100644
--- a/Makefile
+++ b/Makefile
@@ -163,14 +163,10 @@ subdir-stubs := $(foreach dir,$(subdirs),$(common-objpfx)$(dir)/stubs)
 # iterates over all the subdirs; subdir_install in each subdir depends on
 # the subdir's stubs file.  Having more direct dependencies would result in
 # extra iterations over the list for subdirs and many recursive makes.
-$(inst_includedir)/gnu/stubs.h: subdir_install
+$(inst_includedir)/gnu/stubs.h: include/stubs-prologue.h subdir_install
 	$(make-target-directory)
 	@rm -f $(objpfx)stubs.h
-	(echo '/* This file is automatically generated.';\
-	 echo '   It defines a symbol `__stub_FUNCTION'\'' for each function';\
-	 echo '   in the C library which is a stub, meaning it will fail';\
-	 echo '   every time called, usually setting errno to ENOSYS.  */';\
-	 LC_ALL=C sort $(subdir-stubs)) > $(objpfx)stubs.h
+	(sed '/^@/d' $<; LC_ALL=C sort $(subdir-stubs)) > $(objpfx)stubs.h
 	if test -r $@ && cmp -s $(objpfx)stubs.h $@; \
 	then echo 'stubs.h unchanged'; \
 	else $(INSTALL_DATA) $(objpfx)stubs.h $@; fi