summaryrefslogtreecommitdiff
path: root/libof-iterator.mk
diff options
context:
space:
mode:
authorZack Weinberg <zackw@panix.com>2017-05-08 15:52:26 -0400
committerZack Weinberg <zackw@panix.com>2017-05-08 16:02:18 -0400
commitb34c573a0f35e0061fc8b61715b8d9f5003f7622 (patch)
treed2e814bca06d0a03c311718fe6b7dd18c9fbba97 /libof-iterator.mk
parent1721145f0341d70a6d7807b172c5eb400b508fc0 (diff)
downloadglibc-zack/em-ci-mk.tar.gz
Rename cppflags-iterator.mk to libof-iterator.mk, remove extra-modules.mk.zack/em-ci-mk
cppflags-iterator.mk no longer has anything to do with CPPFLAGS; all it does is set libof-$(foo) for a list of files. extra-modules.mk does the same thing, but with a different input variable, and doesn't let the caller control the module. Therefore, this patch gives cppflags-iterator.mk a better name, removes extra-modules.mk, and updates all uses of both. * extra-modules.mk: Delete file. * cppflags-iterator.mk: Rename to ... * libof-iterator.mk: ...this. Adjust comments. * Makerules, extra-lib.mk, benchtests/Makefile, elf/Makefile * elf/rtld-Rules, iconv/Makefile, locale/Makefile, malloc/Makefile * nscd/Makefile, sunrpc/Makefile, sysdeps/s390/Makefile: Use libof-iterator.mk instead of cppflags-iterator.mk or extra-modules.mk. * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Remove extra-modules.mk and cppflags-iterator.mk, add libof-iterator.mk.
Diffstat (limited to 'libof-iterator.mk')
-rw-r--r--libof-iterator.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/libof-iterator.mk b/libof-iterator.mk
new file mode 100644
index 0000000000..31560ce231
--- /dev/null
+++ b/libof-iterator.mk
@@ -0,0 +1,8 @@
+# This file is included several times in a row, once for each element
+# $(cpp-src) of $(cpp-srcs-left). It sets libof-$(cpp-src) to $(lib)
+# for each.
+
+cpp-src := $(firstword $(cpp-srcs-left))
+cpp-srcs-left := $(filter-out $(cpp-src),$(cpp-srcs-left))
+
+libof-$(notdir $(cpp-src)) := $(lib)