2014-11-25 12:02:52 +01:00
|
|
|
ifneq (,$(filter nhdp,$(USEMODULE)))
|
2017-09-06 16:10:36 +02:00
|
|
|
USEMODULE_INCLUDES += $(RIOTBASE)/sys/net/routing/nhdp
|
2014-11-25 12:02:52 +01:00
|
|
|
endif
|
2014-02-26 23:23:15 +01:00
|
|
|
|
2018-03-27 21:51:58 +02:00
|
|
|
ifneq (,$(filter gnrc_netif,$(USEMODULE)))
|
|
|
|
USEMODULE_INCLUDES += $(RIOTBASE)/sys/net/gnrc/netif/include
|
|
|
|
endif
|
2016-06-09 11:08:53 +02:00
|
|
|
ifneq (,$(filter gnrc_sock,$(USEMODULE)))
|
|
|
|
USEMODULE_INCLUDES += $(RIOTBASE)/sys/net/gnrc/sock/include
|
|
|
|
ifneq (,$(filter gnrc_ipv6,$(USEMODULE)))
|
|
|
|
CFLAGS += -DSOCK_HAS_IPV6
|
|
|
|
endif
|
|
|
|
endif
|
2018-11-09 15:04:45 +01:00
|
|
|
|
|
|
|
ifneq (,$(filter posix_headers,$(USEMODULE)))
|
2017-09-06 16:10:36 +02:00
|
|
|
USEMODULE_INCLUDES += $(RIOTBASE)/sys/posix/include
|
2014-02-26 23:23:15 +01:00
|
|
|
endif
|
2018-11-09 15:04:45 +01:00
|
|
|
|
2014-02-26 23:23:15 +01:00
|
|
|
ifneq (,$(filter pthread,$(USEMODULE)))
|
2017-09-06 16:10:36 +02:00
|
|
|
USEMODULE_INCLUDES += $(RIOTBASE)/sys/posix/pthread/include
|
2014-02-26 23:23:15 +01:00
|
|
|
endif
|
2014-05-15 16:30:47 +02:00
|
|
|
|
|
|
|
ifneq (,$(filter oneway_malloc,$(USEMODULE)))
|
2017-09-06 16:10:36 +02:00
|
|
|
USEMODULE_INCLUDES += $(RIOTBASE)/sys/oneway-malloc/include
|
2014-05-15 16:30:47 +02:00
|
|
|
endif
|
2014-11-27 22:30:14 +01:00
|
|
|
|
2019-03-05 14:18:30 +01:00
|
|
|
ifneq (,$(filter app_metadata,$(USEMODULE)))
|
2019-03-05 14:21:44 +01:00
|
|
|
# Overwrite the application shell formats.
|
|
|
|
# This is an optional macro that can be used to coordinate
|
|
|
|
# standardized shell formats, as an example it can point to an RDM
|
|
|
|
# that specifies semantics.
|
2019-03-05 14:18:30 +01:00
|
|
|
ifdef APP_SHELL_FMT
|
|
|
|
CFLAGS += -DAPP_SHELL_FMT=\"$(APP_SHELL_FMT)\"
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2015-03-03 19:34:12 +01:00
|
|
|
ifneq (,$(filter cpp11-compat,$(USEMODULE)))
|
2017-09-06 16:10:36 +02:00
|
|
|
USEMODULE_INCLUDES += $(RIOTBASE)/sys/cpp11-compat/include
|
|
|
|
# make sure cppsupport.o is linked explicitly because __dso_handle is not
|
|
|
|
# found if it is hidden away inside a static object.
|
|
|
|
export UNDEF += $(BINDIR)/cpp11-compat/cppsupport.o
|
2015-03-03 19:34:12 +01:00
|
|
|
endif
|
|
|
|
|
2014-11-27 22:30:14 +01:00
|
|
|
ifneq (,$(filter embunit,$(USEMODULE)))
|
2017-09-06 16:10:36 +02:00
|
|
|
ifeq ($(OUTPUT),XML)
|
|
|
|
CFLAGS += -DOUTPUT=OUTPUT_XML
|
|
|
|
else ifeq ($(OUTPUT),TEXT)
|
|
|
|
CFLAGS += -DOUTPUT=OUTPUT_TEXT
|
|
|
|
else ifeq ($(OUTPUT),COMPILER)
|
|
|
|
CFLAGS += -DOUTPUT=OUTPUT_COMPILER
|
|
|
|
else ifeq ($(OUTPUT),COLORTEXT)
|
|
|
|
CFLAGS += -DOUTPUT=OUTPUT_COLORTEXT
|
|
|
|
else ifeq ($(OUTPUT),COLOR)
|
|
|
|
CFLAGS += -DOUTPUT=OUTPUT_COLOR
|
|
|
|
endif
|
2014-11-27 22:30:14 +01:00
|
|
|
endif
|
2015-04-22 11:54:24 +02:00
|
|
|
|
2015-02-25 16:31:03 +01:00
|
|
|
ifneq (,$(filter log_%,$(USEMODULE)))
|
2017-09-06 16:10:36 +02:00
|
|
|
include $(RIOTBASE)/sys/log/Makefile.include
|
2015-02-25 16:31:03 +01:00
|
|
|
endif
|
2015-04-22 11:54:24 +02:00
|
|
|
|
2017-03-01 10:03:41 +01:00
|
|
|
ifneq (,$(filter newlib,$(USEMODULE)))
|
2017-09-06 16:10:36 +02:00
|
|
|
include $(RIOTMAKE)/libc/newlib.mk
|
2017-03-01 10:03:41 +01:00
|
|
|
endif
|
|
|
|
|
2015-11-23 17:43:42 +01:00
|
|
|
ifneq (,$(filter newlib_syscalls_default,$(USEMODULE)))
|
2017-09-06 16:10:36 +02:00
|
|
|
include $(RIOTBASE)/sys/newlib_syscalls_default/Makefile.include
|
2015-07-07 10:31:17 +02:00
|
|
|
endif
|
|
|
|
|
2015-09-18 23:00:31 +02:00
|
|
|
ifneq (,$(filter arduino,$(USEMODULE)))
|
2017-09-06 16:10:36 +02:00
|
|
|
include $(RIOTBASE)/sys/arduino/Makefile.include
|
2015-09-18 23:00:31 +02:00
|
|
|
endif
|
|
|
|
|
2016-03-16 10:00:03 +01:00
|
|
|
ifneq (,$(filter printf_float,$(USEMODULE)))
|
2017-09-06 16:10:36 +02:00
|
|
|
ifeq (1,$(USE_NANO_SPECS))
|
|
|
|
export LINKFLAGS += -u _printf_float
|
|
|
|
endif
|
2016-03-16 10:00:03 +01:00
|
|
|
endif
|
|
|
|
|
2019-03-14 11:50:57 +01:00
|
|
|
ifneq (,$(filter riotboot_%,$(USEMODULE)))
|
|
|
|
include $(RIOTBASE)/sys/riotboot/Makefile.include
|
|
|
|
endif
|
|
|
|
|
2016-12-04 11:04:40 +01:00
|
|
|
ifneq (,$(filter ssp,$(USEMODULE)))
|
2017-09-06 16:10:36 +02:00
|
|
|
include $(RIOTBASE)/sys/ssp/Makefile.include
|
2016-12-04 11:04:40 +01:00
|
|
|
endif
|
|
|
|
|
2017-10-25 17:58:47 +02:00
|
|
|
ifneq (native,$(BOARD))
|
|
|
|
INCLUDES += -I$(RIOTBASE)/sys/libc/include
|
|
|
|
endif
|