Makefile.include: added support for Makefile in MODULES
This commit is contained in:
parent
b79f36bfe2
commit
69581dffe2
@ -152,6 +152,8 @@ ifdef MODULES
|
||||
UNIQUEMODULES = $(call uniq,$(MODULES))
|
||||
MODULEDIRS = ${wildcard ${addprefix $(CONTIKI)/, $(UNIQUEMODULES)}}
|
||||
MODULES_SOURCES = ${foreach d, $(MODULEDIRS), ${subst ${d}/,,${wildcard $(d)/*.c}}}
|
||||
MODULES_INCLUDES = ${wildcard ${foreach d, $(MODULEDIRS), $(d)/Makefile.${notdir $(d)}}}
|
||||
-include $(MODULE_INCLUDES)
|
||||
CONTIKI_SOURCEFILES += $(MODULES_SOURCES)
|
||||
APPDS += $(MODULEDIRS)
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user