2014-12-02 23:53:52 +01:00
|
|
|
USEMODULE := $(filter-out $(filter-out $(FEATURES_PROVIDED), $(FEATURES_OPTIONAL)), $(sort $(USEMODULE)))
|
2014-03-03 10:05:36 +01:00
|
|
|
|
2016-03-17 13:05:15 +01:00
|
|
|
ED = $(addprefix FEATURE_,$(sort $(filter $(FEATURES_PROVIDED), $(FEATURES_REQUIRED))))
|
|
|
|
ED += $(addprefix MODULE_,$(sort $(USEMODULE) $(USEPKG)))
|
|
|
|
EXTDEFINES = $(addprefix -D,$(shell echo '$(ED)' | tr 'a-z-' 'A-Z_'))
|
2016-07-20 19:58:17 +02:00
|
|
|
REALMODULES = $(filter-out $(PSEUDOMODULES), $(sort $(USEMODULE) $(USEPKG)))
|
2016-10-18 23:27:59 +02:00
|
|
|
export BASELIBS += $(REALMODULES:%=$(BINDIR)/%.a)
|
2013-05-16 17:12:22 +02:00
|
|
|
|
2013-02-06 13:20:21 +01:00
|
|
|
CFLAGS += $(EXTDEFINES)
|
|
|
|
|
|
|
|
export USEMODULE
|