Allow to set a default target (different from 'native') to be used if TARGET isn't set. This is i.e. useful for examples requiring network i/o.
This commit is contained in:
parent
b16783b148
commit
d6735fa9b2
@ -8,8 +8,11 @@ CFLAGS += -DCONTIKI_TARGET=$(TARGET)
|
|||||||
ifeq ($(TARGET),)
|
ifeq ($(TARGET),)
|
||||||
-include Makefile.target
|
-include Makefile.target
|
||||||
ifeq ($(TARGET),)
|
ifeq ($(TARGET),)
|
||||||
${warning TARGET not defined, using native target}
|
ifeq ($(DEFAULT_TARGET),)
|
||||||
TARGET=native
|
DEFAULT_TARGET=native
|
||||||
|
endif
|
||||||
|
${warning TARGET not defined, using target '$(DEFAULT_TARGET)'}
|
||||||
|
TARGET=$(DEFAULT_TARGET)
|
||||||
else
|
else
|
||||||
${warning using saved target '$(TARGET)'}
|
${warning using saved target '$(TARGET)'}
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user