2022-08-10 11:08:26 +02:00
|
|
|
ifneq (,$(filter bhp,$(USEMODULE)))
|
|
|
|
include $(RIOTBASE)/sys/bhp/Makefile.include
|
|
|
|
endif
|
|
|
|
|
2019-09-27 18:17:07 +02:00
|
|
|
ifneq (,$(filter gnrc_sixlowpan_frag_rb,$(USEMODULE)))
|
|
|
|
USEMODULE_INCLUDES += $(RIOTBASE)/sys/net/gnrc/network_layer/sixlowpan/frag
|
|
|
|
endif
|
2019-07-22 13:35:52 +02:00
|
|
|
|
2019-03-07 17:12:24 +01:00
|
|
|
ifneq (,$(filter gnrc_lorawan,$(USEMODULE)))
|
|
|
|
USEMODULE_INCLUDES += $(RIOTBASE)/sys/net/gnrc/link_layer/lorawan/include
|
|
|
|
endif
|
|
|
|
|
2016-06-09 11:08:53 +02:00
|
|
|
ifneq (,$(filter gnrc_sock,$(USEMODULE)))
|
|
|
|
USEMODULE_INCLUDES += $(RIOTBASE)/sys/net/gnrc/sock/include
|
|
|
|
endif
|
2018-11-09 15:04:45 +01:00
|
|
|
|
2019-10-31 15:33:28 +01:00
|
|
|
ifneq (,$(filter gnrc_sock_async,$(USEMODULE)))
|
|
|
|
CFLAGS += -DSOCK_HAS_ASYNC
|
|
|
|
endif
|
|
|
|
|
2020-08-17 11:41:40 +02:00
|
|
|
ifneq (,$(filter gnrc_pktbuf,$(USEMODULE)))
|
|
|
|
include $(RIOTBASE)/sys/net/gnrc/pktbuf/Makefile.include
|
|
|
|
endif
|
|
|
|
|
2021-02-19 11:28:01 +01:00
|
|
|
ifneq (,$(filter gnrc_pktbuf_static,$(USEMODULE)))
|
|
|
|
include $(RIOTBASE)/sys/net/gnrc/pktbuf_static/Makefile.include
|
|
|
|
endif
|
|
|
|
|
2020-12-10 09:39:44 +01:00
|
|
|
ifneq (,$(filter malloc_thread_safe,$(USEMODULE)))
|
|
|
|
include $(RIOTBASE)/sys/malloc_thread_safe/Makefile.include
|
|
|
|
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
|
|
|
|
2020-07-09 01:44:11 +02:00
|
|
|
ifneq (,$(filter eui_provider,$(USEMODULE)))
|
|
|
|
USEMODULE_INCLUDES += $(RIOTBASE)/sys/net/link_layer/eui_provider/include
|
|
|
|
endif
|
|
|
|
|
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
|
|
|
|
|
2022-04-25 16:02:29 +02:00
|
|
|
ifneq (,$(filter auto_init,$(USEMODULE)))
|
|
|
|
USEMODULE_INCLUDES += $(RIOTBASE)/sys/auto_init/include
|
|
|
|
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
|
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
|
|
|
|
2022-08-05 17:46:48 +02:00
|
|
|
ifneq (,$(filter log_color,$(USEMODULE)))
|
|
|
|
include $(RIOTBASE)/sys/log_color/Makefile.include
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter log_printfnoformat,$(USEMODULE)))
|
|
|
|
include $(RIOTBASE)/sys/log_printfnoformat/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
|
|
|
|
|
2019-09-25 22:13:08 +02:00
|
|
|
ifneq (,$(filter picolibc,$(USEMODULE)))
|
|
|
|
include $(RIOTMAKE)/libc/picolibc.mk
|
|
|
|
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)))
|
2019-07-22 16:52:18 +02:00
|
|
|
ifneq (,$(filter newlib_nano,$(USEMODULE)))
|
2020-01-02 09:52:04 +01:00
|
|
|
LINKFLAGS += -u _printf_float
|
2017-09-06 16:10:36 +02:00
|
|
|
endif
|
2016-03-16 10:00:03 +01:00
|
|
|
endif
|
|
|
|
|
2019-05-12 10:19:40 +02:00
|
|
|
ifneq (,$(filter scanf_float,$(USEMODULE)))
|
2019-07-22 16:52:18 +02:00
|
|
|
ifneq (,$(filter newlib_nano,$(USEMODULE)))
|
2020-01-02 09:52:04 +01:00
|
|
|
LINKFLAGS += -u _scanf_float
|
2019-05-12 10:19:40 +02:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2019-05-23 13:25:49 +02:00
|
|
|
ifneq (,$(filter riotboot,$(FEATURES_USED)))
|
2019-03-14 11:50:57 +01:00
|
|
|
include $(RIOTBASE)/sys/riotboot/Makefile.include
|
|
|
|
endif
|
|
|
|
|
2021-01-22 19:02:49 +01:00
|
|
|
ifneq (,$(filter skald, $(USEMODULE)))
|
|
|
|
include $(RIOTBASE)/sys/net/ble/skald/Makefile.include
|
|
|
|
endif
|
|
|
|
|
2021-10-08 01:26:19 +02:00
|
|
|
ifneq (,$(filter sock sock_%,$(USEMODULE)))
|
2022-01-13 12:53:41 +01:00
|
|
|
ifneq (,$(filter ipv4,$(USEMODULE)))
|
|
|
|
CFLAGS += -DSOCK_HAS_IPV4
|
|
|
|
endif
|
2021-10-08 01:26:19 +02:00
|
|
|
ifneq (,$(filter ipv6,$(USEMODULE)))
|
|
|
|
CFLAGS += -DSOCK_HAS_IPV6
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2019-12-06 15:45:35 +01:00
|
|
|
ifneq (,$(filter sock_async_event,$(USEMODULE)))
|
|
|
|
include $(RIOTBASE)/sys/net/sock/async/event/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
|
2019-09-26 15:08:53 +02:00
|
|
|
|
|
|
|
ifneq (,$(filter clif, $(USEMODULE)))
|
|
|
|
INCLUDES += -I$(RIOTBASE)/sys/clif/include
|
|
|
|
endif
|
2016-07-18 16:03:55 +02:00
|
|
|
|
|
|
|
ifneq (,$(filter zptr,$(USEMODULE)))
|
|
|
|
include $(RIOTBASE)/sys/zptr/Makefile.include
|
|
|
|
endif
|
2020-05-23 16:40:54 +02:00
|
|
|
|
2021-03-12 16:18:44 +01:00
|
|
|
ifneq (,$(filter test_utils_result_output,$(USEMODULE)))
|
|
|
|
include $(RIOTBASE)/sys/test_utils/result_output/Makefile.include
|
|
|
|
endif
|
|
|
|
|
2022-03-21 14:29:11 +01:00
|
|
|
ifneq (,$(filter test_utils_netdev_ieee802154_minimal,$(USEMODULE)))
|
|
|
|
CFLAGS += -DCONFIG_NETDEV_REGISTER_SIGNAL
|
|
|
|
endif
|
|
|
|
|
2021-06-15 12:19:07 +02:00
|
|
|
ifneq (,$(filter ztimer,$(USEMODULE)))
|
|
|
|
include $(RIOTBASE)/sys/ztimer/Makefile.include
|
2020-05-23 16:40:54 +02:00
|
|
|
endif
|
2020-08-14 17:24:39 +02:00
|
|
|
|
|
|
|
ifneq (,$(filter prng,$(USEMODULE)))
|
|
|
|
include $(RIOTBASE)/sys/random/Makefile.include
|
|
|
|
endif
|
2020-12-15 17:11:31 +01:00
|
|
|
|
2023-08-29 18:43:32 +02:00
|
|
|
ifneq (,$(filter psa_crypto,$(USEMODULE)))
|
|
|
|
include $(RIOTBASE)/sys/psa_crypto/Makefile.include
|
|
|
|
endif
|
|
|
|
|
2022-03-16 14:38:46 +01:00
|
|
|
ifneq (,$(filter test_utils_netdev_eth_minimal,$(USEMODULE)))
|
|
|
|
CFLAGS += -DCONFIG_NETDEV_REGISTER_SIGNAL
|
|
|
|
endif
|
2020-01-18 01:31:25 +01:00
|
|
|
|
|
|
|
ifneq (,$(filter shell_lock,$(USEMODULE)))
|
|
|
|
include $(RIOTBASE)/sys/shell_lock/Makefile.include
|
|
|
|
endif
|
2021-04-03 17:33:14 +02:00
|
|
|
|
2022-06-11 02:05:48 +02:00
|
|
|
PSEUDOMODULES += shell_democommands
|
|
|
|
|
2021-04-03 17:33:14 +02:00
|
|
|
ifneq (,$(filter rust_riotmodules,$(USEMODULE)))
|
|
|
|
include $(RIOTBASE)/sys/rust_riotmodules/Makefile.include
|
|
|
|
endif
|
2022-09-09 11:28:58 +02:00
|
|
|
|
|
|
|
ifneq (,$(filter tiny_strerror,$(USEMODULE)))
|
|
|
|
include $(RIOTBASE)/sys/tiny_strerror/Makefile.include
|
|
|
|
endif
|
2022-06-20 09:50:56 +02:00
|
|
|
|
|
|
|
ifneq (,$(filter preprocessor_%,$(USEMODULE)))
|
|
|
|
include $(RIOTBASE)/sys/preprocessor/Makefile.include
|
|
|
|
endif
|
2022-03-06 00:22:59 +01:00
|
|
|
|
|
|
|
ifneq (,$(filter gcoap,$(USEMODULE)))
|
|
|
|
include $(RIOTBASE)/sys/net/application_layer/gcoap/Makefile.include
|
|
|
|
endif
|
2023-08-21 13:43:33 +02:00
|
|
|
|
|
|
|
ifneq (,$(filter nanocoap,$(USEMODULE)))
|
|
|
|
include $(RIOTBASE)/sys/net/application_layer/nanocoap/Makefile.include
|
|
|
|
endif
|