mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-07-06 19:29:08 +00:00
Allow to define arbitrary compiler preprocesor variables from the make command line.
This commit is contained in:
parent
0564cc50fd
commit
a5ccd9515d
@ -76,6 +76,11 @@ endif
|
|||||||
|
|
||||||
include $(CONTIKI)/platform/$(TARGET)/Makefile.$(TARGET)
|
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
|
### Setup directory search path for source and header files
|
||||||
|
|
||||||
CONTIKI_TARGET_DIRS_CONCAT = ${addprefix $(CONTIKI)/platform/$(TARGET)/, \
|
CONTIKI_TARGET_DIRS_CONCAT = ${addprefix $(CONTIKI)/platform/$(TARGET)/, \
|
||||||
|
Loading…
Reference in New Issue
Block a user