mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
d6b109f720
This tests passing CFLAGS with spaces to an application and also that even if the CFLAGS are defined after Makefile.include, they trigger a rebuild when modified. This includes an example how to pass macros with spaces to a docker build. The test as both an automated part for the CFLAGS with spaces, and a manual part for the two other features.
15 lines
439 B
Makefile
15 lines
439 B
Makefile
APPLICATION = cflags_with_spaces
|
|
BOARD ?= native
|
|
RIOTBASE ?= $(CURDIR)/../..
|
|
|
|
CFLAGS += -DSUPER_STRING='"I love sentences with spaces"'
|
|
|
|
include $(RIOTBASE)/Makefile.include
|
|
|
|
# Changing this value should trigger a rebuild even if defined after
|
|
# Makefile.include
|
|
CONFIGURATION_VALUE ?= 0
|
|
CFLAGS += -DDEFINED_AFTER_MAKEFILE_INCLUDE=$(CONFIGURATION_VALUE)
|
|
# Exported to be available in the automated test
|
|
test: export CONFIGURATION_VALUE ?=
|