Allow to define arbitrary compiler preprocesor variables from the make command line.

ico
oliverschmidt 2007-12-21 10:16:45 +00:00
parent 0564cc50fd
commit a5ccd9515d
1 changed files with 5 additions and 0 deletions

View File

@ -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)/, \