aboutsummaryrefslogtreecommitdiff
path: root/libof-iterator.mk
diff options
context:
space:
mode:
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 0000000..31560ce
--- /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)