summaryrefslogtreecommitdiff
path: root/extra-modules.mk
blob: 9c2e4d2f16cf1b8836be38fae8f1b895e6d4e818 (plain)
1
2
3
4
5
6
7
8
9
10
# This file is included several times in a row, once
# for each element of $(modules-names).  $(extra-modules-left)
# is initialized first to $(modules-names) so that with each
# inclusion, we advance $(module) to the next name.

module := $(firstword $(extra-modules-left))
extra-modules-left := $(filter-out $(module),$(extra-modules-left))

libof-$(notdir $(module)) := extramodules
CPPFLAGS-$(module).c += -DNOT_IN_libc