1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00
RIOT/tests/build_system_cflags_spaces/Makefile
Gaëtan Harter d6b109f720
tests/build_system_cflags_spaces: test CFLAGS macros handling
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.
2019-09-27 19:29:07 +02:00

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 ?=