2014-11-25 12:02:52 +01:00
|
|
|
ifneq (,$(filter nhdp,$(USEMODULE)))
|
|
|
|
USEMODULE_INCLUDES += $(RIOTBASE)/sys/net/routing/nhdp
|
|
|
|
endif
|
2014-02-26 23:23:15 +01:00
|
|
|
|
2014-05-08 19:06:07 +02:00
|
|
|
ifneq (,$(filter crypto,$(USEMODULE)))
|
2014-02-26 23:23:15 +01:00
|
|
|
USEMODULE_INCLUDES += $(RIOTBASE)/include/crypto
|
|
|
|
endif
|
|
|
|
|
2015-08-11 20:06:13 +02:00
|
|
|
ifneq (,$(filter fib,$(USEMODULE)))
|
|
|
|
USEMODULE_INCLUDES += $(RIOTBASE)/sys/posix/include
|
|
|
|
endif
|
2014-02-26 23:23:15 +01:00
|
|
|
ifneq (,$(filter posix,$(USEMODULE)))
|
|
|
|
USEMODULE_INCLUDES += $(RIOTBASE)/sys/posix/include
|
|
|
|
endif
|
2015-08-03 19:21:21 +02:00
|
|
|
ifneq (,$(filter posix_semaphore,$(USEMODULE)))
|
|
|
|
USEMODULE_INCLUDES += $(RIOTBASE)/sys/posix/include
|
|
|
|
endif
|
2015-08-17 13:48:08 +02:00
|
|
|
ifneq (,$(filter posix_sockets,$(USEMODULE)))
|
2015-08-11 20:02:10 +02:00
|
|
|
USEMODULE_INCLUDES += $(RIOTBASE)/sys/posix/include
|
2014-02-26 23:23:15 +01:00
|
|
|
endif
|
|
|
|
ifneq (,$(filter pthread,$(USEMODULE)))
|
|
|
|
USEMODULE_INCLUDES += $(RIOTBASE)/sys/posix/pthread/include
|
|
|
|
endif
|
2014-05-15 16:30:47 +02:00
|
|
|
|
|
|
|
ifneq (,$(filter oneway_malloc,$(USEMODULE)))
|
|
|
|
USEMODULE_INCLUDES += $(RIOTBASE)/sys/oneway-malloc/include
|
|
|
|
endif
|
2014-11-27 22:30:14 +01:00
|
|
|
|
2015-03-03 19:34:12 +01:00
|
|
|
ifneq (,$(filter cpp11-compat,$(USEMODULE)))
|
|
|
|
USEMODULE_INCLUDES += $(RIOTBASE)/sys/cpp11-compat/include
|
2015-05-29 02:37:35 +02:00
|
|
|
# make sure cppsupport.o is linked explicitly because __dso_handle is not
|
|
|
|
# found if it is hidden away inside a static object.
|
2016-10-18 23:27:59 +02:00
|
|
|
export UNDEF += $(BINDIR)/cpp11-compat/cppsupport.o
|
2015-03-03 19:34:12 +01:00
|
|
|
endif
|
|
|
|
|
2015-08-17 15:41:29 +02:00
|
|
|
ifneq (,$(filter gnrc_slip,$(USEMODULE)))
|
2015-03-22 18:42:34 +01:00
|
|
|
FEATURES_REQUIRED += periph_uart
|
|
|
|
endif
|
|
|
|
|
2014-11-27 22:30:14 +01:00
|
|
|
ifneq (,$(filter embunit,$(USEMODULE)))
|
|
|
|
ifeq ($(OUTPUT),XML)
|
|
|
|
CFLAGS += -DOUTPUT=OUTPUT_XML
|
|
|
|
else ifeq ($(OUTPUT),TEXT)
|
|
|
|
CFLAGS += -DOUTPUT=OUTPUT_TEXT
|
|
|
|
else ifeq ($(OUTPUT),COMPILER)
|
|
|
|
CFLAGS += -DOUTPUT=OUTPUT_COMPILER
|
2015-03-07 22:29:56 +01:00
|
|
|
else ifeq ($(OUTPUT),COLORTEXT)
|
|
|
|
CFLAGS += -DOUTPUT=OUTPUT_COLORTEXT
|
|
|
|
else ifeq ($(OUTPUT),COLOR)
|
|
|
|
CFLAGS += -DOUTPUT=OUTPUT_COLOR
|
2014-11-27 22:30:14 +01:00
|
|
|
endif
|
|
|
|
endif
|
2015-04-22 11:54:24 +02:00
|
|
|
|
2015-02-25 16:31:03 +01:00
|
|
|
ifneq (,$(filter log_%,$(USEMODULE)))
|
|
|
|
include $(RIOTBASE)/sys/log/Makefile.include
|
|
|
|
endif
|
2015-04-22 11:54:24 +02:00
|
|
|
|
2015-11-23 17:43:42 +01:00
|
|
|
ifneq (,$(filter newlib_syscalls_default,$(USEMODULE)))
|
2015-04-22 11:54:24 +02:00
|
|
|
include $(RIOTBASE)/sys/newlib/Makefile.include
|
2015-07-07 10:31:17 +02:00
|
|
|
endif
|
|
|
|
|
2015-09-18 23:00:31 +02:00
|
|
|
ifneq (,$(filter arduino,$(USEMODULE)))
|
|
|
|
include $(RIOTBASE)/sys/arduino/Makefile.include
|
|
|
|
endif
|
|
|
|
|
2016-03-16 10:00:03 +01:00
|
|
|
ifneq (,$(filter printf_float,$(USEMODULE)))
|
|
|
|
ifeq (1,$(USE_NANO_SPECS))
|
|
|
|
export LINKFLAGS += -u _printf_float
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2015-07-07 10:31:17 +02:00
|
|
|
INCLUDES += -I$(RIOTBASE)/sys/libc/include
|