2019-03-05 15:48:28 +01:00
|
|
|
_ALLMODULES = $(sort $(USEMODULE) $(USEPKG))
|
|
|
|
|
2019-03-05 15:57:13 +01:00
|
|
|
# Define MODULE_MODULE_NAME preprocessor macros for all modules.
|
2019-03-05 15:48:28 +01:00
|
|
|
ED = $(addprefix MODULE_,$(_ALLMODULES))
|
2016-03-17 13:05:15 +01:00
|
|
|
EXTDEFINES = $(addprefix -D,$(shell echo '$(ED)' | tr 'a-z-' 'A-Z_'))
|
2019-03-05 15:57:13 +01:00
|
|
|
CFLAGS += $(EXTDEFINES)
|
2017-03-22 19:32:29 +01:00
|
|
|
|
|
|
|
# filter "pseudomodules" from "real modules", but not "no_pseudomodules"
|
2019-03-05 15:59:35 +01:00
|
|
|
REALMODULES += $(filter-out $(PSEUDOMODULES), $(_ALLMODULES))
|
|
|
|
REALMODULES += $(filter $(NO_PSEUDOMODULES), $(_ALLMODULES))
|
2019-03-05 15:52:33 +01:00
|
|
|
BASELIBS += $(REALMODULES:%=$(BINDIR)/%.a)
|