From a5ccd9515d92af78a119f695fbe5221f3b0d9fbb Mon Sep 17 00:00:00 2001 From: oliverschmidt Date: Fri, 21 Dec 2007 10:16:45 +0000 Subject: [PATCH] Allow to define arbitrary compiler preprocesor variables from the make command line. --- Makefile.include | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile.include b/Makefile.include index 73746c69b..6119031a8 100644 --- a/Makefile.include +++ b/Makefile.include @@ -76,6 +76,11 @@ endif include $(CONTIKI)/platform/$(TARGET)/Makefile.$(TARGET) +### Forward comma-separated list of arbitrary defines to the compiler + +COMMA := , +CFLAGS += ${addprefix -D,${subst $(COMMA), ,$(DEFINES)}} + ### Setup directory search path for source and header files CONTIKI_TARGET_DIRS_CONCAT = ${addprefix $(CONTIKI)/platform/$(TARGET)/, \