2017-12-19 16:57:06 +01:00
|
|
|
ED = $(addprefix MODULE_,$(sort $(USEMODULE) $(USEPKG)))
|
2016-03-17 13:05:15 +01:00
|
|
|
EXTDEFINES = $(addprefix -D,$(shell echo '$(ED)' | tr 'a-z-' 'A-Z_'))
|
2017-03-22 19:32:29 +01:00
|
|
|
|
|
|
|
# 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)
|
2019-03-05 15:52:33 +01:00
|
|
|
BASELIBS += $(REALMODULES:%=$(BINDIR)/%.a)
|
2013-05-16 17:12:22 +02:00
|
|
|
|
2013-02-06 13:20:21 +01:00
|
|
|
CFLAGS += $(EXTDEFINES)
|