Iterator to define CPPFLAGS variable for sources of extra libraries.
authordrepper <drepper>
Mon, 8 Apr 2002 08:34:19 +0000 (08:34 +0000)
committerdrepper <drepper>
Mon, 8 Apr 2002 08:34:19 +0000 (08:34 +0000)
cppflags-iterator.mk [new file with mode: 0644]

diff --git a/cppflags-iterator.mk b/cppflags-iterator.mk
new file mode 100644 (file)
index 0000000..0748885
--- /dev/null
@@ -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)