2014-03-03 10:05:36 +01:00
|
|
|
include $(RIOTBASE)/Makefile.pseudomodules
|
2014-03-28 22:55:56 +01:00
|
|
|
include $(RIOTBASE)/Makefile.defaultmodules
|
|
|
|
|
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
|
|
|
|
2014-01-03 20:07:52 +01:00
|
|
|
INCLUDES += -I$(RIOTBASE)/core/include -I$(RIOTBASE)/drivers/include -I$(RIOTBASE)/sys/include
|
2014-06-25 20:39:02 +02:00
|
|
|
ED = $(patsubst %,-DMODULE_%,$(subst -,_,$(USEMODULE) $(USEPKG)))
|
2014-10-26 23:27:43 +01:00
|
|
|
ED += $(patsubst %,-DFEATURE_%,$(subst -,_,$(filter $(FEATURES_PROVIDED), $(FEATURES_REQUIRED))))
|
2014-02-24 14:52:50 +01:00
|
|
|
EXTDEFINES = $(shell echo $(sort $(ED))|tr 'a-z' 'A-Z')
|
|
|
|
REALMODULES = $(filter-out $(PSEUDOMODULES), $(sort $(USEMODULE)))
|
2014-06-18 11:21:05 +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
|