aboutsummaryrefslogtreecommitdiff
path: root/cppflags-iterator.mk
diff options
context:
space:
mode:
Diffstat (limited to 'cppflags-iterator.mk')
-rw-r--r--cppflags-iterator.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/cppflags-iterator.mk b/cppflags-iterator.mk
new file mode 100644
index 0000000..0748885
--- /dev/null
+++ b/cppflags-iterator.mk
@@ -0,0 +1,7 @@
+# This file is included several times in a row, once
+# for each element of $(lib)-routines and $(lib)-sysdeps_routines.
+
+cpp-src := $(firstword $(cpp-srcs-left))
+cpp-srcs-left := $(filter-out $(cpp-src),$(cpp-srcs-left))
+
+CPPFLAGS-$(cpp-src) = -DNOT_IN_LIBC -DIS_IN_$(lib)