mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
b6645b531b
BASELIBS is used only in the main Makefile.include or included files. As it is not used in sub make executions or scripts it does not need to be exported.
10 lines
448 B
Makefile
10 lines
448 B
Makefile
ED = $(addprefix MODULE_,$(sort $(USEMODULE) $(USEPKG)))
|
|
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), $(sort $(USEMODULE) $(USEPKG)))
|
|
REALMODULES = $(filter-out $(PSEUDOMODULES), $(sort $(USEMODULE) $(USEPKG))) $(NO_PSEUDOMODULES)
|
|
BASELIBS += $(REALMODULES:%=$(BINDIR)/%.a)
|
|
|
|
CFLAGS += $(EXTDEFINES)
|