diff options
author | Ulrich Drepper <drepper@redhat.com> | 1998-11-19 11:23:37 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1998-11-19 11:23:37 +0000 |
commit | bb41a976a37574d81b6755b1d57c7ce47d8f9dcb (patch) | |
tree | e2cece2c6f82b9ae85acc1d5a0ca6c57c4a3baad /Makeconfig | |
parent | 97dac76c11e1317222fb09913d695bab51ba7b3c (diff) | |
download | glibc-bb41a976a37574d81b6755b1d57c7ce47d8f9dcb.tar.gz |
Update.
1998-11-19 Ulrich Drepper <drepper@cygnus.com>
* Makeconfig: Add comment to all-subdirs definition.
Add rule to generate sysd-sorted. Include this file and and set
subdirs value to $(sorted-subdirs).
* scripts/gen-sorted.awk: New file.
* Make-dist (+tsrcs): Add Depend.
* nscd/Depend: New file.
* nss/Depend: New file.
* rt/Depend: New file.
* manual/errno.texi> Change the short text for ENODEV to
"No such device".
Diffstat (limited to 'Makeconfig')
-rw-r--r-- | Makeconfig | 28 |
1 files changed, 25 insertions, 3 deletions
diff --git a/Makeconfig b/Makeconfig index 8e5129f2fb..99389276f9 100644 --- a/Makeconfig +++ b/Makeconfig @@ -750,7 +750,10 @@ sysdep-subdirs := $(subst $(\n), ,$(sysdep-subdirs)) sysdep-inhibit-subdirs := $(subst $(\n), ,$(sysdep-inhibit-subdirs)) endif -# These are the subdirectories containing the library source. +# These are the subdirectories containing the library source. The order +# is more or less arbitrary. The sorting step will take care of the +# dependencies. Only the $(binfmt-subdir) should always be kept at the +# end of the list. all-subdirs = csu assert ctype db db2 locale intl catgets math setjmp signal\ stdlib stdio-common $(stdio) malloc string wcsmbs time dirent \ grp pwd posix io termios resource misc socket sysvipc gmon \ @@ -758,7 +761,9 @@ all-subdirs = csu assert ctype db db2 locale intl catgets math setjmp signal\ $(add-ons) nss localedata timezone rt debug $(sysdep-subdirs) \ $(binfmt-subdir) all-subdirs := $(filter-out $(sysdep-inhibit-subdirs),$(all-subdirs)) -subdirs = $(all-subdirs) + +-include $(common-objpfx)sysd-sorted +subdirs = $(sorted-subdirs) # The mach and hurd subdirectories have many generated header files which # much of the rest of the library depends on, so it is best to build them @@ -775,10 +780,27 @@ $(common-objpfx)sysd-dirs: $(common-objpfx)config.make $(all-Subdirs-files) sed 's/[#-].*$$//' $(all-Subdirs-files) /dev/null; \ echo endef; \ echo define sysdep-inhibit-subdirs; \ - sed '/-.*$$/!d;s/^-//' $(all-Subdirs-files) /dev/null; \ + sed '/-.*$$/!d;s/^-//' $(all-Subdirs-files) /dev/null; \ echo endef; \ echo 'sysd-dirs-done = t'; \ ) > $@-tmp mv -f $@-tmp $@ +all-Depend-files = $(wildcard $(..)*/Depend) +$(common-objpfx)sysd-sorted: $(..)scripts/gen-sorted.awk $(all-Depend-files) \ + $(common-objpfx)sysd-dirs $(..)Makeconfig + (if test "$(all-Depend-files)"; then \ + for f in $(all-Depend-files); do \ + dir=$${f%%/*}; \ + while read on; do \ + echo "depend $$dir $$on"; \ + done < $$f; \ + done; \ + fi; \ + for f in $(all-subdirs); do \ + echo $$f; \ + done \ + ) | $(AWK) -f $(..)scripts/gen-sorted.awk > $@-tmp + mv -f $@-tmp $@ + endif # Makeconfig not yet included |