mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 05:52:44 +01:00
c2b1995af7
Factorize the reused value in a private variable. I define it private as somehow 'USEPKG' is supposed to be removed so the variables can be removed later.
12 lines
446 B
Makefile
12 lines
446 B
Makefile
_ALLMODULES = $(sort $(USEMODULE) $(USEPKG))
|
|
|
|
ED = $(addprefix MODULE_,$(_ALLMODULES))
|
|
EXTDEFINES = $(addprefix -D,$(shell echo '$(ED)' | tr 'a-z-' 'A-Z_'))
|
|
|
|
# filter "pseudomodules" from "real modules", but not "no_pseudomodules"
|
|
NO_PSEUDOMODULES := $(filter $(NO_PSEUDOMODULES), $(_ALLMODULES))
|
|
REALMODULES = $(filter-out $(PSEUDOMODULES), $(_ALLMODULES)) $(NO_PSEUDOMODULES)
|
|
BASELIBS += $(REALMODULES:%=$(BINDIR)/%.a)
|
|
|
|
CFLAGS += $(EXTDEFINES)
|