summary refs log tree commit diff
path: root/o-iterator.mk
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1995-03-17 18:42:51 +0000
committerRoland McGrath <roland@gnu.org>1995-03-17 18:42:51 +0000
commit693e7b964f9d91d9df97b776718271c94131dcbd (patch)
treef8c09ba386017b689388f0dfd9b2cf8b3f647fd6 /o-iterator.mk
parent68b3ef49b933afbc35d4b78b99c5adafffc97770 (diff)
downloadglibc-693e7b964f9d91d9df97b776718271c94131dcbd.tar.gz
glibc-693e7b964f9d91d9df97b776718271c94131dcbd.tar.xz
glibc-693e7b964f9d91d9df97b776718271c94131dcbd.zip
Fri Mar 17 12:58:37 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
	* sunrpc/Makefile (install-lib): Variable removed.
	(rpcsvc-objs): Variable removed.
	(extra-objs): Don't include $(rpcsvc-objs).
	(extra-libs): New variable, contains librpcsvc.
	(librpcsvc-routines): New variable.
	(librpcsvc-inhibit-o): New variable, contains .so.
	(omit-deps): Set this to $(librpcsvc-routines).
	($(objpfx)rpcgen): Don't use $(libc.a).
	(lib, $(objpfx)librpcsvc.a): Targets removed.

	* o-iterator.mk, extra-lib.mk: New files.
	* Makerules (o-iterator): New variable.
	[extra-libs]: Include extra-lib.mk to generate rules for each word
	of $(extra-libs).
	* Makefile (distribute): Add extra-lib.mk, o-iterator.mk.

	(IMPLICIT_ONE, *_MAX_10_EXP_LOG): Macros removed; no longer needed.
	* stdio/fpioconst.c, stdio/fpioconst.h: Don't use
 	LDBL_MAX_10_EXP_LOG; LAST_POW10 defines the maximal available
 	exponent.
Diffstat (limited to 'o-iterator.mk')
-rw-r--r--o-iterator.mk9
1 files changed, 9 insertions, 0 deletions
diff --git a/o-iterator.mk b/o-iterator.mk
new file mode 100644
index 0000000000..18a6e48ae3
--- /dev/null
+++ b/o-iterator.mk
@@ -0,0 +1,9 @@
+# This file is included several times in a row, once
+# for each element of $(object-suffixes).  $(object-suffixes-left)
+# is initialized first to $(object-suffixes) so that with each
+# inclusion, we advance $o to the next suffix.
+
+o := $(firstword $(object-suffixes-left))
+object-suffixes-left := $(filter-out $o,$(object-suffixes-left))
+
+$(o-iterator-doit)